View previous topic :: View next topic |
Author |
Message |
epx n00b
Joined: 30 Apr 2003 Posts: 68
|
Posted: Sun Nov 23, 2003 4:02 am Post subject: Wierd error... |
|
|
Whats does an error like this mean?
Code: | too many arguments to function `initializeDeviceList' |
I am currently playing with the source to the Xconfigurator program that Red Hat uses to setup X, and it throws this error, the functions is found in a header file packaged with kudzu. "kudzu.h"
Code: |
/* Do any preinitialization of device data */
/* Only required if you desire to change the default device lists */
int initializeDeviceList(void);
int initializeBusDeviceList(enum deviceBus bus);
|
Here is the relevant part of the header file.
If you guys need any more info I can post it. |
|
Back to top |
|
|
GuidoJ Guru
Joined: 24 Dec 2002 Posts: 444 Location: Netherlands
|
Posted: Sun Nov 23, 2003 7:03 am Post subject: |
|
|
Look at your code, the error is not in the kudzu.h file.
You probably wrote something like this:
Code: |
int main(int argc, char *argv[])
{
int ret;
ret = initializeDeviceList( someParameter );
/* rest of the code here */
return 0;
}
|
The function 'initializeDeviceList' requires no arguments, so remove them. |
|
Back to top |
|
|
|