Open
Conversation
MaXinjian
commented
Jun 10, 2025
- fix uname declaration
- fix issue "error: too many arguments to function xxx"
fix issue like: | procmail.c:76:12: error: too many arguments to function 'auth_finduid'; expected 0, have 2 | 76 | if(tpass=auth_finduid(uid,0)) /* save by copying */ | | ^~~~~~~~~~~~ ~~~ | In file included from procmail.c:36: | authenticate.h:15:3: note: declared here | 15 | *auth_finduid Q((const uid_t uid,const int sock)); | -- | procmail.c:212:9: error: too many arguments to function 'checkprivFrom_'; expected 0, have 3 | 212 | checkprivFrom_(euid,passinvk?auth_username(passinvk):0,override); | | ^~~~~~~~~~~~~~ ~~~~ | In file included from procmail.c:41: | from.h:9:2: note: declared here | 9 | checkprivFrom_ Q((uid_t euid,const char*logname,int override)); | -- | procmail.c:213:9: error: too many arguments to function 'doumask'; expected 0, have 1 | 213 | doumask(INIT_UMASK); /* allowed to set the From_ line? */ | | ^~~~~~~ | In file included from procmail.c:23: | robust.h:12:2: note: declared here | 12 | doumask Q((const mode_t mask)); Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
fix issue like:
includes.h:334:12: error: conflicting types for 'uname'; have 'int(void)'
334 | extern int uname(); /* so we fix it :-) */
| ^~~~~
In file included from includes.h:67:
/mnt/test/build_auh/tmp/work/core2-64-poky-linux/procmail/3.22/recipe-sysroot/usr/include/sys/utsname.h:81:12: note: previous declaration of 'uname' with type 'int(struct utsname *)'
81 | extern int uname (struct utsname *__name) __THROW;
| ^~~~~
Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.