Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wierd error...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
epx
n00b
n00b


Joined: 30 Apr 2003
Posts: 68

PostPosted: Sun Nov 23, 2003 4:02 am    Post subject: Wierd error... Reply with quote

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
View user's profile Send private message
GuidoJ
Guru
Guru


Joined: 24 Dec 2002
Posts: 444
Location: Netherlands

PostPosted: Sun Nov 23, 2003 7:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum