>>> Building on exopi-5 under mail/procmail DIST = [mail/procmail:procmail-3.24.tar.gz] FULLPKGNAME = procmail-3.24 RDEPENDS = [sysutils/lockfile] distfiles size=299704 >>> Running build in mail/procmail at 1764444478.92 ===> mail/procmail ===> Building from scratch procmail-3.24 ===> Verifying specs: c m ===> found c.102.2 m.10.1 ===> Checking files for procmail-3.24 `/exopi-cvs/ports/distfiles/procmail-3.24.tar.gz' is up to date. >> (SHA256) all files: OK ===> Extracting for procmail-3.24 ===> Patching for procmail-3.24 ===> Compiler link: clang -> /usr/bin/clang ===> Compiler link: clang++ -> /usr/bin/clang++ ===> Compiler link: cc -> /usr/bin/cc ===> Compiler link: c++ -> /usr/bin/c++ ===> Generating configure for procmail-3.24 ===> Configuring for procmail-3.24 ===> Building for procmail-3.24 /bin/sh ./initmake /bin/sh "/bin/sh" "/bin/rm -f" "mv -f" "ln" "-lm -ldir -lx -lsocket -lnet -linet -lnsl_s -lnsl_i -lnsl -lsun -lgen -lsockdns -ldl" "/lib /usr/lib /usr/local/lib" /dev/null "/usr/bin/make" o "cc" "-O2 -pipe " "-s " "procmail lockfile formail mailstat" "procmail formail lockfile mailstat" "procmailrc procmailsc procmailex" "src man" "/usr/local/bin" "strip" cc seems to work fine, using that as the C-compiler ...scanning for 13 libraries... Added LDFLAGS= -lm -lc /usr/bin/make make all cd src; /usr/bin/make ../autoconf.h /bin/sh ./autoconf /bin/sh "/bin/rm -f" "mv -f" /dev/null "grep -F" "/usr/bin/make" o "110" "/usr/local/bin" ../autoconf.h Using the following directories for the LOCKINGTESTs: 110 Initiating fcntl()/kernel-locking-support tests Proceeding with kernel-locking-support tests in the background Testing for const Testing for volatile Testing for enum Your system appears to not (correctly) support at least one of: const, volatile, function prototypes, and enum types. Future versions of procmail will probably require support for all of them, so you should either upgrade your compiler to one that's compliant with the ISO C standard (the standard's over 10 years old, for goodness sake), or send email to explaining why you need procmail to continue to support K&R C. Checking for POSIX and ANSI/ISO system include files Checking for network/comsat/biff support Testing for void*, size_t, off_t, pid_t, time_t, mode_t, uid_t & gid_t Checking realloc implementation Testing for WIFEXITED(), WIFSTOPPED(), WEXITSTATUS() & WSIGTERM() Testing for various struct passwd members Testing for memmove, strchr, strpbrk, strcspn, strtol, strstr, rename, setrgid, setegid, pow, opendir, mkdir, waitpid, fsync, ftruncate, strtod, strncasecmp, strerror, strlcat, memset, bzero, and _exit Determining the maximum number of 16 byte arguments execv() takes Benchmarking your system's strstr() implementation Collecting results from kernel-locking tests =============================autoconf.h=================================== /* This file was automagically generated by autoconf */ #define NO_const #define P(args) () /* 2 moves in 64 steps of size 16384 when reallocing */ #define WMACROS_NON_POSIX #define NOsetrgid #define NOsetegid #define GOT_bin_test #define MAX_argc 30720 /* Your system's strstr() is 1.00 times SLOWER than my C-routine */ #define UDP_protocolno 17 #define BIFF_serviceport "512" #define IP_localhost {127,0,0,1} #define setrgid_RUNTIME_CHECK #ifndef MAILSPOOLDIR #define MAILSPOOLDIR "/var/mail/" #endif #define SENDMAIL "/usr/sbin/sendmail" #define CF_no_procmail_yet #define buggy_SENDMAIL #define defPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin" #define defSPATH "PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin" #define PM_VERSION "3.24" /* Hotwire LOCKINGTEST=110 */ /* Procmail will lock via: dotlocking, fcntl(), lockf() */ #define USElockf /* autoconf completed */ ========================================================================== echo Housekeeping file >config.check cd src; /usr/bin/make ../new/procmail ../new/lockfile ../new/formail ../new/mailstat cc -c -O2 -pipe procmail.c In file included from procmail.c:20: In file included from ./procmail.h:3: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from procmail.c:20: In file included from ./procmail.h:3: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ procmail.c:75:19: warning: passing arguments to 'auth_filledid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | if(auth_filledid(spass)&&auth_whatuid(spass)==uid) | ^ procmail.c:75:40: warning: passing arguments to 'auth_whatuid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | if(auth_filledid(spass)&&auth_whatuid(spass)==uid) | ^ procmail.c:77:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 77 | if(tpass=auth_finduid(uid,0)) /* save by copying */ | ~~~~~^~~~~~~~~~~~~~~~~~~~ procmail.c:77:11: note: place parentheses around the assignment to silence this warning 77 | if(tpass=auth_finduid(uid,0)) /* save by copying */ | ^ | ( ) procmail.c:77:11: note: use '==' to turn this assignment into an equality comparison 77 | if(tpass=auth_finduid(uid,0)) /* save by copying */ | ^ | == procmail.c:78:17: warning: passing arguments to 'auth_copyid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | { auth_copyid(spass,tpass); | ^ procmail.c:72:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | static auth_identity*savepass(spass,uid)auth_identity*const spass; | ^ procmail.c:110:42: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | { Deliverymode=!!strncmp(lastdirsep(argv0=argv[0]),procmailn, | ^ procmail.c:118:36: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | case HELPOPT1:case HELPOPT2:elog(pmusage);elog(PM_HELP); | ^ procmail.c:118:50: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | case HELPOPT1:case HELPOPT2:elog(pmusage);elog(PM_HELP); | ^ procmail.c:119:11: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | elog(PM_QREFERENCE); | ^ procmail.c:134:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 134 | else if(chp2=(char*)argv[argc+1]) | ~~~~^~~~~~~~~~~~~~~~~~~~ procmail.c:134:19: note: place parentheses around the assignment to silence this warning 134 | else if(chp2=(char*)argv[argc+1]) | ^ | ( ) procmail.c:134:19: note: use '==' to turn this assignment into an equality comparison 134 | else if(chp2=(char*)argv[argc+1]) | ^ | == procmail.c:137:14: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | nlog("Missing name\n"); | ^ procmail.c:143:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 143 | else if(chp2=(char*)argv[argc+1]) | ~~~~^~~~~~~~~~~~~~~~~~~~ procmail.c:143:19: note: place parentheses around the assignment to silence this warning 143 | else if(chp2=(char*)argv[argc+1]) | ^ | ( ) procmail.c:143:19: note: use '==' to turn this assignment into an equality comparison 143 | else if(chp2=(char*)argv[argc+1]) | ^ | == procmail.c:145:17: warning: passing arguments to 'app_val_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | setarg: app_valp(newargv,(const char*)chp2); | ^ ./misc.h:11:26: note: expanded from macro 'app_valp' 11 | #define app_valp(sp,val) app_val_type(sp,const char*,const char*,val) | ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' 6 | #define app_val_type(sp,t,s,v) (*(t*)app_val_(&sp,sizeof(s))=(v)) | ^ procmail.c:150:14: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | nlog("Missing argument\n"); | ^ procmail.c:155:14: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | { nlog(misrecpt); | ^ procmail.c:174:11: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | nlog("LMTP support not enabled in this binary\n"); | ^ procmail.c:182:16: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | default:nlog("Unrecognised options:");logqnl(chp2); | ^ procmail.c:182:48: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | default:nlog("Unrecognised options:");logqnl(chp2); | ^ procmail.c:183:11: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | elog(pmusage);elog("Processing continued\n"); | ^ procmail.c:183:25: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | elog(pmusage);elog("Processing continued\n"); | ^ procmail.c:190:6: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | nlog(misrecpt),Deliverymode=0; | ^ procmail.c:197:19: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 197 | conflopt: nlog(conflicting);elog("options\n");elog(pmusage); | ^ procmail.c:197:37: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 197 | conflopt: nlog(conflicting);elog("options\n");elog(pmusage); | ^ procmail.c:197:55: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 197 | conflopt: nlog(conflicting);elog("options\n");elog(pmusage); | ^ procmail.c:221:16: warning: passing arguments to 'cleanupenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | cleanupenv(presenviron); | ^ procmail.c:226:44: warning: passing arguments to 'auth_username' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | checkprivFrom_(euid,passinvk?auth_username(passinvk):0,override); | ^ procmail.c:228:23: warning: passing arguments to 'rdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | while((savstdout=rdup(STDOUT))<=STDERR) | ^ procmail.c:229:11: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 229 | { rclose(savstdout); /* move stdout out of the way */ | ^ procmail.c:230:26: warning: passing arguments to 'opena' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | if(0>(savstdout=opena(devnull))) | ^ procmail.c:234:23: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | fclose(stdout);rclose(STDOUT); /* just to make sure */ | ^ procmail.c:235:12: warning: passing arguments to 'opena' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | if(0>opena(devnull)) | ^ procmail.c:237:13: warning: passing arguments to 'writeerr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | { writeerr(devnull);syslog(LOG_EMERG,slogstr,errwwriting,devnull); | ^ procmail.c:259:11: warning: passing arguments to 'setcomsat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | setcomsat(empty); /* turn on biff by default */ | ^ procmail.c:260:8: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 260 | ultstr(0,(unsigned long)uid,buf);filled=0; | ^ procmail.c:261:43: warning: passing arguments to 'auth_username' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | if(!passinvk||!(chp2=(char*)auth_username(passinvk))) | ^ procmail.c:310:10: warning: passing arguments to 'makeFrom' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 310 | makeFrom(fromwhom,chp2); | ^ procmail.c:311:10: warning: passing arguments to 'readmail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | readmail(0,0L); /* read in the mail completely */ | ^ procmail.c:315:17: warning: passing arguments to 'lockblock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | lockblock(&themail); | ^ procmail.c:322:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 322 | if(pidchild=sfork()) | ~~~~~~~~^~~~~~~~ procmail.c:322:15: note: place parentheses around the assignment to silence this warning 322 | if(pidchild=sfork()) | ^ | ( ) procmail.c:322:15: note: use '==' to turn this assignment into an equality comparison 322 | if(pidchild=sfork()) | ^ | == procmail.c:328:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 328 | else | ^ procmail.c:334:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 334 | while(chp=(char*)argv[argc]); | ~~~^~~~~~~~~~~~~~~~~~ procmail.c:334:14: note: place parentheses around the assignment to silence this warning 334 | while(chp=(char*)argv[argc]); | ^ | ( ) procmail.c:334:14: note: use '==' to turn this assignment into an equality comparison 334 | while(chp=(char*)argv[argc]); | ^ | == procmail.c:338:28: warning: passing arguments to 'auth_finduser' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 338 | { if(!(pass=auth_finduser(chp2,-1))) /* chp2 is the recipient */ | ^ procmail.c:340:12: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | nlog(unkuser);logqnl(chp2);syslog(LOG_ERR,slogstr,unkuser,chp2); | ^ procmail.c:340:28: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | nlog(unkuser);logqnl(chp2);syslog(LOG_ERR,slogstr,unkuser,chp2); | ^ procmail.c:343:58: warning: passing arguments to 'auth_whatuid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 343 | dorcpt: if(enoughprivs(passinvk,euid,egid,auth_whatuid(pass), | ^ procmail.c:344:18: warning: passing arguments to 'auth_whatgid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 344 | auth_whatgid(pass))) | ^ procmail.c:343:26: warning: passing arguments to 'enoughprivs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 343 | dorcpt: if(enoughprivs(passinvk,euid,egid,auth_whatuid(pass), | ^ procmail.c:346:9: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 346 | nlog(insufprivs); | ^ procmail.c:357:17: warning: passing arguments to 'setcomsat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 357 | setcomsat(DEFcomsat); /* the internal flag */ | ^ procmail.c:359:10: warning: passing arguments to 'setdef' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 359 | setdef(scomsat,DEFcomsat); | ^ procmail.c:363:15: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | { nlog("Missing rcfile\n"); | ^ procmail.c:401:22: warning: passing arguments to 'enoughprivs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 401 | !enoughprivs(passinvk,euid,egid,stbuf.st_uid, | ^ procmail.c:408:14: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 408 | nlog(densppr);logqnl(rcfile); | ^ procmail.c:408:30: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 408 | nlog(densppr);logqnl(rcfile); | ^ procmail.c:420:39: warning: passing arguments to 'auth_finduser' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 420 | { auth_identity*idpass=auth_finduser((char*)idhint,0); | ^ procmail.c:422:23: warning: passing arguments to 'auth_whatuid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | { if(auth_whatuid(passinvk)==auth_whatuid(idpass)) | ^ procmail.c:422:47: warning: passing arguments to 'auth_whatuid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | { if(auth_whatuid(passinvk)==auth_whatuid(idpass)) | ^ procmail.c:427:28: warning: passing arguments to 'auth_whatgid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 427 | Setuser: { gid=auth_whatgid(pass);uid=auth_whatuid(pass); | ^ procmail.c:427:51: warning: passing arguments to 'auth_whatuid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 427 | Setuser: { gid=auth_whatgid(pass);uid=auth_whatuid(pass); | ^ procmail.c:428:49: warning: passing arguments to 'auth_username' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 428 | if(euid==ROOT_uid&&(chp=(char*)auth_username(pass))&&*chp) | ^ procmail.c:434:12: warning: passing arguments to 'initdefenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 434 | initdefenv(pass,buf,!presenviron||!mailfilter, /* override */ | ^ procmail.c:436:24: warning: passing arguments to 'auth_freeid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 436 | endpwent();auth_freeid(spassinvk); /* environment by default */ | ^ procmail.c:438:17: warning: passing arguments to 'bopen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 438 | if(0<=bopen(confrc)) | ^ procmail.c:442:20: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 442 | oldpath=tgetenv(pathvar); | ^ procmail.c:443:9: warning: passing arguments to 'eputenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 443 | eputenv(defspath,buf); /* use the secure PATH */ | ^ procmail.c:445:6: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 445 | yell(drcfile,confrc); | ^ procmail.c:446:10: warning: passing arguments to 'mainloop' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 446 | mainloop(1); /* ignore the status */ | ^ procmail.c:448:11: warning: passing arguments to 'setval' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 448 | setval(pathvar,oldpath); | ^ procmail.c:452:16: warning: passing arguments to 'sputenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 452 | { sputenv(orgmail);sputenv(vdefault); /* just clear them both */ | ^ procmail.c:452:33: warning: passing arguments to 'sputenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 452 | { sputenv(orgmail);sputenv(vdefault); /* just clear them both */ | ^ procmail.c:457:20: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 457 | chp=(char*)tgetenv(vdefault);chp2=(char*)tgetenv(orgmail); | ^ procmail.c:457:50: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 457 | chp=(char*)tgetenv(vdefault);chp2=(char*)tgetenv(orgmail); | ^ procmail.c:461:15: warning: passing arguments to 'sputenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 461 | { sputenv(vdefault); /* nix delivering to system mailbox */ | ^ procmail.c:463:18: warning: passing arguments to 'sputenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 463 | { sputenv(orgmail); | ^ procmail.c:468:14: warning: passing arguments to 'setval' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 468 | { setval(orgmail,chp); | ^ procmail.c:482:10: warning: passing arguments to 'eputenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 482 | eputenv(defpath,buf); | ^ procmail.c:483:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 483 | while(chp=(char*)argv[argc]) /* interpret command line specs first */ | ~~~^~~~~~~~~~~~~~~~~~ procmail.c:483:12: note: place parentheses around the assignment to silence this warning 483 | while(chp=(char*)argv[argc]) /* interpret command line specs first */ | ^ | ( ) procmail.c:483:12: note: use '==' to turn this assignment into an equality comparison 483 | while(chp=(char*)argv[argc]) /* interpret command line specs first */ | ^ | == procmail.c:485:18: warning: passing arguments to 'asenvcpy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | if(!asenvcpy(chp)&&mailfilter) | ^ procmail.c:492:17: warning: passing arguments to 'bopen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 492 | { if(0<=bopen(etcrc)) | ^ procmail.c:493:13: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 493 | { yell(drcfile,etcrc); | ^ procmail.c:498:9: warning: passing arguments to 'eputenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 498 | eputenv(defspath,buf); /* use the secure PATH */ | ^ procmail.c:499:13: warning: passing arguments to 'mainloop' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 499 | if(mainloop(0)!=rcs_EOF) /* run the rcfile */ | ^ procmail.c:501:9: warning: passing arguments to 'eputenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 501 | eputenv(defpath,buf); /* switch back to the insecure PATH */ | ^ procmail.c:514:17: warning: passing arguments to 'buildpath' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 514 | if(buildpath(maildir,defmaildir,rcfile)) | ^ procmail.c:516:12: warning: passing arguments to 'tryopen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 516 | if(tryopen(0,rctype,dowarning)) | ^ procmail.c:517:30: warning: passing arguments to 'mainloop' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 517 | { register int rcs=mainloop(0); /* run it */ | ^ procmail.c:536:14: warning: passing arguments to 'buildpath' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 536 | if(buildpath("default rcfile",pmrc,(char*)0)) | ^ procmail.c:543:16: warning: passing arguments to 'tryopen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 543 | if(tryopen(mailfilter==2,rctype,DEFverbose||mailfilter)) | ^ procmail.c:544:13: warning: passing arguments to 'mainloop' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 544 | if(mainloop(0)!=rcs_EOF) | ^ procmail.c:549:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 549 | free(ifstack.vals); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ procmail.c:551:12: warning: passing arguments to 'concon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 551 | concon('\n');succeed=0; | ^ procmail.c:552:29: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 552 | if(*(chp=(char*)tgetenv(vdefault))) /* DEFAULT set? */ | ^ procmail.c:557:16: warning: passing arguments to 'writefolder' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 557 | if(writefolder(chp,(char*)0,themail.p,filled,0,1)) /* default */ | ^ procmail.c:560:40: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 560 | if(!succeed&&*(chp2=(char*)tgetenv(orgmail))&&strcmp(chp2,chp)) | ^ procmail.c:562:16: warning: passing arguments to 'writefolder' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 562 | if(writefolder(chp2,(char*)0,themail.p,filled,0,0)) /* don't panic */ | ^ procmail.c:568:9: warning: passing arguments to 'unlock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 568 | unlock(&loclock);Terminate(); | ^ procmail.c:98:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | int main(argc,argv)int argc;const char*const argv[]; | ^ procmail.c:572:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 572 | { elog(procmailn);elog(Version); | ^ procmail.c:572:23: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 572 | { elog(procmailn);elog(Version); | ^ procmail.c:573:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 573 | elog("\nLocking strategies:\tdotlocking"); | ^ procmail.c:575:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 575 | elog(", fcntl()"); /* a peek under the hood */ | ^ procmail.c:578:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 578 | elog(", lockf()"); | ^ procmail.c:583:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 583 | elog("\nDefault rcfile:\t\t");elog(pmrc); | ^ procmail.c:583:37: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 583 | elog("\nDefault rcfile:\t\t");elog(pmrc); | ^ procmail.c:587:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 587 | elog("\nYour system mailbox:\t"); | ^ procmail.c:588:24: warning: passing arguments to 'auth_mailboxname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 588 | elog(auth_mailboxname(auth_finduid(getuid(),0))); | ^ procmail.c:588:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 588 | elog(auth_mailboxname(auth_finduid(getuid(),0))); | ^ procmail.c:589:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 589 | elog(newline); | ^ procmail.c:614:13: warning: passing arguments to 'bopen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 614 | if(0>bopen(buf)) /* try opening the rcfile */ | ^ procmail.c:616:14: warning: passing arguments to 'readerr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 616 | rerr: readerr(buf); | ^ procmail.c:626:20: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 626 | closerc();nlog(susprcf);logqnl(buf); | ^ procmail.c:626:36: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 626 | closerc();nlog(susprcf);logqnl(buf); | ^ procmail.c:632:12: warning: passing arguments to 'setmaildir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 632 | setmaildir(curdir); | ^ procmail.c:642:34: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 642 | { register char*chp=lastdirsep(buf),c; | ^ procmail.c:663:7: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 663 | yell(drcfile,buf); | ^ procmail.c:669:18: warning: passing arguments to 'buildpath' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 669 | if(buildpath(maildir,defmaildir,(char*)0)) | ^ procmail.c:672:15: warning: passing arguments to 'chderr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 672 | { chderr(buf); /* no, well, then try an initial chdir */ | ^ procmail.c:673:13: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 673 | chp=tgetenv(home); | ^ procmail.c:675:11: warning: passing arguments to 'chderr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 675 | chderr(chp),chp=curdir; /* that didn't work, use "." */ | ^ procmail.c:677:16: warning: passing arguments to 'setmaildir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 677 | setmaildir(chp); | ^ procmail.c:602:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 602 | static int tryopen(delay_setid,rctype,dowarning) | ^ procmail.c:95:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 95 | tryopen P((const int delay_setid,const int rctype,const int dowarning)), | ^ procmail.c:687:12: warning: passing arguments to 'unlock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 687 | { unlock(&loclock); /* unlock any local lockfile */ | ^ procmail.c:692:13: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 692 | while(testB('\n')); | ^ procmail.c:694:17: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 694 | while(testB('#')); /* no comment :-) */ | ^ procmail.c:695:14: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 695 | if(testB(':')) /* check for a recipe */ | ^ procmail.c:700:17: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 700 | if(readparse(buf,getb,0,skiprc)) | ^ procmail.c:708:8: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 708 | free(tolock); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ procmail.c:711:20: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 711 | { chp=skpspace(chp); | ^ procmail.c:727:24: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 727 | tolock=tstrdup(chp),chp=strchr(chp,'\0')+1; | ^ procmail.c:729:19: warning: passing arguments to 'concatenate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 729 | concatenate(chp);skipped(chp); /* display leftovers */ | ^ procmail.c:729:32: warning: passing arguments to 'skipped' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 729 | concatenate(chp);skipped(chp); /* display leftovers */ | ^ procmail.c:732:17: warning: passing arguments to 'conditions' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 732 | i=conditions(flags,prevcond,lastsucc,lastcond,skiprc!=0,nrcond); | ^ procmail.c:752:27: warning: passing arguments to 'concon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 752 | zombiecollect(),concon('\n'); | ^ procmail.c:753:17: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 753 | progrm: if(testB('!')) /* forward the mail */ | ^ procmail.c:761:26: warning: passing arguments to 'simplesplit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 761 | if(!(q=simplesplit(chp+1,flagsendmail,buf+linebuf-1,&got))) | ^ procmail.c:765:17: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 765 | if(readparse(chp+1,getb,0,skiprc)) | ^ procmail.c:770:30: warning: passing arguments to 'skipFrom_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 770 | startchar=(char*)skipFrom_(startchar,&tobesent); | ^ procmail.c:776:15: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 776 | else if(testB('|')) /* pipe the mail */ | ^ procmail.c:778:16: warning: passing arguments to 'getlline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 778 | if(getlline(chp,buf2+linebuf)) /* get the command to start */ | ^ procmail.c:781:17: warning: passing arguments to 'metaparse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 781 | { metaparse(buf2); | ^ procmail.c:789:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 789 | for(chp=buf;i= *chp++;) | ~^~~~~~~~ procmail.c:789:20: note: place parentheses around the assignment to silence this warning 789 | for(chp=buf;i= *chp++;) | ^ | ( ) procmail.c:789:20: note: use '==' to turn this assignment into an equality comparison 789 | for(chp=buf;i= *chp++;) | ^ | == procmail.c:791:18: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 791 | { chp=skpspace(chp+1); | ^ procmail.c:795:20: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 795 | { chp=tstrdup(buf);sgetcp=buf2; | ^ procmail.c:796:21: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 796 | if(readparse(buf,sgetc,0,0)) | ^ procmail.c:800:42: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 800 | strcpy(buf2,buf);strcpy(buf,chp);free(chp); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ procmail.c:805:21: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 805 | nolock: { nlog("Couldn't determine implicit lockfile from"); | ^ procmail.c:806:16: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 806 | logqnl(buf); | ^ procmail.c:809:11: warning: passing arguments to 'lcllock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 809 | lcllock(tolock,buf2); | ^ procmail.c:815:8: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 815 | nlog(extrns),elog("copy-flag"),elog(ignrd); | ^ procmail.c:815:21: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 815 | nlog(extrns),elog("copy-flag"),elog(ignrd); | ^ procmail.c:815:39: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 815 | nlog(extrns),elog("copy-flag"),elog(ignrd); | ^ procmail.c:816:17: warning: passing arguments to 'inittmout' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 816 | inittmout(buf); | ^ procmail.c:819:21: warning: passing arguments to 'pipthrough' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 819 | { if(!pipthrough(buf,startchar,tobesent)) | ^ procmail.c:820:26: warning: passing arguments to 'readmail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 820 | succeed=readmail(1,tobesent); | ^ procmail.c:822:23: warning: passing arguments to 'pipthrough' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 822 | else if(!pipthrough(buf,startchar,tobesent)) | ^ procmail.c:824:23: warning: passing arguments to 'readmail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 824 | succeed=readmail(0,tobesent); | ^ procmail.c:831:18: warning: passing arguments to 'pipthrough' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 831 | if(!pipthrough(buf,startchar,tobesent)) | ^ procmail.c:832:22: warning: passing arguments to 'readvar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 832 | succeed=readvar(capture,startchar,tobesent); | ^ procmail.c:833:4: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 833 | free(capture); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ procmail.c:835:22: warning: passing arguments to 'pipin' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 835 | else if(!pipin(buf,startchar,tobesent,1)) /* regular program */ | ^ procmail.c:845:15: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 845 | else if(testB(EOF)) | ^ procmail.c:846:9: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 846 | nlog("Incomplete recipe\n"); | ^ procmail.c:849:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 849 | if(ofiltflag=flags[FILTER]) | ~~~~~~~~~^~~~~~~~~~~~~~ procmail.c:849:17: note: place parentheses around the assignment to silence this warning 849 | if(ofiltflag=flags[FILTER]) | ^ | ( ) procmail.c:849:17: note: use '==' to turn this assignment into an equality comparison 849 | if(ofiltflag=flags[FILTER]) | ^ | == procmail.c:850:28: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 850 | flags[FILTER]=0,nlog(extrns),elog("filter-flag"),elog(ignrd); | ^ procmail.c:850:41: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 850 | flags[FILTER]=0,nlog(extrns),elog("filter-flag"),elog(ignrd); | ^ procmail.c:850:61: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 850 | flags[FILTER]=0,nlog(extrns),elog("filter-flag"),elog(ignrd); | ^ procmail.c:851:18: warning: passing arguments to 'gobenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 851 | if(chp=gobenv(buf,end)) /* can it be an environment name? */ | ^ procmail.c:851:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 851 | if(chp=gobenv(buf,end)) /* can it be an environment name? */ | ~~~^~~~~~~~~~~~~~~~ procmail.c:851:11: note: place parentheses around the assignment to silence this warning 851 | if(chp=gobenv(buf,end)) /* can it be an environment name? */ | ^ | ( ) procmail.c:851:11: note: use '==' to turn this assignment into an equality comparison 851 | if(chp=gobenv(buf,end)) /* can it be an environment name? */ | ^ | == procmail.c:854:19: warning: passing arguments to 'getlline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 854 | { getlline(buf,buf+linebuf); | ^ procmail.c:859:16: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 859 | if(testB('=')) /* is it really an assignment? */ | ^ procmail.c:864:10: warning: passing arguments to 'ungetb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 864 | ungetb(c=getb()); | ^ procmail.c:869:21: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 869 | capture=tstrdup(buf); /* copy the variable name */ | ^ procmail.c:876:11: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 876 | testB('{')&& | ^ procmail.c:877:33: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 877 | (*chp++='{',*chp='\0',testB(' ')|| /* } } */ | ^ procmail.c:878:12: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 878 | testB('\t')|| | ^ procmail.c:879:12: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 879 | testB('\n'))) | ^ procmail.c:881:8: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 881 | nlog(extrns),elog("locallockfile"),elog(ignrd); | ^ procmail.c:881:21: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 881 | nlog(extrns),elog("locallockfile"),elog(ignrd); | ^ procmail.c:881:43: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 881 | nlog(extrns),elog("locallockfile"),elog(ignrd); | ^ procmail.c:883:8: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 883 | nlog(extrns),elog("deliver-body flag"),elog(ignrd); | ^ procmail.c:883:21: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 883 | nlog(extrns),elog("deliver-body flag"),elog(ignrd); | ^ procmail.c:883:47: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 883 | nlog(extrns),elog("deliver-body flag"),elog(ignrd); | ^ procmail.c:885:8: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 885 | nlog(extrns),elog("deliver-head flag"),elog(ignrd); | ^ procmail.c:885:21: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 885 | nlog(extrns),elog("deliver-head flag"),elog(ignrd); | ^ procmail.c:885:47: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 885 | nlog(extrns),elog("deliver-head flag"),elog(ignrd); | ^ procmail.c:887:8: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 887 | nlog(extrns),elog("ignore-write-error flag"),elog(ignrd); | ^ procmail.c:887:21: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 887 | nlog(extrns),elog("ignore-write-error flag"),elog(ignrd); | ^ procmail.c:887:53: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 887 | nlog(extrns),elog("ignore-write-error flag"),elog(ignrd); | ^ procmail.c:889:8: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 889 | nlog(extrns),elog("raw-mode flag"),elog(ignrd); | ^ procmail.c:889:21: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 889 | nlog(extrns),elog("raw-mode flag"),elog(ignrd); | ^ procmail.c:889:43: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 889 | nlog(extrns),elog("raw-mode flag"),elog(ignrd); | ^ procmail.c:893:11: warning: passing arguments to 'app_val_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 893 | { app_vali(ifstack,prevcond); /* push prevcond */ | ^ ./misc.h:8:26: note: expanded from macro 'app_vali' 8 | #define app_vali(sp,val) app_val_type(sp,int,union offori,val) | ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' 6 | #define app_val_type(sp,t,s,v) (*(t*)app_val_(&sp,sizeof(s))=(v)) | ^ procmail.c:894:4: warning: passing arguments to 'app_val_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 894 | app_vali(ifstack,lastcond); /* push lastcond */ | ^ ./misc.h:8:26: note: expanded from macro 'app_vali' 8 | #define app_vali(sp,val) app_val_type(sp,int,union offori,val) | ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' 6 | #define app_val_type(sp,t,s,v) (*(t*)app_val_(&sp,sizeof(s))=(v)) | ^ procmail.c:896:14: warning: passing arguments to 'lcllock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 896 | { lcllock(tolock,""); | ^ procmail.c:902:11: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 902 | { yell("Forking",procmailn); | ^ procmail.c:904:16: warning: passing arguments to 'inittmout' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 904 | inittmout(procmailn);onguard(); | ^ procmail.c:907:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 907 | free(loclock),loclock=0; | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ procmail.c:909:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 909 | free(globlock),globlock=0; /* clear up the */ | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ procmail.c:921:12: warning: passing arguments to 'progerr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 921 | progerr(procmailn,excode,pwait&2); | ^ procmail.c:935:17: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 935 | if(readparse(chp,getb,0,skiprc)) | ^ procmail.c:944:11: warning: passing arguments to 'lcllock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 944 | lcllock(tolock,buf); | ^ procmail.c:945:17: warning: passing arguments to 'inittmout' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 945 | inittmout(buf); /* to break messed-up kernel locks */ | ^ procmail.c:946:22: warning: passing arguments to 'writefolder' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 946 | if(writefolder(buf,strchr(buf,'\0')+1,startchar,tobesent, | ^ procmail.c:950:7: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 950 | free(ifstack.vals); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ procmail.c:954:23: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 954 | logabstract(tgetenv(lastfolder)); | ^ procmail.c:954:15: warning: passing arguments to 'logabstract' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 954 | logabstract(tgetenv(lastfolder)); | ^ procmail.c:961:19: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 961 | else if(testB('}')) /* end block */ | ^ procmail.c:969:9: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 969 | nlog("Closing brace unexpected\n"); /* stack empty */ | ^ procmail.c:973:17: warning: passing arguments to 'gobenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 973 | if(!(chp=gobenv(buf,end))) | ^ procmail.c:975:13: warning: passing arguments to 'getbl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 975 | getbl(buf,end); /* then a line */ | ^ procmail.c:976:12: warning: passing arguments to 'skipped' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 976 | skipped(buf); /* display leftovers */ | ^ procmail.c:982:10: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 982 | if(testB('=')) /* removal or assignment? */ | ^ procmail.c:984:17: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 984 | if(readparse(++chp,getb,1,skiprc)) | ^ procmail.c:991:14: warning: passing arguments to 'sputenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 991 | p=sputenv(buf); | ^ procmail.c:993:10: warning: passing arguments to 'asenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 993 | asenv(p); | ^ procmail.c:999:15: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 999 | while(!testB(EOF)||(skiprc=0,poprc())); | ^ procmail.c:682:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 682 | static int mainloop(varonly)const int varonly; | ^ procmail.c:96:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 96 | mainloop P((const int varonly)); | ^ 242 warnings generated. cc -c -O2 -pipe cstdio.c In file included from cstdio.c:11: In file included from ./procmail.h:3: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from cstdio.c:11: In file included from ./procmail.h:3: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ cstdio.c:25:16: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | { int ret=rread(rc,rcbuf,STDBUF); | ^ cstdio.c:24:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | static void refill(offset)const int offset; /* refill the buffer */ | ^ cstdio.c:42:9: warning: passing arguments to 'app_val_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | { app_vali(inced,rcbufp?rcbufp-rcbuf:0); /* save old */ | ^ ./misc.h:8:26: note: expanded from macro 'app_vali' 8 | #define app_vali(sp,val) app_val_type(sp,int,union offori,val) | ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' 6 | #define app_val_type(sp,t,s,v) (*(t*)app_val_(&sp,sizeof(s))=(v)) | ^ cstdio.c:43:2: warning: passing arguments to 'app_val_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | app_valo(inced,blasttell);app_vali(inced,ifdepth);/* position, brace */ | ^ ./misc.h:7:26: note: expanded from macro 'app_valo' 7 | #define app_valo(sp,val) app_val_type(sp,off_t,union offori,val) | ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' 6 | #define app_val_type(sp,t,s,v) (*(t*)app_val_(&sp,sizeof(s))=(v)) | ^ cstdio.c:43:28: warning: passing arguments to 'app_val_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | app_valo(inced,blasttell);app_vali(inced,ifdepth);/* position, brace */ | ^ ./misc.h:8:26: note: expanded from macro 'app_vali' 8 | #define app_vali(sp,val) app_val_type(sp,int,union offori,val) | ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' 6 | #define app_val_type(sp,t,s,v) (*(t*)app_val_(&sp,sizeof(s))=(v)) | ^ cstdio.c:44:2: warning: passing arguments to 'app_val_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | app_vali(inced,rc); /* depth & fd */ | ^ ./misc.h:8:26: note: expanded from macro 'app_vali' 8 | #define app_vali(sp,val) app_val_type(sp,int,union offori,val) | ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' 6 | #define app_val_type(sp,t,s,v) (*(t*)app_val_(&sp,sizeof(s))=(v)) | ^ cstdio.c:46:10: warning: passing arguments to 'bopen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | if(bopen(name)<0) /* try to open the new one */ | ^ cstdio.c:48:17: warning: passing arguments to 'readerr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | rerr: readerr(name); | ^ cstdio.c:36:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | void pushrc(name)const char*const name; /* open include rcfile */ | ^ In file included from cstdio.c:17: ./cstdio.h:4:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | pushrc P((const char*const name)), | ^ cstdio.c:57:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | rclose(rc);rcbufp=rcbufend+1; /* make it look like EOF */ | ^ cstdio.c:65:16: warning: passing arguments to 'readerr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | rerr: { readerr(name); /* skip irregularities */ | ^ cstdio.c:70:47: warning: passing arguments to 'bopen' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | if(orbp=rcbufp,orbe=rcbufend,orc=rc,bopen(name)<0) | ^ cstdio.c:74:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | rclose(orc); /* success! drop the old and */ | ^ cstdio.c:75:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 75 | if(dp=incnamed->enext) /* fixup the name list */ | ~~^~~~~~~~~~~~~~~~ cstdio.c:75:11: note: place parentheses around the assignment to silence this warning 75 | if(dp=incnamed->enext) /* fixup the name list */ | ^ | ( ) cstdio.c:75:11: note: use '==' to turn this assignment into an equality comparison 75 | if(dp=incnamed->enext) /* fixup the name list */ | ^ | == cstdio.c:76:28: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | incnamed->enext=dp->enext,free(dp); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ cstdio.c:54:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | void changerc(name)const char*const name; /* change rcfile */ | ^ In file included from cstdio.c:17: ./cstdio.h:5:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | changerc P((const char*const name)), | ^ cstdio.c:83:21: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | dp=incnamed;rclose(rc); | ^ cstdio.c:89:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | rclose(acc_vali(inced,--i)); | ^ cstdio.c:92:6: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | nlog("Lost"),logqnl(dp->ename),exit(EX_NOINPUT); /* panic */ | ^ cstdio.c:92:21: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | nlog("Lost"),logqnl(dp->ename),exit(EX_NOINPUT); /* panic */ | ^ cstdio.c:100:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | rclose(rc),rc= -1,last=incnamed,incnamed=last->enext,free(last); | ^ cstdio.c:100:59: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | rclose(rc),rc= -1,last=incnamed,incnamed=last->enext,free(last); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ cstdio.c:106:33: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | ifstack.filled=ifdepth,nlog("Missing closing brace\n"); | ^ cstdio.c:127:21: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | *(md=(char*)tgetenv(maildir))&& | ^ cstdio.c:135:18: warning: passing arguments to 'newdynstring' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | newdynstring(&incnamed,md); | ^ cstdio.c:122:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | int bopen(name)const char*const name; /* my fopen */ | ^ In file included from cstdio.c:17: ./cstdio.h:12:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 12 | bopen P((const char*const name)), | ^ cstdio.c:140:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | int getbl(p,end)char*p,*end; /* my gets */ | ^ In file included from cstdio.c:17: ./cstdio.h:13:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 13 | getbl P((char*p,char*end)), | ^ cstdio.c:159:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | void ungetb(x)const int x; /* only for pushing back original characters */ | ^ In file included from cstdio.c:17: ./cstdio.h:8:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | ungetb P((const int x)), | ^ cstdio.c:164:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | int testB(x)const int x; /* fgetc that only succeeds if it matches */ | ^ In file included from cstdio.c:17: ./cstdio.h:15:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 15 | testB P((const int x)), | ^ cstdio.c:208:12: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | { nlog(exceededlb);setoverflow(); | ^ cstdio.c:193:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | int getlline(target,end)char*target,*end; | ^ In file included from cstdio.c:17: ./cstdio.h:18:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 18 | getlline P((char*target,char*end)); | ^ 61 warnings generated. cc -c -O2 -pipe common.c In file included from common.c:11: In file included from ./procmail.h:3: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from common.c:11: In file included from ./procmail.h:3: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ common.c:29:44: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 29 | for(*(p=(const char**)newargv)=binsh;*++p= *argv++;); | ~~~~^~~~~~~~~ common.c:29:44: note: place parentheses around the assignment to silence this warning 29 | for(*(p=(const char**)newargv)=binsh;*++p= *argv++;); | ^ | ( ) common.c:29:44: note: use '==' to turn this assignment into an equality comparison 29 | for(*(p=(const char**)newargv)=binsh;*++p= *argv++;); | ^ | == common.c:30:31: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | execv(*newargv,newargv);nlog("Failed to execute");logqnl(newargv[1]); | ^ common.c:30:59: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | execv(*newargv,newargv);nlog("Failed to execute");logqnl(newargv[1]); | ^ common.c:18:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | void shexec(argv)const char*const*argv; | ^ In file included from common.c:16: ./common.h:4:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | shexec P((const char*const*argv)) __attribute__((noreturn)), | ^ common.c:35:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 35 | { while(p=strpbrk(p,"\t\n\v\f\r")) | ~^~~~~~~~~~~~~~~~~~~~~~~~ common.c:35:10: note: place parentheses around the assignment to silence this warning 35 | { while(p=strpbrk(p,"\t\n\v\f\r")) | ^ | ( ) common.c:35:10: note: use '==' to turn this assignment into an equality comparison 35 | { while(p=strpbrk(p,"\t\n\v\f\r")) | ^ | == common.c:34:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | void detab(p)char*p; | ^ In file included from common.c:16: ./common.h:5:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | detab P((char*p)); | ^ common.c:39:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | char*skpspace(chp)const char*chp; | ^ In file included from common.c:16: ./common.h:7:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | *skpspace P((const char*chp)); | ^ common.c:59:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | int waitfor(pid)const pid_t pid; /* wait for a specific process */ | ^ 34 warnings generated. cc -c -O2 -pipe exopen.c In file included from exopen.c:13: In file included from ./procmail.h:3: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from exopen.c:13: In file included from ./procmail.h:3: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ exopen.c:54:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | int unique(full,p,len,mode,verbos,flags)char*const full;char*p; | ^ exopen.c:69:31: warning: passing arguments to 'ultoan' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | *p=UNIQ_PREFIX,dot=ultoan((unsigned long)thepid,p+1); | ^ exopen.c:76:14: warning: passing arguments to 'ssleep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | ssleep(1); /* tap tap tap... */ | ^ exopen.c:80:15: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | { dot=ultstr(0,(unsigned long)t,p); /* time.pid_s.hostname */ | ^ exopen.c:82:15: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | dot=ultstr(0,(unsigned long)thepid,dot+1); | ^ exopen.c:87:18: warning: passing arguments to 'ultoan' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | host=1+ultoan((unsigned long)t,dot+1); /* _pid%time.hostname */ | ^ exopen.c:97:15: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | op=lastdirsep(full); | ^ exopen.c:119:10: warning: passing arguments to 'writeerr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | writeerr(full); /* for casual users */ | ^ exopen.c:135:15: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | { rclose(i);unlink(full); /* forget it, no permission */ | ^ exopen.c:140:12: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | rwrite(i,"0",1); /* pid 0, `works' across networks */ | ^ exopen.c:143:9: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | rclose(i); | ^ exopen.c:149:11: warning: passing arguments to 'hlink' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | fd=hlink(old,newn);serrno=errno;unlink(old); | ^ exopen.c:150:17: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | if(fd>0)rclose(fd-1); | ^ exopen.c:147:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | int myrename(old,newn)const char*const old,*const newn; | ^ In file included from exopen.c:17: ./exopen.h:6:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | myrename P((const char*const old,const char*const newn)), | ^ exopen.c:156:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | int rlink(old,newn,st)const char*const old,*const newn;struct stat*st; | ^ In file included from exopen.c:17: ./exopen.h:7:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | rlink P((const char*const old,const char*const newn,struct stat*st)), | ^ exopen.c:177:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | int hlink(old,newn)const char*const old,*const newn; | ^ In file included from exopen.c:17: ./exopen.h:8:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | hlink P((const char*const old,const char*const newn)); | ^ 42 warnings generated. cc -c -O2 -pipe goodies.c In file included from goodies.c:13: In file included from ./procmail.h:3: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from goodies.c:13: In file included from ./procmail.h:3: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ goodies.c:28:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | static const char*evalenv(skipping) /* expects the variable name in buf2 */ | ^ goodies.c:66:19: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | early_eof: nlog(unexpeof); | ^ goodies.c:71:12: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | { nlog(exceededlb);setoverflow(); | ^ goodies.c:115:22: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | sgetcp=p=tstrdup(startb);sAll_args=All_args; | ^ goodies.c:122:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | free(p);sgetcp=save; /* chopped up */ | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ goodies.c:138:23: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | { case EOF:nlog(unexpeof); | ^ goodies.c:203:36: warning: passing arguments to 'alphanum' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | while(EOF!=(i=fgetc())&&alphanum(i)) | ^ goodies.c:209:7: warning: passing arguments to 'alphanum' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | if(numeric(*buf2)&&buf2[1]) | ^ ./includes.h:556:29: note: expanded from macro 'numeric' 556 | #define numeric(x) (alphanum((unsigned char)(x))>1) | ^ goodies.c:226:20: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | badsub: nlog("Bad substitution of");logqnl(buf2); | ^ goodies.c:226:50: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | badsub: nlog("Bad substitution of");logqnl(buf2); | ^ goodies.c:251:23: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 251 | case '$':ultstr(0,(unsigned long)thepid,startb=num); | ^ goodies.c:253:22: warning: passing arguments to 'ltstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | case '?':ltstr(0,(long)lexitcode,startb=num); | ^ goodies.c:255:23: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | case '#':ultstr(0,(unsigned long)crestarg,startb=num); | ^ goodies.c:257:22: warning: passing arguments to 'ltstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | case '=':ltstr(0,lastscore,startb=num); | ^ goodies.c:262:38: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | case '-':startb=(char*)tgetenv(lastfolder); /* $- =$LASTFOLDER */ | ^ goodies.c:267:7: warning: passing arguments to 'alphanum' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | if(numeric(i)) /* $n positional argument */ | ^ ./includes.h:556:29: note: expanded from macro 'numeric' 556 | #define numeric(x) (alphanum((unsigned char)(x))>1) | ^ goodies.c:273:15: warning: passing arguments to 'alphanum' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 273 | if(alphanum(i)) /* $name */ | ^ goodies.c:279:39: warning: passing arguments to 'alphanum' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | while(EOF!=(i=fgetc())&&alphanum(i)); | ^ goodies.c:309:24: warning: passing arguments to 'simplesplit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 309 | if(q=simplesplit(p,startb,fencepost,&got)) /* simply split */ | ^ goodies.c:309:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 309 | if(q=simplesplit(p,startb,fencepost,&got)) /* simply split */ | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ goodies.c:309:12: note: place parentheses around the assignment to silence this warning 309 | if(q=simplesplit(p,startb,fencepost,&got)) /* simply split */ | ^ | ( ) goodies.c:309:12: note: use '==' to turn this assignment into an equality comparison 309 | if(q=simplesplit(p,startb,fencepost,&got)) /* simply split */ | ^ | == goodies.c:50:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | int readparse(p,fpgetc,sarg,skipping)register char*p;int(*const fpgetc)(); | ^ In file included from goodies.c:23: ./goodies.h:4:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | readparse P((char*p,int(*const fpgetc)(),const int sarg,int skipping)); | ^ goodies.c:355:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 355 | char*simplesplit(to,from,fencepost,gotp)char*to;const char*from,*fencepost; | ^ In file included from goodies.c:23: ./goodies.h:6:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | *simplesplit P((char*to,const char*from,const char*fencepost,int*gotp)); | ^ goodies.c:375:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 375 | void concatenate(p)register char*p; | ^ In file included from goodies.c:23: ./goodies.h:8:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | concatenate P((char*p)), | ^ goodies.c:385:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 385 | { if(sh=!!strpbrk(p,shellmetas)) | ~~^~~~~~~~~~~~~~~~~~~~~~~~ goodies.c:385:8: note: place parentheses around the assignment to silence this warning 385 | { if(sh=!!strpbrk(p,shellmetas)) | ^ | ( ) goodies.c:385:8: note: use '==' to turn this assignment into an equality comparison 385 | { if(sh=!!strpbrk(p,shellmetas)) | ^ | == goodies.c:388:22: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 388 | { sgetcp=p=tstrdup(p); | ^ goodies.c:395:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 395 | free((char*)p); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ goodies.c:384:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 384 | void metaparse(p)const char*p; /* result in buf */ | ^ In file included from goodies.c:23: ./goodies.h:9:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 9 | metaparse P((const char*p)), | ^ goodies.c:401:22: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 401 | { *dest=' ';ultstr(minwidth-1,-val,dest+1); | ^ goodies.c:406:12: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 406 | ultstr(minwidth,val,dest); /* business as usual */ | ^ goodies.c:399:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 399 | void ltstr(minwidth,val,dest)const int minwidth;const long val;char*dest; | ^ In file included from goodies.c:23: ./goodies.h:10:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | ltstr P((const int minwidth,const long val,char*dest)); | ^ 58 warnings generated. cc -c -O2 -pipe locking.c In file included from locking.c:13: In file included from ./procmail.h:3: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from locking.c:13: In file included from ./procmail.h:3: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ locking.c:30:9: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | { free(name);return 1; /* they're equal, save yourself some effort */ | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ locking.c:32:12: warning: passing arguments to 'unlock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | unlock(lockp); /* unlock any previous lockfile FIRST */ | ^ locking.c:35:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | { free(name);return 1; | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ locking.c:42:9: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | { yell("Bypassed locking",name); | ^ locking.c:43:5: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | free(name);return 0; | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ locking.c:49:10: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | { yell("Locking",name); /* in order to cater for clock skew: get */ | ^ locking.c:64:21: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | triedforce=1,nlog("Forced unlock denied on"),logqnl(name); | ^ locking.c:64:55: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | triedforce=1,nlog("Forced unlock denied on"),logqnl(name); | ^ locking.c:66:15: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | { nlog("Forcing lock on");logqnl(name);suspend(); | ^ locking.c:66:41: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | { nlog("Forcing lock on");logqnl(name);suspend(); | ^ locking.c:85:12: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | { nlog("Truncating");logqnl(name);elog(" and retrying lock\n"); | ^ locking.c:85:33: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | { nlog("Truncating");logqnl(name);elog(" and retrying lock\n"); | ^ locking.c:85:44: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | { nlog("Truncating");logqnl(name);elog(" and retrying lock\n"); | ^ locking.c:92:16: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | faillock: nlog("Lock failure on");logqnl(name); | ^ locking.c:92:42: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | faillock: nlog("Lock failure on");logqnl(name); | ^ locking.c:96:12: warning: passing arguments to 'ssleep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | ds: ssleep((unsigned)locksleep); | ^ locking.c:98:9: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | term: { free(name); /* drop the preallocated buffer */ | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ locking.c:106:10: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | elog(whilstwfor),elog("lockfile"),logqnl(name),Terminate(); | ^ locking.c:106:27: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | elog(whilstwfor),elog("lockfile"),logqnl(name),Terminate(); | ^ locking.c:106:46: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | elog(whilstwfor),elog("lockfile"),logqnl(name),Terminate(); | ^ locking.c:25:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | int lockit(name,lockp)char*name;char**const lockp; | ^ In file included from locking.c:20: ./locking.h:6:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | lockit P((char*name,char**const lockp)), | ^ locking.c:115:17: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | lckfile=tstrdup(noext); | ^ locking.c:122:13: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | { nlog("Deadlock attempted on");logqnl(lckfile); | ^ locking.c:122:45: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | { nlog("Deadlock attempted on");logqnl(lckfile); | ^ locking.c:123:2: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | free(lckfile); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ locking.c:110:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | int lcllock(noext,withext) /* lock a local lockfile */ | ^ In file included from locking.c:20: ./locking.h:7:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | lcllock P((const char*const noext,const char*const withext)), | ^ locking.c:137:10: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | yell("Unlocking",*lockp); | ^ locking.c:139:6: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | nlog("Couldn't unlock"),logqnl(*lockp); | ^ locking.c:139:32: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | nlog("Couldn't unlock"),logqnl(*lockp); | ^ locking.c:143:2: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | free(*lockp); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ locking.c:132:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | void unlock(lockp)char**const lockp; | ^ In file included from locking.c:20: ./locking.h:4:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | unlock P((char**const lockp)); | ^ locking.c:149:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | int xcreat(name,mode,tim,chownit)const char*const name;const mode_t mode; | ^ locking.c:152:15: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | i=lastdirsep(name)-name; | ^ locking.c:159:16: warning: passing arguments to 'myrename' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | j=myrename(p,name); | ^ locking.c:161:3: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | free(p); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ locking.c:191:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | nlog("Acquiring kernel-lock\n"); | ^ locking.c:193:32: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | for(;!toutflag;verbose&&(nlog("Reiterating kernel-lock\n"),0), | ^ locking.c:194:10: warning: passing arguments to 'ssleep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | ssleep((unsigned)locksleep)) | ^ locking.c:188:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | int fdlock(fd)int fd; | ^ In file included from locking.c:20: ./locking.h:21:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 21 | fdlock P((int fd)), | ^ 66 warnings generated. cc -c -O2 -pipe mailfold.c In file included from mailfold.c:13: In file included from ./procmail.h:3: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from mailfold.c:13: In file included from ./procmail.h:3: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ mailfold.c:39:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | static const char*fifrom(fromw,lbound,ubound) | ^ mailfold.c:51:20: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | doesc=0,rwrite(s,esc,STRLEN(esc)),lastdump++; /* escape it */ | ^ mailfold.c:48:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | static long getchunk(s,fromw,len)const int s;const char*fromw;const long len; | ^ mailfold.c:85:58: warning: passing arguments to 'fdlock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | { if(ft_lock(type)&&(lseek(s,(off_t)0,SEEK_END),fdlock(s))) | ^ mailfold.c:86:6: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | nlog("Kernel-lock failed\n"); | ^ mailfold.c:98:11: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | rwrite(s,source++,1);len--;part--; /* set the trap */ | ^ mailfold.c:101:14: warning: passing arguments to 'ssleep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | ssleep(1); /* ...what a difference this (tea) second makes... */ | ^ mailfold.c:108:27: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | jin: while(part&&(i=rwrite(s,source,BLKSIZst_ino,p); /* i-node numbered */ | ^ foldinfo.c:63:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | { nlog("Renaming bogus mailbox \"");elog(name);elog("\" info"); | ^ foldinfo.c:63:44: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | { nlog("Renaming bogus mailbox \"");elog(name);elog("\" info"); | ^ foldinfo.c:63:55: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | { nlog("Renaming bogus mailbox \"");elog(name);elog("\" info"); | ^ foldinfo.c:64:12: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | logqnl(buf2); | ^ foldinfo.c:54:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | int rnmbogus(name,stbuf,i,dolog)const char*const name; /* move a file */ | ^ foldinfo.c:77:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | static mode_t trymkdir(dir,paranoid,i)const char*const dir; | ^ foldinfo.c:101:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | static int mkmaildir(buffer,chp,paranoid)char*const buffer,*const chp; | ^ foldinfo.c:112:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | int foldertype(type,forcedir,modep,paranoid)int type,forcedir; | ^ foldinfo.c:136:6: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | nlog("Internal error: improper type ("); | ^ foldinfo.c:137:7: warning: passing arguments to 'ltstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | ltstr(0,type,buf2);elog(buf2); | ^ foldinfo.c:137:25: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | ltstr(0,type,buf2);elog(buf2); | ^ foldinfo.c:138:6: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | elog(") passed to foldertype for folder ");logqnl(buf); | ^ foldinfo.c:138:51: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | elog(") passed to foldertype for folder ");logqnl(buf); | ^ foldinfo.c:149:34: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | memcpy(buf2,buf,i=lastdirsep(buf)-buf),buf2[i]='\0'; | ^ foldinfo.c:153:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | { nlog("Unable to treat as directory");logqnl(buf); /* we can't make it */ | ^ foldinfo.c:153:49: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | { nlog("Unable to treat as directory");logqnl(buf); /* we can't make it */ | ^ foldinfo.c:155:26: warning: passing arguments to 'skipped' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | { *chp='\0';skipped(buf);type=ft_CANTCREATE; | ^ foldinfo.c:171:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | int screenmailbox(chp,egid,doautoforward) | ^ foldinfo.c:183:23: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | ch= *(chp=lastdirsep(buf)); | ^ foldinfo.c:205:14: warning: passing arguments to 'checkroot' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | { checkroot('g',(unsigned long)sgid); | ^ foldinfo.c:254:27: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 254 | { int i=lastdirsep(buf)-buf; | ^ foldinfo.c:267:9: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | { nlog("Autoforwarding mailbox found\n"); | ^ foldinfo.c:276:12: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 276 | nlog(enfperm);logqnl(buf); | ^ foldinfo.c:276:28: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 276 | nlog(enfperm);logqnl(buf); | ^ foldinfo.c:295:13: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 295 | { nlog("Couldn't create");logqnl(buf); | ^ foldinfo.c:295:39: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 295 | { nlog("Couldn't create");logqnl(buf); | ^ foldinfo.c:302:24: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 302 | defdeflock=tstrdup(buf); | ^ foldinfo.c:305:25: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 305 | { int i=lastdirsep(buf)-buf; | ^ 52 warnings generated. cc -c -O2 -pipe misc.c In file included from misc.c:13: In file included from ./procmail.h:3: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from misc.c:13: In file included from ./procmail.h:3: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ misc.c:51:6: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 51 | if(p=lmax?frealloc(old,newmax):fmalloc(newmax))/* fragile allocation */ | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ misc.c:51:6: note: place parentheses around the assignment to silence this warning 51 | if(p=lmax?frealloc(old,newmax):fmalloc(newmax))/* fragile allocation */ | ^ | ( ) misc.c:51:6: note: use '==' to turn this assignment into an equality comparison 51 | if(p=lmax?frealloc(old,newmax):fmalloc(newmax))/* fragile allocation */ | ^ | == misc.c:67:12: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | { rwrite(STDERR,old,lold); | ^ misc.c:71:12: warning: passing arguments to 'rwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | rwrite(STDERR,newt,lnew); | ^ misc.c:35:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | void elog(newt)const char*const newt; | ^ In file included from misc.c:17: ./misc.h:25:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 25 | elog P((const char*const newt)), | ^ misc.c:80:9: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | { rclose(savstdout);closelog();closerc(); | ^ misc.c:90:7: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | nlog(insufprivs); | ^ misc.c:84:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | void checkroot(c,Xid)const int c;const unsigned long Xid; | ^ In file included from misc.c:17: ./misc.h:28:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 28 | checkroot P((const int c,const unsigned long Xid)), | ^ misc.c:111:7: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | { nlog(errwwriting);logqnl(line); | ^ misc.c:111:27: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | { nlog(errwwriting);logqnl(line); | ^ misc.c:110:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | void writeerr(line)const char*const line; | ^ In file included from misc.c:17: ./misc.h:30:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 30 | writeerr P((const char*const line)), | ^ misc.c:114:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | int forkerr(pid,a)const pid_t pid;const char*const a; | ^ misc.c:116:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | { nlog("Failed forking");logqnl(a); | ^ misc.c:116:35: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | { nlog("Failed forking");logqnl(a); | ^ misc.c:124:7: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | nlog(okay?"Non-zero exitcode (":"Program failure ("); | ^ misc.c:125:8: warning: passing arguments to 'ltstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | ltstr(0,(long)xitcode,num);elog(num);elog(okay?") from":") of"); | ^ misc.c:126:9: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | logqnl(line); | ^ misc.c:122:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | void progerr(line,xitcode,okay)const char*const line;int xitcode,okay; | ^ In file included from misc.c:17: ./misc.h:31:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 31 | progerr P((const char*const line,int xitcode,int okay)), | ^ misc.c:130:7: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | { nlog("Couldn't chdir to");logqnl(dir); | ^ misc.c:130:35: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | { nlog("Couldn't chdir to");logqnl(dir); | ^ misc.c:129:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | void chderr(dir)const char*const dir; | ^ In file included from misc.c:17: ./misc.h:32:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 32 | chderr P((const char*const dir)), | ^ misc.c:134:7: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | { nlog("Couldn't read");logqnl(file); | ^ misc.c:134:31: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | { nlog("Couldn't read");logqnl(file); | ^ misc.c:133:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | void readerr(file)const char*const file; | ^ In file included from misc.c:17: ./misc.h:33:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 33 | readerr P((const char*const file)), | ^ misc.c:141:15: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | if(readparse(buf,sgetc,2,0)) | ^ misc.c:144:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | bad: nlog(name);elog(toolong);elog(newline); | ^ misc.c:148:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | { nlog(name);elog(notabsolute);elog(newline); | ^ misc.c:137:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | int buildpath(name,path,file)const char*name,*const path,*const file; | ^ In file included from misc.c:17: ./misc.h:50:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 50 | buildpath P((const char*name,const char*const path,const char*const file)), | ^ misc.c:168:10: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | qsignal(SIGUSR1,verboff); | ^ misc.c:175:10: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | qsignal(SIGUSR2,verbon); | ^ misc.c:181:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | nlog(a),logqnl(b); | ^ misc.c:181:20: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | nlog(a),logqnl(b); | ^ misc.c:179:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | void yell(a,b)const char*const a,*const b; /* log if VERBOSE=on */ | ^ In file included from misc.c:17: ./misc.h:38:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 38 | yell P((const char*const a,const char*const b)), | ^ misc.c:200:38: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 200 | elog("[");oldtime=newtime;ultstr(0,(unsigned long)thepid,num);elog(num); | ^ misc.c:194:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | void nlog(a)const char*const a; | ^ In file included from misc.c:17: ./misc.h:39:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 39 | nlog P((const char*const a)), | ^ misc.c:206:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | void logqnl(a)const char*const a; | ^ In file included from misc.c:17: ./misc.h:40:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 40 | logqnl P((const char*const a)), | ^ misc.c:210:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | void skipped(x)const char*const x; | ^ In file included from misc.c:17: ./misc.h:41:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 41 | skipped P((const char*const x)), | ^ misc.c:217:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 217 | while(p= *gargv) | ~^~~~~~~~ misc.c:217:10: note: place parentheses around the assignment to silence this warning 217 | while(p= *gargv) | ^ | ( ) misc.c:217:10: note: use '==' to turn this assignment into an equality comparison 217 | while(p= *gargv) | ^ | == misc.c:232:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | char*tstrdup(a)const char*const a; | ^ In file included from misc.c:17: ./misc.h:57:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 57 | *tstrdup P((const char*const a)), | ^ misc.c:240:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | free(a); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ misc.c:238:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | char*cstr(a,b)char*const a;const char*const b; /* dynamic buffer management */ | ^ In file included from misc.c:17: ./misc.h:58:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 58 | *cstr P((char*const a,const char*const b)), | ^ misc.c:264:6: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 264 | if(i=(lcking&~lck__NOMSG)>>1) | ~^~~~~~~~~~~~~~~~~~~~~~~~ misc.c:264:6: note: place parentheses around the assignment to silence this warning 264 | if(i=(lcking&~lck__NOMSG)>>1) | ^ | ( ) misc.c:264:6: note: use '==' to turn this assignment into an equality comparison 264 | if(i=(lcking&~lck__NOMSG)>>1) | ^ | == misc.c:284:12: warning: passing arguments to 'sendcomsat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 284 | sendcomsat(lstfolder); | ^ misc.c:287:26: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 287 | { lstfolder=tgetenv(lastfolder); | ^ misc.c:288:12: warning: passing arguments to 'sendcomsat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 288 | sendcomsat(0); | ^ misc.c:290:17: warning: passing arguments to 'logabstract' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 290 | logabstract(lstfolder); | ^ misc.c:293:10: warning: passing arguments to 'exectrap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 293 | exectrap(traps); | ^ misc.c:296:23: warning: passing arguments to 'unlock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 296 | nextexit=2;unlock(&loclock);unlock(&globlock); | ^ misc.c:296:40: warning: passing arguments to 'unlock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 296 | nextexit=2;unlock(&loclock);unlock(&globlock); | ^ misc.c:305:9: warning: passing arguments to 'ssleep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 305 | { ssleep((unsigned)suspendv); | ^ misc.c:321:10: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | { qsignal(SIGTERM,srequeue);qsignal(SIGINT,sbounce); | ^ misc.c:321:36: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | { qsignal(SIGTERM,srequeue);qsignal(SIGINT,sbounce); | ^ misc.c:322:10: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 322 | qsignal(SIGHUP,sbounce);qsignal(SIGQUIT,slose); | ^ misc.c:322:34: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 322 | qsignal(SIGHUP,sbounce);qsignal(SIGQUIT,slose); | ^ misc.c:326:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | static void squeeze(target)char*target; | ^ misc.c:354:15: warning: passing arguments to 'bregcomp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | bregcomp(expr,!casesens)),(const uchar*)source,(const uchar*)source, | ^ misc.c:356:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 356 | free(expr); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ misc.c:350:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 350 | char*egrepin(expr,source,len,casesens)char*expr;const char*source; | ^ In file included from misc.c:17: ./misc.h:59:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 59 | *egrepin P((char*expr,const char*source,const long len,int casesens)); | ^ misc.c:364:26: warning: passing arguments to 'auth_whatuid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | passinvk&&auth_whatuid(passinvk)==uid|| | ^ misc.c:361:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 361 | int enoughprivs(passinvk,euid,egid,uid,gid)const auth_identity*const passinvk; | ^ In file included from misc.c:17: ./misc.h:52:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 52 | enoughprivs Q2((const auth_identity*const passinvk,const uid_t euid, | ^ misc.c:368:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 368 | const char*newdynstring(adrp,chp)struct dynstring**const adrp; | ^ In file included from misc.c:17: ./misc.h:61:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 61 | *newdynstring P((struct dynstring**const adrp,const char*const chp)); | ^ misc.c:376:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | void*app_val_(sp,size)struct dyna_array*const sp;int size; | ^ In file included from misc.c:17: ./misc.h:46:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 46 | *app_val_ P((struct dyna_array*const sp,int size)), | ^ misc.c:397:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 397 | else | ^ misc.c:402:13: warning: passing arguments to 'concon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 402 | concon(' '); | ^ misc.c:422:16: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | if(!testB('*')) /* marks a condition, new syntax */ | ^ misc.c:424:14: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 424 | { if(testB('#')) /* line starts with a comment? */ | ^ misc.c:428:14: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 428 | if(testB('\n')) /* skip empty lines */ | ^ misc.c:432:28: warning: passing arguments to 'testB' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 432 | if(skippedempty&&testB(':')) | ^ misc.c:439:18: warning: passing arguments to 'getlline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 439 | if(getlline(buf2,buf2+linebuf)) | ^ misc.c:458:34: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | if(chp2>buf2&&*(chp2=skpspace(chp2))=='^') | ^ misc.c:465:17: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 465 | chp2=skpspace(chp3); | ^ misc.c:473:16: warning: passing arguments to 'alphanum' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 473 | { if(alphanum(*(chp2=chp))==1) | ^ misc.c:475:22: warning: passing arguments to 'alphanum' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 475 | while(alphanum(*++chp2)); | ^ misc.c:476:33: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 476 | if(!strncmp(chp3=skpspace(chp2),"??",2)) | ^ misc.c:491:19: warning: passing arguments to 'concon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 491 | docon: concon(' '); | ^ misc.c:494:46: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 494 | ltobesent=strlen(lstartchar=(char*)tgetenv(chp)); | ^ misc.c:495:26: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 495 | partition: chp2=skpspace(chp3+2);chp++;sizecheck=ltobesent; | ^ misc.c:531:15: warning: passing arguments to 'bregcomp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 531 | re=bregcomp(chp,igncase);chp=lstartchar; | ^ misc.c:562:4: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 562 | free(re); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ misc.c:570:17: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 570 | if(readparse(buf,sgetc,2,0)&&(i=0,1)) | ^ misc.c:572:25: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 572 | strcpy(buf2,skpspace(buf)); | ^ misc.c:574:41: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 574 | case '!':negate^=1;chp2=skpspace(chp); | ^ misc.c:577:35: warning: passing arguments to 'metaparse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 577 | case '?':pwait=2;metaparse(chp);inittmout(buf);ignwerr=1; | ^ misc.c:577:50: warning: passing arguments to 'inittmout' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 577 | case '?':pwait=2;metaparse(chp);inittmout(buf);ignwerr=1; | ^ misc.c:578:11: warning: passing arguments to 'pipin' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 578 | pipin(buf,lstartchar,ltobesent,0); | ^ misc.c:594:17: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 594 | if(readparse(buf,sgetc,2,0)&&(i=0,1)) | ^ misc.c:599:21: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 599 | skipped(skpspace(chp));strcpy(buf2,buf); | ^ misc.c:629:30: warning: passing arguments to 'ltstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 629 | nlog("Score: ");ltstr(7,(long)(score-lscore),num); | ^ misc.c:632:10: warning: passing arguments to 'ltstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 632 | ltstr(7,iscore,num); | ^ misc.c:385:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 385 | int conditions(flags,prevcond,lastsucc,lastcond,skipping,nrcond)char flags[]; | ^ In file included from misc.c:17: ./misc.h:54:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 54 | conditions P((char flags[],const int prevcond,const int lastsucc, | ^ 130 warnings generated. cc -c -O2 -pipe pipes.c In file included from pipes.c:13: In file included from ./procmail.h:3: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from pipes.c:13: In file included from ./procmail.h:3: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ pipes.c:44:16: warning: passing arguments to 'cstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | { lastexec=cstr(lastexec,progname);toutflag=0; | ^ pipes.c:43:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | void inittmout(progname)const char*const progname; | ^ In file included from pipes.c:18: ./pipes.h:5:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | inittmout P((const char*const progname)), | ^ pipes.c:50:38: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | { alarm(0);alrmtime=0;toutflag=1;nlog("Timeout, "); /* careful, killing */ | ^ pipes.c:51:7: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | elog(pidchild>0&&!kill(pidchild,SIGTERM)?"terminating":"was waiting for"); | ^ pipes.c:52:9: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | logqnl(lastexec);signal(SIGALRM,(void(*)())ftimeout); | ^ pipes.c:66:15: warning: passing arguments to 'dump' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | else if(dump(PWRB,ft_PIPE,backblock,backlen)) /* pump data back via */ | ^ pipes.c:67:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | nlog(rescdata),elog("failed\n"); /* the backpipe */ | ^ pipes.c:67:25: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | nlog(rescdata),elog("failed\n"); /* the backpipe */ | ^ pipes.c:69:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | nlog(rescdata),elog("succeeded\n"); | ^ pipes.c:69:25: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | nlog(rescdata),elog("succeeded\n"); | ^ pipes.c:74:35: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | { lexitcode=EX_UNAVAILABLE;qsignal(SIGTERM,stermchild); | ^ pipes.c:75:10: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | qsignal(SIGINT,stermchild);qsignal(SIGHUP,stermchild); | ^ pipes.c:75:37: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | qsignal(SIGINT,stermchild);qsignal(SIGHUP,stermchild); | ^ pipes.c:76:10: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | qsignal(SIGQUIT,stermchild);shutdesc(); | ^ pipes.c:80:9: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | { rclose(STDIN);rdup(pip);rclose(pip); | ^ pipes.c:80:21: warning: passing arguments to 'rdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | { rclose(STDIN);rdup(pip);rclose(pip); | ^ pipes.c:80:33: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | { rclose(STDIN);rdup(pip);rclose(pip); | ^ pipes.c:79:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | static void getstdin(pip)const int pip; | ^ pipes.c:94:10: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | yell(executing,newname);newargv[3]=0;newargv[2]=newname; | ^ pipes.c:95:44: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | newargv[1]=shellflags;*newargv=tgetenv(shell);shexec(newargv); | ^ pipes.c:95:58: warning: passing arguments to 'shexec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | newargv[1]=shellflags;*newargv=tgetenv(shell);shexec(newargv); | ^ pipes.c:100:13: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | { nlog(executing);elog(oquote); | ^ pipes.c:100:29: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | { nlog(executing);elog(oquote); | ^ pipes.c:105:9: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | { elog(comma); | ^ pipes.c:107:9: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | elog(p); | ^ pipes.c:114:12: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | { elog(comma); | ^ pipes.c:115:19: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | No_1st_comma: elog(*walkargs); /* expand it */ | ^ pipes.c:124:6: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | elog(cquote); /* allocate argv array */ | ^ pipes.c:133:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 133 | while(newargv[argc]= *walkargs++) | ~~~~~~~~~~~~~^~~~~~~~~~~~~ pipes.c:133:27: note: place parentheses around the assignment to silence this warning 133 | while(newargv[argc]= *walkargs++) | ^ | ( ) pipes.c:133:27: note: use '==' to turn this assignment into an equality comparison 133 | while(newargv[argc]= *walkargs++) | ^ | == pipes.c:138:24: warning: passing arguments to 'shexec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | newargv[argc]=0;shexec(newargv); | ^ pipes.c:83:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | static void callnewprog(newname)const char*const newname; | ^ pipes.c:148:11: warning: passing arguments to 'rpipe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | rpipe(pbackfd); | ^ pipes.c:149:8: warning: passing arguments to 'rpipe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | rpipe(pinfd); /* main pipes setup */ | ^ pipes.c:152:25: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | childsetup();rclose(PRDI);rclose(PRDB); | ^ pipes.c:152:38: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | childsetup();rclose(PRDI);rclose(PRDB); | ^ pipes.c:153:11: warning: passing arguments to 'rpipe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | rpipe(poutfd);rclose(STDOUT); | ^ pipes.c:153:26: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | rpipe(poutfd);rclose(STDOUT); | ^ pipes.c:155:15: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | { rclose(PWRB);rclose(PWRO);rdup(PWRI);rclose(PWRI);getstdin(PRDO); | ^ pipes.c:155:28: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | { rclose(PWRB);rclose(PWRO);rdup(PWRI);rclose(PWRI);getstdin(PRDO); | ^ pipes.c:155:39: warning: passing arguments to 'rdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | { rclose(PWRB);rclose(PWRO);rdup(PWRI);rclose(PWRI);getstdin(PRDO); | ^ pipes.c:155:52: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | { rclose(PWRB);rclose(PWRO);rdup(PWRI);rclose(PWRI);getstdin(PRDO); | ^ pipes.c:158:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | rclose(PWRI);rclose(PRDO); | ^ pipes.c:158:25: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | rclose(PWRI);rclose(PRDO); | ^ pipes.c:160:8: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | rclose(PWRO),stermchild(); | ^ pipes.c:161:13: warning: passing arguments to 'dump' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | if(dump(PWRO,ft_PIPE,source,len)&&!ignwerr) /* send in the text */ | ^ pipes.c:162:10: warning: passing arguments to 'writeerr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | writeerr(line),lexitcode=EX_IOERR,stermchild(); /* to be filtered */ | ^ pipes.c:172:20: warning: passing arguments to 'progerr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | perr: progerr(line,excode,pwait==4); /* I'm going to tell my mommy! */ | ^ pipes.c:176:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | rclose(PWRB);exit(EXIT_SUCCESS); /* allow parent to proceed */ | ^ pipes.c:178:9: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | rclose(PWRB);rclose(PWRI);getstdin(PRDI); | ^ pipes.c:178:22: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | rclose(PWRB);rclose(PWRI);getstdin(PRDI); | ^ pipes.c:143:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | int pipthrough(line,source,len)char*line,*source;const long len; | ^ In file included from pipes.c:18: ./pipes.h:10:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | pipthrough P((char*line,char*source,const long len)), | ^ pipes.c:187:8: warning: passing arguments to 'rpipe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | rpipe(poutfd); | ^ pipes.c:189:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | rclose(PWRO),shutdesc(),getstdin(PRDO),callnewprog(line); | ^ pipes.c:190:9: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | rclose(PRDO); | ^ pipes.c:192:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | { rclose(PWRO); | ^ pipes.c:195:15: warning: passing arguments to 'dump' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | if((len=dump(PWRO,ft_PIPE,source,len))&&(!ignwerr||(len=0))) | ^ pipes.c:196:14: warning: passing arguments to 'writeerr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | writeerr(line); /* pipe was shut in our face, get mad */ | ^ pipes.c:200:12: warning: passing arguments to 'progerr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 200 | progerr(line,excode,pwait&2); | ^ pipes.c:206:17: warning: passing arguments to 'concatenate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | concatenate(line); | ^ pipes.c:208:19: warning: passing arguments to 'setlastfolder' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | setlastfolder(line); | ^ pipes.c:184:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | long pipin(line,source,len,asgnlastf)char*const line;char*source;long len; | ^ In file included from pipes.c:18: ./pipes.h:13:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 13 | pipin P((char*const line,char*source,long len,int asgnlastf)); | ^ pipes.c:215:22: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | if(0>=(got=rread(STDIN,p,left))) /* read mail */ | ^ pipes.c:212:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | static char*read_read(p,left,data)char*p;long left;void*data; | ^ pipes.c:227:13: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 227 | if(1==rread(STDIN,buf,1)) /* backup pipe closed? */ | ^ pipes.c:228:16: warning: passing arguments to 'resizeblock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | { resizeblock(mb,oldfilled,0); | ^ pipes.c:221:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | static int read_cleanup(mb,filledp,origfilled,data)memblk*mb; | ^ pipes.c:243:18: warning: passing arguments to 'read2blk' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | { return read2blk(mb,filled,&read_read,&read_cleanup,&oldfilled); | ^ pipes.c:242:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 242 | char*readdyn(mb,filled,oldfilled)memblk*const mb;long*const filled,oldfilled; | ^ In file included from pipes.c:18: ./pipes.h:15:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 15 | *readdyn P((struct memblk*const mb,long*const filled,long oldfilled)), | ^ pipes.c:248:14: warning: passing arguments to 'primeStdout' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 248 | primeStdout(nameeq); | ^ pipes.c:249:12: warning: passing arguments to 'wrapblock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 249 | wrapblock(&temp,Stdout,Stdfilled); | ^ pipes.c:251:12: warning: passing arguments to 'retStdout' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 251 | retStdout(temp.p,pwait&&pipw,!value); | ^ pipes.c:246:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | int readvar(nameeq,value,len)char*const nameeq,*const value;const long len; | ^ In file included from pipes.c:18: ./pipes.h:11:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 11 | readvar P((char*const nameeq,char*const value,const long len)); | ^ pipes.c:255:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | char*fromprog(name,dest,max)char*name;char*const dest;size_t max; | ^ pipes.c:257:8: warning: passing arguments to 'rpipe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | rpipe(pinfd);inittmout(name); | ^ pipes.c:259:25: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | { childsetup();rclose(PRDI);rpipe(poutfd);rclose(STDOUT); | ^ pipes.c:259:37: warning: passing arguments to 'rpipe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | { childsetup();rclose(PRDI);rpipe(poutfd);rclose(STDOUT); | ^ pipes.c:259:52: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | { childsetup();rclose(PRDI);rpipe(poutfd);rclose(STDOUT); | ^ pipes.c:261:8: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | rclose(PWRO),rdup(PWRI),rclose(PWRI),getstdin(PRDO),callnewprog(name); | ^ pipes.c:261:19: warning: passing arguments to 'rdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | rclose(PWRO),rdup(PWRI),rclose(PWRI),getstdin(PRDO),callnewprog(name); | ^ pipes.c:261:32: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | rclose(PWRO),rdup(PWRI),rclose(PWRI),getstdin(PRDO),callnewprog(name); | ^ pipes.c:262:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | rclose(PWRI);rclose(PRDO); | ^ pipes.c:262:25: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | rclose(PWRI);rclose(PRDO); | ^ pipes.c:264:8: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | rclose(PWRO),stermchild(); | ^ pipes.c:265:12: warning: passing arguments to 'concon' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | concon('\n'); | ^ pipes.c:266:10: warning: passing arguments to 'dump' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | dump(PWRO,ft_PIPE,themail.p,filled);waitfor(pidfilt);exit(lexitcode); | ^ pipes.c:268:9: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | rclose(PWRI);p=dest; | ^ pipes.c:270:18: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | { name=tstrdup(name); | ^ pipes.c:271:22: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 271 | while(0<(i=rread(PRDI,p,(int)max))&&(p+=i,max-=i)); /* read its lips */ | ^ pipes.c:272:16: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 272 | if(0(i=opena(file))) /* error? keep the old LOGFILE */ | ^ robust.c:116:14: warning: passing arguments to 'writeerr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | writeerr(file),syslog(LOG_NOTICE,slogstr,errwwriting,file); | ^ robust.c:118:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | rclose(STDERR),rdup(i),rclose(i),logopened=1; | ^ robust.c:118:25: warning: passing arguments to 'rdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | rclose(STDERR),rdup(i),rclose(i),logopened=1; | ^ robust.c:118:35: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | rclose(STDERR),rdup(i),rclose(i),logopened=1; | ^ robust.c:110:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | void opnlog(file)const char*file; | ^ In file included from robust.c:14: ./robust.h:10:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | opnlog P((const char*file)), | ^ robust.c:122:7: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | { yell("Opening",a); | ^ robust.c:121:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | int opena(a)const char*const a; | ^ In file included from robust.c:14: ./robust.h:16:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 16 | opena P((const char*const a)), | ^ robust.c:132:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | int ropen(name,mode,mask)const char*const name;const int mode; | ^ robust.c:142:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | int rpipe(fd)int fd[2]; | ^ In file included from robust.c:14: ./robust.h:18:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 18 | rpipe P((int fd[2])), | ^ robust.c:153:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | int rdup(p)const int p; | ^ In file included from robust.c:14: ./robust.h:19:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 19 | rdup P((const int p)), | ^ robust.c:162:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | int rclose(fd)const int fd; /* a SysV secure close (signal immune) */ | ^ In file included from robust.c:14: ./robust.h:20:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 20 | rclose P((const int fd)), | ^ robust.c:168:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | int rread(fd,a,len)const int fd,len;void*const a; /* a SysV secure read */ | ^ In file included from robust.c:14: ./robust.h:21:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 21 | rread P((const int fd,void*const a,const int len)), | ^ robust.c:174:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | int rwrite(fd,a,len)const int fd,len;const void*const a; | ^ In file included from robust.c:14: ./robust.h:22:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 22 | rwrite P((const int fd,const void*const a,const int len)); | ^ robust.c:186:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 186 | else /* set it manually again, to avoid problems with */ | ^ robust.c:180:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | void ssleep(seconds)const unsigned seconds; | ^ In file included from robust.c:14: ./robust.h:11:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 11 | ssleep P((const unsigned seconds)), | ^ robust.c:190:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | void doumask(mask)const mode_t mask; | ^ 68 warnings generated. cc -c -O2 -pipe sublib.c In file included from sublib.c:13: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from sublib.c:13: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ 23 warnings generated. cc -c -O2 -pipe acommon.c In file included from acommon.c:13: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from acommon.c:13: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ acommon.c:40:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | char*ultoan(val,dest)unsigned long val;char*dest; /* convert to a number */ | ^ In file included from acommon.c:14: ./acommon.h:6:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | *ultoan P((unsigned long val,char*dest)), | ^ acommon.c:52:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | char*ultstr(minwidth,val,dest)int minwidth;unsigned long val;char*dest; | ^ In file included from acommon.c:14: ./acommon.h:7:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | *ultstr P((int minwidth,unsigned long val,char*dest)); | ^ 27 warnings generated. cc -c -O2 -pipe mcommon.c In file included from mcommon.c:11: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from mcommon.c:11: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ mcommon.c:20:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | void qsignal(sig,action)const int sig;void(*action)P((void)); | ^ In file included from mcommon.c:12: ./mcommon.h:4:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | qsignal P((const int sig,void(*action)(void))); | ^ 25 warnings generated. cc -c -O2 -pipe lastdirsep.c In file included from lastdirsep.c:11: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from lastdirsep.c:11: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ lastdirsep.c:18:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 18 | while(p=strpbrk(filename,dirsep)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ lastdirsep.c:18:10: note: place parentheses around the assignment to silence this warning 18 | while(p=strpbrk(filename,dirsep)) | ^ | ( ) lastdirsep.c:18:10: note: use '==' to turn this assignment into an equality comparison 18 | while(p=strpbrk(filename,dirsep)) | ^ | == lastdirsep.c:16:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | char*lastdirsep(filename)const char*filename; /* finds the next character */ | ^ In file included from lastdirsep.c:12: ./lastdirsep.h:4:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | *lastdirsep P((const char*filename)); | ^ 26 warnings generated. cc -c -DPROCMAIL -O2 -pipe authenticate.c In file included from authenticate.c:20: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from authenticate.c:20: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ authenticate.c:50:41: warning: '/*' within block comment [-Wcomment] 50 | /*#define MAILSPOOLHOME "/.mail" /* watch the leading / */ | ^ authenticate.c:62:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | static void castlower(str)register char*str; /* and I'll take the low road */ | ^ authenticate.c:68:28: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | static const struct passwd*cgetpwnam(user,sock)const char*const user; | ^ authenticate.c:73:28: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | static const struct passwd*cgetpwuid(uid,sock)const uid_t uid;const int sock; | ^ authenticate.c:80:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 80 | if(p=strchr(user,'@')) /* does the username contain an @? */ | ~^~~~~~~~~~~~~~~~~ authenticate.c:80:10: note: place parentheses around the assignment to silence this warning 80 | if(p=strchr(user,'@')) /* does the username contain an @? */ | ^ | ( ) authenticate.c:80:10: note: use '==' to turn this assignment into an equality comparison 80 | if(p=strchr(user,'@')) /* does the username contain an @? */ | ^ | == authenticate.c:88:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | free(authi.mbox),authi.mbox=0; /* clear the reference */ | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ authenticate.c:77:24: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | /*const*/auth_identity*auth_finduser(user,sock)char*const user;const int sock; | ^ In file included from authenticate.c:39: ./authenticate.h:14:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 14 | *auth_finduser P((char*const user,const int sock)), | ^ authenticate.c:92:24: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | /*const*/auth_identity*auth_finduid(uid,sock)const uid_t uid;const int sock; | ^ authenticate.c:97:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | free(authi.mbox),authi.mbox=0; /* nix old mailbox reference */ | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ authenticate.c:130:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | free(newpass->mbox),newpass->mbox=0; | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ authenticate.c:137:19: warning: passing arguments to 'cstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | np->pw_name=cstr(np->pw_name,op->pw_name); | ^ authenticate.c:138:18: warning: passing arguments to 'cstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | np->pw_dir=cstr(np->pw_dir,op->pw_dir); | ^ authenticate.c:139:20: warning: passing arguments to 'cstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | np->pw_shell=cstr(np->pw_shell,op->pw_shell); | ^ authenticate.c:126:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | void auth_copyid(newpass,oldpass)auth_identity*newpass; | ^ In file included from authenticate.c:39: ./authenticate.h:32:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 32 | auth_copyid P((auth_identity*newpass,const auth_identity*oldpass)), | ^ authenticate.c:148:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 148 | if(p=(struct passwd*)pass->pw) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ authenticate.c:148:7: note: place parentheses around the assignment to silence this warning 148 | if(p=(struct passwd*)pass->pw) | ^ | ( ) authenticate.c:148:7: note: use '==' to turn this assignment into an equality comparison 148 | if(p=(struct passwd*)pass->pw) | ^ | == authenticate.c:146:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | static void auth_zeroout(pass)auth_identity*pass; | ^ authenticate.c:170:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 170 | if(p=(struct passwd*)pass->pw) | ~^~~~~~~~~~~~~~~~~~~~~~~~~ authenticate.c:170:7: note: place parentheses around the assignment to silence this warning 170 | if(p=(struct passwd*)pass->pw) | ^ | ( ) authenticate.c:170:7: note: use '==' to turn this assignment into an equality comparison 170 | if(p=(struct passwd*)pass->pw) | ^ | == authenticate.c:171:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | free(p->pw_name),free(p->pw_dir),free(p->pw_shell),free(p); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ authenticate.c:171:23: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | free(p->pw_name),free(p->pw_dir),free(p->pw_shell),free(p); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ authenticate.c:171:39: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | free(p->pw_name),free(p->pw_dir),free(p->pw_shell),free(p); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ authenticate.c:171:57: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | free(p->pw_name),free(p->pw_dir),free(p->pw_shell),free(p); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ authenticate.c:173:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | free(pass->mbox); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ authenticate.c:174:3: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | free(pass); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ authenticate.c:167:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | void auth_freeid(pass)auth_identity*pass; | ^ In file included from authenticate.c:39: ./authenticate.h:33:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 33 | auth_freeid P((auth_identity*pass)), | ^ authenticate.c:177:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | int auth_filledid(pass)const auth_identity*pass; | ^ In file included from authenticate.c:39: ./authenticate.h:21:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 21 | auth_filledid P((const auth_identity*pass)); | ^ authenticate.c:182:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | const char*auth_mailboxname(pass)auth_identity*const pass; | ^ In file included from authenticate.c:39: ./authenticate.h:24:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 24 | *auth_mailboxname P((auth_identity*const pass)), | ^ authenticate.c:212:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | uid_t auth_whatuid(pass)const auth_identity*const pass; | ^ In file included from authenticate.c:39: ./authenticate.h:29:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 29 | auth_whatuid P((const auth_identity*const pass)), | ^ authenticate.c:216:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | uid_t auth_whatgid(pass)const auth_identity*const pass; | ^ In file included from authenticate.c:39: ./authenticate.h:30:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 30 | auth_whatgid P((const auth_identity*const pass)); | ^ authenticate.c:220:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | const char*auth_homedir(pass)const auth_identity*const pass; | ^ In file included from authenticate.c:39: ./authenticate.h:25:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 25 | *auth_homedir P((const auth_identity*const pass)), | ^ authenticate.c:224:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | const char*auth_shell(pass)const auth_identity*const pass; | ^ In file included from authenticate.c:39: ./authenticate.h:26:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 26 | *auth_shell P((const auth_identity*const pass)), | ^ authenticate.c:228:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | const char*auth_username(pass)const auth_identity*const pass; | ^ In file included from authenticate.c:39: ./authenticate.h:27:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 27 | *auth_username P((const auth_identity*const pass)); | ^ authenticate.c:235:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | free(authi.mbox),authi.mbox=0; /* discard the mailbox reference */ | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ 65 warnings generated. cc -c -O2 -pipe lmtp.c In file included from lmtp.c:12: In file included from ./procmail.h:3: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from lmtp.c:12: In file included from ./procmail.h:3: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ 23 warnings generated. cc -c -O2 -pipe memblk.c In file included from memblk.c:13: In file included from ./procmail.h:3: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from memblk.c:13: In file included from ./procmail.h:3: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ memblk.c:35:17: warning: passing arguments to 'resizeblock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | resizeblock(mb,len,0); | ^ memblk.c:32:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | void makeblock(mb,len)memblk*const mb;const long len; | ^ In file included from memblk.c:16: ./memblk.h:14:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 14 | makeblock P((memblk*const mb,const long len)), /* given length */ | ^ memblk.c:38:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | void wrapblock(mb,p,len)memblk*const mb;char*const p;const long len; | ^ In file included from memblk.c:16: ./memblk.h:15:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 15 | wrapblock P((memblk*const mb,char*const p,const long len)), /* put memblk */ | ^ memblk.c:51:5: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | free(mb->p); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ memblk.c:42:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | void freeblock(mb)memblk*const mb; | ^ In file included from memblk.c:16: ./memblk.h:17:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 17 | freeblock P((memblk*const mb)), /* deallocate it */ | ^ memblk.c:54:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | void lockblock(mb)memblk*const mb; | ^ In file included from memblk.c:16: ./memblk.h:18:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 18 | lockblock P((memblk*const mb)); /* protect this block from future changes */ | ^ memblk.c:69:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | int resizeblock(mb,len,nonfatal)memblk*const mb;const long len; | ^ In file included from memblk.c:16: ./memblk.h:20:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 20 | resizeblock P((memblk*const mb,const long len, /* change the size */ | ^ memblk.c:155:25: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | if(newlast=(*read_func)(mb->p+filled,mb->len-filled,data)) | ^ memblk.c:155:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 155 | if(newlast=(*read_func)(mb->p+filled,mb->len-filled,data)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ memblk.c:155:12: note: place parentheses around the assignment to silence this warning 155 | if(newlast=(*read_func)(mb->p+filled,mb->len-filled,data)) | ^ | ( ) memblk.c:155:12: note: use '==' to turn this assignment into an equality comparison 155 | if(newlast=(*read_func)(mb->p+filled,mb->len-filled,data)) | ^ | == memblk.c:167:35: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | if(cleanup_func&&(*cleanup_func)(mb,&filled,origfilled,data)) | ^ memblk.c:137:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | char*read2blk(mb,filledp,read_func,cleanup_func,data)memblk*const mb; | ^ In file included from memblk.c:16: ./memblk.h:23:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 23 | *read2blk P((memblk*const mb,long*const filledp,read_func_type*read_func, | ^ 40 warnings generated. cc -c -O2 -pipe variables.c In file included from variables.c:13: In file included from ./procmail.h:3: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from variables.c:13: In file included from ./procmail.h:3: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ variables.c:56:7: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | yell("Assigning",a);remove=0; | ^ variables.c:62:45: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | { split=curr->ename;*last=curr->enext;free(curr); /* earlier? */ | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ variables.c:69:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 69 | { while(*preenv=preenv[1]) /* wipe this entry out of the environment */ | ~~~~~~~^~~~~~~~~~ variables.c:69:22: note: place parentheses around the assignment to silence this warning 69 | { while(*preenv=preenv[1]) /* wipe this entry out of the environment */ | ^ | ( ) variables.c:69:22: note: use '==' to turn this assignment into an equality comparison 69 | { while(*preenv=preenv[1]) /* wipe this entry out of the environment */ | ^ | == variables.c:80:62: warning: passing arguments to 'newdynstring' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | preenv[1]=0;*(lastenv=preenv)=(char*)(split=newdynstring(&myenv,a)); | ^ variables.c:53:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | const char*sputenv(a)const char*const a; | ^ In file included from variables.c:25: ./variables.h:4:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | *sputenv P((const char*const a)), | ^ variables.c:86:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | void primeStdout(varname)const char*const varname; /* changes are allowed! */ | ^ In file included from variables.c:25: ./variables.h:8:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | primeStdout P((const char*const varname)), | ^ variables.c:98:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | free(newmyenv);*lastenv=Stdout=0; | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ variables.c:103:13: warning: passing arguments to 'retbStdout' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | retbStdout(newmyenv); | ^ variables.c:109:15: warning: passing arguments to 'asenvtext' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | asenvtext(p+1); /* we always have to update the pointers for these */ | ^ variables.c:111:11: warning: passing arguments to 'asenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | asenv(p+1); /* invoke any magic */ | ^ variables.c:93:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | void retStdout(newmyenv,fail,unset) /* see note on primeStdout() */ | ^ In file included from variables.c:25: ./variables.h:9:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 9 | retStdout P((char*const newmyenv,const int fail,const int unset)), | ^ variables.c:114:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | void retbStdout(newmyenv)char*const newmyenv; /* see note on primeStdout() */ | ^ In file included from variables.c:25: ./variables.h:10:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | retbStdout P((char*const newmyenv)), | ^ variables.c:119:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | void appendlastvar(value)const char*const value; | ^ In file included from variables.c:25: ./variables.h:11:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 11 | appendlastvar P((const char*const value)), | ^ variables.c:129:19: warning: passing arguments to 'readparse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | return readparse(dst,sgetc,2,0)?0:sputenv(buf); | ^ variables.c:127:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | const char*eputenv(src,dst)const char*const src;char*const dst; | ^ In file included from variables.c:25: ./variables.h:5:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | *eputenv P((const char*const src,char*const dst)), | ^ variables.c:139:14: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | if(p!=buf2)free(p); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ variables.c:132:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | void setval(name,value)const char*const name,*const value; /* destroys buf2 */ | ^ In file included from variables.c:25: ./variables.h:16:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 16 | setval P((const char*const name,const char*const value)), | ^ variables.c:142:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | void setdef(name,value)const char*const name,*const value; | ^ In file included from variables.c:25: ./variables.h:17:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 17 | setdef P((const char*const name,const char*const value)), | ^ variables.c:150:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | const char*tgetenv(a)const char*const a; | ^ In file included from variables.c:25: ./variables.h:6:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | *tgetenv P((const char*const a)); | ^ variables.c:168:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 168 | for(ep=emax;p= *ep;ep++) /* scan for this keeper */ | ~^~~~~ variables.c:168:15: note: place parentheses around the assignment to silence this warning 168 | for(ep=emax;p= *ep;ep++) /* scan for this keeper */ | ^ | ( ) variables.c:168:15: note: use '==' to turn this assignment into an equality comparison 168 | for(ep=emax;p= *ep;ep++) /* scan for this keeper */ | ^ | == variables.c:193:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 193 | for(pp=ld_;p= *pp;pp++) /* does it start with LD_ or similar? */ | ~^~~~~ variables.c:193:18: note: place parentheses around the assignment to silence this warning 193 | for(pp=ld_;p= *pp;pp++) /* does it start with LD_ or similar? */ | ^ | ( ) variables.c:193:18: note: use '==' to turn this assignment into an equality comparison 193 | for(pp=ld_;p= *pp;pp++) /* does it start with LD_ or similar? */ | ^ | == variables.c:160:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | void cleanupenv(preserve)int preserve; | ^ In file included from variables.c:25: ./variables.h:12:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 12 | cleanupenv P((int preserve)), | ^ variables.c:205:21: warning: passing arguments to 'auth_username' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | { p=auth_username(pass); | ^ variables.c:209:18: warning: passing arguments to 'auth_shell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | p=auth_shell(pass); | ^ variables.c:213:30: warning: passing arguments to 'auth_homedir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | setdef(home,auth_homedir(pass));setdef(vdefault,auth_mailboxname(pass)); | ^ variables.c:213:70: warning: passing arguments to 'auth_mailboxname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | setdef(home,auth_homedir(pass));setdef(vdefault,auth_mailboxname(pass)); | ^ variables.c:220:10: warning: passing arguments to 'setlgcs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | setlgcs(tgetenv(lgname)); /* make sure sendcomsat has a copy */ | ^ variables.c:200:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 200 | void initdefenv(pass,fallback,do_presets,mode)auth_identity*pass; | ^ In file included from variables.c:25: ./variables.h:13:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 13 | initdefenv Q2((auth_identity*pass,const char*fallback,int do_presets, | ^ variables.c:238:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | int alphanum(c)const unsigned c; | ^ In file included from variables.c:25: ./variables.h:25:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 25 | alphanum P((const unsigned c)); | ^ variables.c:258:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | void setmaildir(newdir)const char*const newdir; /* destroys buf2 */ | ^ In file included from variables.c:25: ./variables.h:20:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 20 | setmaildir P((const char*const newdir)), | ^ variables.c:264:10: warning: passing arguments to 'setlfcs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | { setlfcs(folder); | ^ variables.c:263:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | void setlastfolder(folder)const char*const folder; /* destroys buf2 */ | ^ In file included from variables.c:25: ./variables.h:18:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 18 | setlastfolder P((const char*const folder)), | ^ variables.c:271:26: warning: passing arguments to 'renvint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 271 | { if((forceret=renvint(-2L,p))>=0) /* yes, is it positive? */ | ^ variables.c:279:8: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | ultstr(0,(unsigned long)retval,p+1);sputenv(buf2); | ^ variables.c:268:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | int setexitcode(trapisset)int trapisset; | ^ In file included from variables.c:25: ./variables.h:24:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 24 | setexitcode P((int trapisset)), | ^ variables.c:290:19: warning: passing arguments to 'ungetb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 290 | *chp='\0';ungetb(i); | ^ variables.c:292:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 292 | { nlog(exceededlb);setoverflow(); | ^ variables.c:285:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | char*gobenv(chp,end)char*chp,*end; | ^ In file included from variables.c:25: ./variables.h:27:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 27 | *gobenv P((char*chp,char*end)); | ^ variables.c:305:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 305 | if(chp=strchr(src,'=')) /* is it an assignment? */ | ~~~^~~~~~~~~~~~~~~~ variables.c:305:9: note: place parentheses around the assignment to silence this warning 305 | if(chp=strchr(src,'=')) /* is it an assignment? */ | ^ | ( ) variables.c:305:9: note: use '==' to turn this assignment into an equality comparison 305 | if(chp=strchr(src,'=')) /* is it an assignment? */ | ^ | == variables.c:314:6: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 314 | nlog("Assignment to variable with excessively long name skipped\n"); | ^ variables.c:319:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 319 | if(chp=eputenv(chp,src)) | ~~~^~~~~~~~~~~~~~~~~ variables.c:319:8: note: place parentheses around the assignment to silence this warning 319 | if(chp=eputenv(chp,src)) | ^ | ( ) variables.c:319:8: note: use '==' to turn this assignment into an equality comparison 319 | if(chp=eputenv(chp,src)) | ^ | == variables.c:321:10: warning: passing arguments to 'asenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | asenv(chp); | ^ variables.c:303:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | int asenvcpy(src)char*src; | ^ In file included from variables.c:25: ./variables.h:23:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 23 | asenvcpy P((char*src)), | ^ variables.c:329:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 329 | void allocbuffers(lineb,setenv)size_t lineb;int setenv; | ^ variables.c:333:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 333 | free(buf2); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ variables.c:334:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | free(p); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ variables.c:340:12: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | ultstr(0,lineb,chp+1); | ^ variables.c:345:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 345 | static void asenvtext(chp)const char*const chp; | ^ variables.c:45:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 45 | static void asenvtext P((const char*const chp)); /* needed by retStdout */ | ^ variables.c:359:23: warning: passing arguments to 'renvint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 359 | if((lineb=renvint(0L,chp))0) | ^ variables.c:394:16: warning: passing arguments to 'renvint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 394 | { if(renvint(0L,chp)) | ^ variables.c:396:9: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 396 | nlog("Assuming identity of the recipient, VERBOSE=off\n"); | ^ variables.c:401:16: warning: passing arguments to 'renvint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 401 | { if(renvint(0L,chp)) /* is it really? */ | ^ variables.c:411:24: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 411 | { if(!lockit(tstrdup((char*)chp),&globlock)) | ^ variables.c:411:16: warning: passing arguments to 'lockit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 411 | { if(!lockit(tstrdup((char*)chp),&globlock)) | ^ variables.c:418:8: warning: passing arguments to 'pushrc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 418 | pushrc(chp); /* inside rcfiles */ | ^ variables.c:422:10: warning: passing arguments to 'changerc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | changerc(chp); | ^ variables.c:427:13: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 427 | { yell("HOST mismatched",name); | ^ variables.c:438:29: warning: passing arguments to 'renvint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 438 | strenvvar[i].val=renvint(strenvvar[i].val,chp); | ^ variables.c:353:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 353 | void asenv(chp)const char*const chp; | ^ In file included from variables.c:25: ./variables.h:15:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 15 | asenv P((const char*const chp)), | ^ variables.c:444:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 444 | long renvint(i,env)const long i;const char*const env; | ^ In file included from variables.c:25: ./variables.h:29:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 29 | renvint P((const long i,const char*const env)); | ^ 110 warnings generated. cc -c -O2 -pipe from.c In file included from from.c:13: In file included from ./procmail.h:3: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from from.c:13: In file included from ./procmail.h:3: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ from.c:25:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | int eqFrom_(a)const char*const a; | ^ In file included from from.c:19: ./from.h:4:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | eqFrom_ P((const char*const a)); | ^ from.c:29:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | const char*skipFrom_(startchar,tobesentp)const char*startchar;long*tobesentp; | ^ In file included from from.c:19: ./from.h:6:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | *skipFrom_ P((const char*startchar,long*tobesentp)); | ^ from.c:45:17: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | start=skpspace(start);start+=strcspn(start," \t\n"); /* jump over address */ | ^ from.c:46:14: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | if(skpspace(start)>=end) /* enough space left? */ | ^ from.c:41:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | static char*findtstamp(start,end)const char*start,*end; | ^ from.c:85:9: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | nlog(insufprivs); /* ignore the bogus -f */ | ^ from.c:92:12: warning: passing arguments to 'makeblock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | makeblock(&themail,2*linebuf+(lfr=strlen(fwhom))+(linv=strlen(invoker))); | ^ from.c:107:23: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | { while(1==(r=rread(STDIN,themail.p,1))) /* then read in first line */ | ^ from.c:110:43: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | if(r>0&&STRLEN(From_)<=(extra=1+rread( /* is it a From_ line? */ | ^ from.c:115:23: warning: passing arguments to 'rread' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | { if((extra=rread(STDIN,themail.p,(int)(linebuf-2)))<=0) | ^ from.c:130:8: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | nlog(insufprivs); | ^ from.c:140:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 140 | else | ^ from.c:164:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 164 | else if(from) /* whole new From_? */ | ^ from.c:69:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | void makeFrom(from,invoker)const char*from,*const invoker; | ^ In file included from from.c:19: ./from.h:8:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | makeFrom P((const char*from,const char*const invoker)), | ^ from.c:172:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | void checkprivFrom_(euid,logname,override)uid_t euid;const char*logname; | ^ from.c:182:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 182 | if(grp=getgrgid(gid)) /* check out the invoker's gid */ | ~~~^~~~~~~~~~~~~~ from.c:182:12: note: place parentheses around the assignment to silence this warning 182 | if(grp=getgrgid(gid)) /* check out the invoker's gid */ | ^ | ( ) from.c:182:12: note: use '==' to turn this assignment into an equality comparison 182 | if(grp=getgrgid(gid)) /* check out the invoker's gid */ | ^ | == 42 warnings generated. cc -c -O2 -pipe comsat.c In file included from comsat.c:15: In file included from ./procmail.h:3: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from comsat.c:15: In file included from ./procmail.h:3: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ In file included from comsat.c:26: ./network.h:4:6: warning: '/*' within block comment [-Wcomment] 4 | /* SOCK_DGRAM */ | ^ ./network.h:6:6: warning: '/*' within block comment [-Wcomment] 6 | /* getprotobyname() */ | ^ comsat.c:36:17: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | new=tstrdup(folder); | ^ comsat.c:38:27: warning: passing arguments to 'tgetenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | { const char*md=tgetenv(maildir); | ^ comsat.c:50:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | free(old); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ comsat.c:33:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | void setlfcs(folder)const char*folder; /* set lastfolder for comsat */ | ^ In file included from comsat.c:27: ./comsat.h:6:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | setlfcs P((const char*folder)), | ^ comsat.c:55:14: warning: passing arguments to 'tstrdup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | new=tstrdup(name); | ^ comsat.c:61:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | free(old); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ comsat.c:53:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | void setlgcs(name)const char*name; /* set logname for comsat */ | ^ In file included from comsat.c:27: ./comsat.h:7:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | setlgcs P((const char*name)), | ^ comsat.c:67:21: warning: passing arguments to 'renvint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | if(!chad&&!renvint(-1L,chp)) | ^ comsat.c:113:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 113 | if(csvalid=newvalid) | ~~~~~~~^~~~~~~~~ comsat.c:113:13: note: place parentheses around the assignment to silence this warning 113 | if(csvalid=newvalid) | ^ | ( ) comsat.c:113:13: note: use '==' to turn this assignment into an equality comparison 113 | if(csvalid=newvalid) | ^ | == comsat.c:64:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | int setcomsat(chp)const char*chp; | ^ In file included from comsat.c:27: ./comsat.h:10:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | setcomsat P((const char*chp)); | ^ comsat.c:130:12: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | { ultstr(0,(unsigned long)lasttell,buf2); /* yep, include the offset */ | ^ comsat.c:137:12: warning: passing arguments to 'rclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | rclose(s); | ^ comsat.c:138:10: warning: passing arguments to 'yell' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | yell("Notified comsat:",buf); | ^ comsat.c:119:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | void sendcomsat(folder)const char*folder; | ^ In file included from comsat.c:27: ./comsat.h:8:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | sendcomsat P((const char*folder)); | ^ 43 warnings generated. In file included from setid.c:7: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from setid.c:7: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ setid.c:11:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 11 | int main(argc,argv)const int argc;const char*const argv[]; | ^ 24 warnings generated. cc -O2 -pipe procmail.o cstdio.o common.o exopen.o goodies.o locking.o mailfold.o foldinfo.o misc.o pipes.o regexp.o robust.o sublib.o acommon.o mcommon.o lastdirsep.o authenticate.o lmtp.o memblk.o variables.o from.o comsat.o -o procmail -s -lm -lc ld: warning: acommon.c(acommon.o:(hostname)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: from.c(from.o:(makeFrom)): warning: strcat() is almost always misused, please use strlcat() ln ../src/procmail ../new/procmail cc -c -O2 -pipe lockfile.c In file included from lockfile.c:21: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from lockfile.c:21: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ lockfile.c:43:15: warning: passing arguments to 'lastdirsep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | i=lastdirsep(name)-name; | ^ lockfile.c:48:51: warning: passing arguments to 'myrename' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | stat(p,&stbuf),*tim=stbuf.st_mtime,j=myrename(p,name); | ^ lockfile.c:41:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | static int xcreat(name,tim)const char*const name;time_t*const tim; | ^ lockfile.c:53:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | void elog(a)const char*const a; | ^ lockfile.c:57:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | void nlog(a)const char*const a; | ^ lockfile.c:77:45: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | invert=(char*)progid-(char*)progid;qsignal(SIGHUP,failure); | ^ lockfile.c:78:10: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | qsignal(SIGINT,failure);qsignal(SIGQUIT,failure);qsignal(SIGTERM,failure); | ^ lockfile.c:78:34: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | qsignal(SIGINT,failure);qsignal(SIGQUIT,failure);qsignal(SIGTERM,failure); | ^ lockfile.c:78:59: warning: passing arguments to 'qsignal' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | qsignal(SIGINT,failure);qsignal(SIGQUIT,failure);qsignal(SIGTERM,failure); | ^ lockfile.c:105:28: warning: passing arguments to 'auth_mailboxname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | elog(auth_mailboxname(auth_finduid(getuid(),0))); | ^ lockfile.c:138:28: warning: passing arguments to 'auth_finduser' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | (pass=auth_finduser(ma,0))&& | ^ lockfile.c:139:21: warning: passing arguments to 'auth_whatuid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | auth_whatuid(pass)==uid|| | ^ lockfile.c:145:34: warning: passing arguments to 'auth_mailboxname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | if(!*(p=auth_mailboxname(pass))|| | ^ lockfile.c:63:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | int main(argc,argv)int argc;const char*const argv[]; | ^ lockfile.c:250:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | void*tmalloc(len)const size_t len; /* stub */ | ^ lockfile.c:257:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | void tfree(p)void*const p; /* stub */ | ^ lockfile.c:261:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | int ropen(name,mode,mask)const char*const name;const int mode; | ^ lockfile.c:266:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | int rwrite(fd,a,len)const int fd;const void*const a;const int len; /* stub */ | ^ lockfile.c:270:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | int rclose(fd)const int fd; /* stub */ | ^ lockfile.c:274:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 274 | void writeerr(a)const char*const a; /* stub */ | ^ lockfile.c:278:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 278 | char*cstr(a,b)char*const a;const char*const b; /* stub */ | ^ lockfile.c:282:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | void ssleep(seconds)const unsigned seconds; /* stub */ | ^ 45 warnings generated. cc -O2 -pipe lockfile.o exopen.o sublib.o acommon.o mcommon.o authenticate.o lastdirsep.o -o lockfile -s -lm -lc ld: warning: exopen.c(exopen.o:(unique)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: lockfile.c(lockfile.o:(main)): warning: strcat() is almost always misused, please use strlcat() ln ../src/lockfile ../new/lockfile cc -c -O2 -pipe formail.c In file included from formail.c:16: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from formail.c:16: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ formail.c:124:12: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | ultstr(7,Totallen,num);putssn(num,strlen(num));putcs('\n'); | ^ formail.c:132:13: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | if(eqFrom_(chp)) /* continued From_ to */ | ^ formail.c:133:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 133 | for(;chp=strstr(chp,"\n>");*++chp=' '); /* continued regular field */ | ~~~^~~~~~~~~~~~~~~~~~ formail.c:133:14: note: place parentheses around the assignment to silence this warning 133 | for(;chp=strstr(chp,"\n>");*++chp=' '); /* continued regular field */ | ^ | ( ) formail.c:133:14: note: use '==' to turn this assignment into an equality comparison 133 | for(;chp=strstr(chp,"\n>");*++chp=' '); /* continued regular field */ | ^ | == formail.c:134:34: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | if(newl==STRLEN(From_)&&eqFrom_(newname)) | ^ formail.c:135:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 135 | { for(chp=p->fld_text;chp=strchr(chp,'\n');) /* continued regular */ | ~~~^~~~~~~~~~~~~~~~~ formail.c:135:29: note: place parentheses around the assignment to silence this warning 135 | { for(chp=p->fld_text;chp=strchr(chp,'\n');) /* continued regular */ | ^ | ( ) formail.c:135:29: note: use '==' to turn this assignment into an equality comparison 135 | { for(chp=p->fld_text;chp=strchr(chp,'\n');) /* continued regular */ | ^ | == formail.c:138:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 138 | for(chp=p->fld_text;chp=strstr(chp,"\n ");*++chp='>'); | ~~~^~~~~~~~~~~~~~~~~~ formail.c:138:29: note: place parentheses around the assignment to silence this warning 138 | for(chp=p->fld_text;chp=strstr(chp,"\n ");*++chp='>'); | ^ | ( ) formail.c:138:29: note: use '==' to turn this assignment into an equality comparison 138 | for(chp=p->fld_text;chp=strstr(chp,"\n ");*++chp='>'); | ^ | == formail.c:128:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | static void renfield(pointer,oldl,newname,newl)struct field**const pointer; | ^ formail.c:157:12: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | (fp2=findf(fldp,&iheader))&& | ^ formail.c:162:19: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | if((fp2=findf(fldp,&Iheader))&& /* delete fields */ | ^ formail.c:165:18: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | if(fp2=findf(fldp,&Rheader)) /* explicitly rename field */ | ^ formail.c:165:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 165 | if(fp2=findf(fldp,&Rheader)) /* explicitly rename field */ | ~~~^~~~~~~~~~~~~~~~~~~~~ formail.c:165:12: note: place parentheses around the assignment to silence this warning 165 | if(fp2=findf(fldp,&Rheader)) /* explicitly rename field */ | ^ | ( ) formail.c:165:12: note: use '==' to turn this assignment into an equality comparison 165 | if(fp2=findf(fldp,&Rheader)) /* explicitly rename field */ | ^ | == formail.c:172:14: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | if((uf=findf(fldp,&uheader))&&!uf->fld_ref) | ^ formail.c:174:19: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | else if(fp2=findf(fldp,&Uheader)) | ^ formail.c:174:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 174 | else if(fp2=findf(fldp,&Uheader)) | ~~~^~~~~~~~~~~~~~~~~~~~~ formail.c:174:13: note: place parentheses around the assignment to silence this warning 174 | else if(fp2=findf(fldp,&Uheader)) | ^ | ( ) formail.c:174:13: note: use '==' to turn this assignment into an equality comparison 174 | else if(fp2=findf(fldp,&Uheader)) | ^ | == formail.c:182:16: warning: passing arguments to 'delfield' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | delfield(fp2->fld_ref); /* delete old Uheader */ | ^ formail.c:187:25: warning: passing arguments to 'delfield' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | delfld: { fldp=delfield(afldp); | ^ formail.c:151:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | static void procfields(sareply)const int sareply; | ^ formail.c:232:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 232 | if(pastad=strchr(chp,' ')) /* found an address? */ | ~~~~~~^~~~~~~~~~~~~~~~ formail.c:232:11: note: place parentheses around the assignment to silence this warning 232 | if(pastad=strchr(chp,' ')) /* found an address? */ | ^ | ( ) formail.c:232:11: note: use '==' to turn this assignment into an equality comparison 232 | if(pastad=strchr(chp,' ')) /* found an address? */ | ^ | == formail.c:263:5: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | free(savetmp);savetmp=strchr(tmp,'\0'); /* prepend '<' */ | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ formail.c:267:26: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | while(*(chp=skpspace(chp))=='\n') | ^ formail.c:269:32: warning: passing arguments to 'skipwords' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 269 | for(saddr=0;;chp=skipwords(chp)) /* skip RFC 822 wise */ | ^ formail.c:275:23: warning: passing arguments to 'skipwords' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | case '<':skipwords(saddr=chp); /* hurray, machine useable */ | ^ formail.c:297:8: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 297 | free(namep); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ formail.c:301:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 301 | free(tmp); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ formail.c:214:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | static char*getsender(namep,fldp,headreply)char*namep;struct field*fldp; | ^ formail.c:324:8: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 324 | nlog("Duplicate key found:"),elog(key),elog("\n"); | ^ formail.c:324:37: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 324 | nlog("Duplicate key found:"),elog(key),elog("\n"); | ^ formail.c:324:47: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 324 | nlog("Duplicate key found:"),elog(key),elog("\n"); | ^ formail.c:306:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | static void elimdups(namep,idcache,maxlen,split)const char*const namep; | ^ formail.c:374:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 374 | while(chp=(char*)*++argv) | ~~~^~~~~~~~~~~~~~~ formail.c:374:15: note: place parentheses around the assignment to silence this warning 374 | while(chp=(char*)*++argv) | ^ | ( ) formail.c:374:15: note: use '==' to turn this assignment into an equality comparison 374 | while(chp=(char*)*++argv) | ^ | == formail.c:408:9: warning: passing arguments to 'detab' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 408 | detab(chp); | ^ formail.c:416:40: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 416 | case HELPOPT1:case HELPOPT2:elog(fmusage);elog(FM_HELP); | ^ formail.c:416:54: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 416 | case HELPOPT1:case HELPOPT2:elog(fmusage);elog(FM_HELP); | ^ formail.c:417:8: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | elog(FM_HELP2); /* had to split up FM_HELP, compiler limits */ | ^ formail.c:431:10: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 431 | { nlog("Couldn't open");logqnl(chp); | ^ formail.c:431:34: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 431 | { nlog("Couldn't open");logqnl(chp); | ^ formail.c:447:28: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 447 | case FM_VERSION:elog(formailn);elog(VERSION); | ^ formail.c:447:43: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 447 | case FM_VERSION:elog(formailn);elog(VERSION); | ^ formail.c:489:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 489 | else | ^ formail.c:498:22: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 498 | invfield: { nlog("Invalid field-name:");logqnl(chp?chp:""); | ^ formail.c:498:52: warning: passing arguments to 'logqnl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 498 | invfield: { nlog("Invalid field-name:");logqnl(chp?chp:""); | ^ formail.c:549:15: warning: passing arguments to 'startprog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 549 | startprog((const char*Const*)argv); | ^ formail.c:557:10: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 557 | { elog(fmusage); /* impossible mix */ | ^ formail.c:577:15: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 577 | !findf(fcntlength,&Xheader)); /* getting Content-Length: */ | ^ formail.c:603:24: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 603 | eqFrom_(tmp2=skpspace(tmp+STRLEN(mailfrom)))) | ^ formail.c:603:10: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 603 | eqFrom_(tmp2=skpspace(tmp+STRLEN(mailfrom)))) | ^ formail.c:611:17: warning: passing arguments to 'clear_uhead' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 611 | clear_uhead(uheader);clear_uhead(Uheader); | ^ formail.c:611:38: warning: passing arguments to 'clear_uhead' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 611 | clear_uhead(uheader);clear_uhead(Uheader); | ^ formail.c:612:41: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 612 | wasafrom_=!force&&rdheader&&eqFrom_(rdheader->fld_text); | ^ formail.c:624:33: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 624 | { *afldp=fldp->fld_next;free(fldp);fldp= *afldp; | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ formail.c:623:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] 623 | else if(fldp->Tot_len<=j+2) | ^ formail.c:629:16: warning: passing arguments to 'concatenate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 629 | concatenate(fldp); /* save fields for later perusal */ | ^ formail.c:643:33: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 643 | if(!forgetclen&&(fldp=findf(fcntlength,&rdheader))) | ^ formail.c:652:19: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 652 | if(!(fp2=findf(fldp,&iheader))||fp2->id_lenTot_len-1) | ^ formail.c:653:30: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 653 | *afldp=fldp->fld_next,free(fldp),fldp= *afldp; /* remove all */ | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ formail.c:656:33: warning: passing arguments to 'loadchar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 656 | loadbuf(To,STRLEN(To));loadchar(' '); /* generate the To: field */ | ^ formail.c:661:10: warning: passing arguments to 'loadchar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 661 | loadchar('\n');addbuf(); /* add it to rdheader */ | ^ formail.c:664:28: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 664 | if(strncasecmp(skpspace(chp=subj->rexp),Re,STRLEN(Re))) /* Re: */ | ^ formail.c:664:55: warning: sizeof on pointer operation will return size of 'char *' instead of 'char[5]' [-Wsizeof-array-decay] 664 | if(strncasecmp(skpspace(chp=subj->rexp),Re,STRLEN(Re))) /* Re: */ | ^~ ./formail.h:8:16: note: expanded from macro 'Re' 8 | #define Re (re+1) | ~~^ ./includes.h:554:27: note: expanded from macro 'STRLEN' 554 | #define STRLEN(x) (sizeof(x)-1) | ^ formail.c:666:14: warning: passing arguments to 'loadsaved' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 666 | loadsaved(subj);addbuf(); | ^ formail.c:673:17: warning: passing arguments to 'loadsaved' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 673 | loadsaved(refr); | ^ formail.c:676:17: warning: passing arguments to 'loadsaved' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 676 | loadsaved(msid); /* here's our missing newline */ | ^ formail.c:680:51: warning: passing arguments to 'loadsaved' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 680 | loadbuf(inreplyto,STRLEN(inreplyto)),loadsaved(msid),addbuf(); | ^ formail.c:684:27: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 684 | (!rdheader||!eqFrom_(rdheader->fld_text))&& /* is it missing? */ | ^ formail.c:685:19: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 685 | ((fldp=findf(fFrom_,&aheader))&&STRLEN(From_)+1>=fldp->Tot_len|| | ^ formail.c:687:14: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 687 | !findf(fFrom_,&iheader)&& /* and From_ is not being */ | ^ formail.c:688:14: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 688 | !findf(fFrom_,&Iheader)&& /* supressed */ | ^ formail.c:689:14: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 689 | !findf(fFrom_,&Rheader))) | ^ formail.c:697:10: warning: passing arguments to 'loadchar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 697 | loadchar(' '); /* insert one extra blank */ | ^ formail.c:698:25: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 698 | if(!hdate->rexl||!findf(fdate,&aheader)) /* Date: */ | ^ formail.c:699:13: warning: passing arguments to 'loadchar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 699 | loadchar(' '),chp=ctime(&t),loadbuf(chp,strlen(chp)); /* no Date: */ | ^ formail.c:701:14: warning: passing arguments to 'loadsaved' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 701 | loadsaved(hdate); /* yes, found Date:, then copy from it */ | ^ formail.c:705:11: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 705 | if(!findf(fldp,&rdheader)) /* only add what didn't exist */ | ^ formail.c:718:27: warning: passing arguments to 'ultoan' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 718 | *++p='<';*(p=ultoan(h3,p+1))='.';*(p=ultoan(h4,p+1))='.'; | ^ formail.c:718:51: warning: passing arguments to 'ultoan' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 718 | *++p='<';*(p=ultoan(h3,p+1))='.';*(p=ultoan(h4,p+1))='.'; | ^ formail.c:719:18: warning: passing arguments to 'ultoan' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 719 | *(p=ultoan(h2,p+1))='.';*(p=ultoan(h1,p+1))='@';strcpy(p+1,name); | ^ formail.c:719:42: warning: passing arguments to 'ultoan' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 719 | *(p=ultoan(h2,p+1))='.';*(p=ultoan(h1,p+1))='@';strcpy(p+1,name); | ^ formail.c:721:8: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 721 | free(chp);h4++; /* put it in */ | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ formail.c:723:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 723 | else | ^ formail.c:726:19: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 726 | { if(eqFrom_(rdheader->fld_text)) | ^ formail.c:728:15: warning: passing arguments to 'findf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 728 | if(fldp=findf(fsubject,&rdheader)) | ^ formail.c:728:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 728 | if(fldp=findf(fsubject,&rdheader)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ formail.c:728:9: note: place parentheses around the assignment to silence this warning 728 | if(fldp=findf(fsubject,&rdheader)) | ^ | ( ) formail.c:728:9: note: use '==' to turn this assignment into an equality comparison 728 | if(fldp=findf(fsubject,&rdheader)) | ^ | == formail.c:729:16: warning: passing arguments to 'concatenate' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 729 | { concatenate(fldp);(chp=fldp->fld_text)[i=fldp->Tot_len-1]='\0'; | ^ formail.c:730:10: warning: passing arguments to 'detab' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 730 | detab(chp);putcs(' '); | ^ formail.c:734:53: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 734 | tmemmove(buf,parkedbuf,buffilled=lenparkedbuf);free(parkedbuf); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ formail.c:736:13: warning: passing arguments to 'flushfield' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 736 | flushfield(&rdheader);flushfield(&nheader);dispfield(Aheader); | ^ formail.c:736:35: warning: passing arguments to 'flushfield' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 736 | flushfield(&rdheader);flushfield(&nheader);dispfield(Aheader); | ^ formail.c:736:55: warning: passing arguments to 'dispfield' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 736 | flushfield(&rdheader);flushfield(&nheader);dispfield(Aheader); | ^ formail.c:737:12: warning: passing arguments to 'dispfield' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 737 | dispfield(iheader);dispfield(Iheader); | ^ formail.c:737:31: warning: passing arguments to 'dispfield' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 737 | dispfield(iheader);dispfield(Iheader); | ^ formail.c:739:6: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 739 | free(namep); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ formail.c:741:12: warning: passing arguments to 'lputcs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 741 | lputcs('\n'); /* make sure it is followed by an empty line */ | ^ formail.c:763:35: warning: passing arguments to 'lputcs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 763 | lnl=lwr==tbl&&lwr=='\n',lputcs(lwr=tbl),tbl=getchar(); | ^ formail.c:765:11: warning: passing arguments to 'lputcs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 765 | lputcs('\n'),buflast=getchar(); /* wrap up loose end */ | ^ formail.c:769:6: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 769 | nlog(cntlength);elog(" field exceeds actual length by "); | ^ formail.c:769:22: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 769 | nlog(cntlength);elog(" field exceeds actual length by "); | ^ formail.c:770:8: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 770 | ultstr(0,(unsigned long)ctlength,num);elog(num);elog(" bytes\n"); | ^ formail.c:770:44: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 770 | ultstr(0,(unsigned long)ctlength,num);elog(num);elog(" bytes\n"); | ^ formail.c:770:54: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 770 | ultstr(0,(unsigned long)ctlength,num);elog(num);elog(" bytes\n"); | ^ formail.c:778:15: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 778 | { if(eqFrom_(chp=rdheader->fld_text)) /* check if it's From_ */ | ^ formail.c:782:27: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 782 | (k=strcspn(chp=skpspace(chp+STRLEN(From_))," \t\n"))&& | ^ formail.c:783:13: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 783 | *skpspace(chp+k)!='\n') | ^ formail.c:792:13: warning: passing arguments to 'lputcs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 792 | lputcs('\n'); /* but now it does :-) */ | ^ formail.c:797:14: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 797 | nlog(couldntw),elog(", continuing...\n"); | ^ formail.c:797:29: warning: passing arguments to 'elog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 797 | nlog(couldntw),elog(", continuing...\n"); | ^ formail.c:807:13: warning: passing arguments to 'startprog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 807 | startprog((const char*Const*)argv); | ^ formail.c:812:17: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 812 | else if(eqFrom_(buf)) /* special case, From_ line */ | ^ formail.c:844:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 844 | if(fldp=rdheader) /* we already read some "valid" fields */ | ~~~~^~~~~~~~~ formail.c:844:9: note: place parentheses around the assignment to silence this warning 844 | if(fldp=rdheader) /* we already read some "valid" fields */ | ^ | ( ) formail.c:844:9: note: use '==' to turn this assignment into an equality comparison 844 | if(fldp=rdheader) /* we already read some "valid" fields */ | ^ | == formail.c:851:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 851 | if(p=memchr(chp,'\n',fldp->Tot_len)) | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ formail.c:851:8: note: place parentheses around the assignment to silence this warning 851 | if(p=memchr(chp,'\n',fldp->Tot_len)) | ^ | ( ) formail.c:851:8: note: use '==' to turn this assignment into an equality comparison 851 | if(p=memchr(chp,'\n',fldp->Tot_len)) | ^ | == formail.c:858:8: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 858 | free(fldp); /* delete it */ | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ formail.c:860:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 860 | while(fldp=fp2); /* escape all fields we found */ | ~~~~^~~~ formail.c:860:15: note: place parentheses around the assignment to silence this warning 860 | while(fldp=fp2); /* escape all fields we found */ | ^ | ( ) formail.c:860:15: note: use '==' to turn this assignment into an equality comparison 860 | while(fldp=fp2); /* escape all fields we found */ | ^ | == formail.c:869:52: warning: passing arguments to 'flushfield' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 869 | ox=xheader;oX=Xheader;xheader=Xheader=0;flushfield(&rdheader); | ^ formail.c:365:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 365 | int main(lastm,argv)int lastm;const char*const argv[]; | ^ formail.c:891:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 891 | int eqFrom_(a)const char*const a; | ^ In file included from formail.c:18: ./formail.h:42:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 42 | eqFrom_ P((const char*const a)), | ^ formail.c:895:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 895 | int breakfield(line,len)const char*const line;size_t len; /* look where the */ | ^ 139 warnings generated. cc -c -O2 -pipe fields.c In file included from fields.c:11: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from fields.c:11: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ fields.c:20:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | struct field*findf(p,ah)const struct field*const p;register struct field**ah; | ^ In file included from fields.c:16: ./fields.h:4:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | *findf P((const struct field*const p,struct field**ah)), | ^ fields.c:34:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 34 | for(pp=&rdheader;p= *pp;pp= &(*pp)->fld_next) | ~^~~~~ fields.c:34:21: note: place parentheses around the assignment to silence this warning 34 | for(pp=&rdheader;p= *pp;pp= &(*pp)->fld_next) | ^ | ( ) fields.c:34:21: note: use '==' to turn this assignment into an equality comparison 34 | for(pp=&rdheader;p= *pp;pp= &(*pp)->fld_next) | ^ | == fields.c:45:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | void clear_uhead(hdr)register struct field*hdr; | ^ In file included from fields.c:16: ./fields.h:10:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | clear_uhead P((struct field*hdr)), | ^ fields.c:50:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | struct field**addfield(pointer,text,totlen)struct field**pointer; | ^ fields.c:62:39: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | *pointer=(fldp= *pointer)->fld_next;free(fldp); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ fields.c:60:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | struct field*delfield(pointer)struct field**pointer; | ^ In file included from fields.c:16: ./fields.h:7:3: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | *delfield P((struct field**pointer)); | ^ fields.c:69:14: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | if(!eqFrom_(p=fldp->fld_text)) /* don't concatenate From_ lines */ | ^ fields.c:66:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | void concatenate(fldp)struct field*const fldp; | ^ In file included from fields.c:16: ./fields.h:11:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 11 | concatenate P((struct field*const fldp)), | ^ fields.c:81:17: warning: passing arguments to 'skpspace' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | { chp=skpspace(chp); | ^ fields.c:75:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | static void extractfield(p)register const struct field*p; | ^ fields.c:102:36: warning: passing arguments to 'tfree' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | q=p->fld_next,extractfield(p),free(p); | ^ ./shell.h:8:23: note: expanded from macro 'free' 8 | #define free(p) tfree(p) | ^ fields.c:99:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | void flushfield(pointer)register struct field**pointer; /* delete and print */ | ^ In file included from fields.c:16: ./fields.h:12:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 12 | flushfield P((struct field**pointer)), | ^ fields.c:105:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | void dispfield(p)register const struct field*p; | ^ In file included from fields.c:16: ./fields.h:13:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 13 | dispfield P((const struct field*p)), | ^ fields.c:116:34: warning: passing arguments to 'eqFrom_' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | if(idlen==STRLEN(FROM)&&eqFrom_(buf)) /* it's a From_ line */ | ^ 43 warnings generated. cc -c -O2 -pipe formisc.c In file included from formisc.c:11: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from formisc.c:11: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ formisc.c:20:19: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | static const char*skipcomment(start)const char*start; | ^ formisc.c:31:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | char*skipwords(start)char*start; /* skips an RFC 822 address */ | ^ In file included from formisc.c:18: ./formisc.h:18:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 18 | skipwords P((char*start)); | ^ formisc.c:97:22: warning: passing arguments to 'loadchar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | { default:loadchar(' '); /* make sure it has leading whitespace */ | ^ formisc.c:95:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | void loadsaved(sp)const struct saved*const sp; /* load some saved text */ | ^ In file included from formisc.c:18: ./formisc.h:4:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | loadsaved P((const struct saved*const sp)), | ^ formisc.c:103:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | void loadbuf(text,len)const char*const text;const size_t len; | ^ formisc.c:109:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | void loadchar(c)const int c; /* append one character to buf */ | ^ In file included from formisc.c:18: ./formisc.h:6:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | loadchar P((const int c)), | ^ formisc.c:130:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | void elog(a)const char*const a; /* error output */ | ^ In file included from formisc.c:18: ./formisc.h:7:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | elog P((const char*const a)), | ^ formisc.c:134:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | void tputssn(a,l)const char*a;size_t l; | ^ formisc.c:139:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | void ltputssn(a,l)const char*a;size_t l; | ^ formisc.c:146:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | void lputcs(i)const int i; | ^ In file included from formisc.c:18: ./formisc.h:10:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | lputcs P((const int i)), | ^ formisc.c:168:8: warning: passing arguments to 'ultstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | ultstr(lenfileno-(val<0),val<0?-val:val,chp); | ^ formisc.c:192:8: warning: passing arguments to 'shexec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | shexec(argv); | ^ formisc.c:199:6: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 199 | nlog("Can't fork\n"),exit(EX_OSERR); | ^ formisc.c:153:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | void startprog(argv)const char*Const*const argv; | ^ In file included from formisc.c:18: ./formisc.h:11:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 11 | startprog P((const char*Const*const argv)), | ^ formisc.c:207:7: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 207 | { nlog("File table full\n");exit(EX_OSERR); | ^ formisc.c:210:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | void nlog(a)const char*const a; | ^ In file included from formisc.c:18: ./formisc.h:13:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 13 | nlog P((const char*const a)), | ^ formisc.c:214:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | void logqnl(a)const char*const a; | ^ In file included from formisc.c:18: ./formisc.h:14:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 14 | logqnl P((const char*const a)), | ^ 48 warnings generated. cc -c -O2 -pipe ecommon.c In file included from ecommon.c:11: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from ecommon.c:11: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ ecommon.c:19:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | void*tmalloc(len)const size_t len; | ^ ecommon.c:21:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 21 | if(p=malloc(len)) | ~^~~~~~~~~~~~ ecommon.c:21:7: note: place parentheses around the assignment to silence this warning 21 | if(p=malloc(len)) | ^ | ( ) ecommon.c:21:7: note: use '==' to turn this assignment into an equality comparison 21 | if(p=malloc(len)) | ^ | == ecommon.c:23:7: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | nlog(outofmem);exit(EX_OSERR); | ^ ecommon.c:26:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | void*trealloc(old,len)void*old;const size_t len; | ^ ecommon.c:27:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 27 | { if(old=realloc(old,len)) | ~~~^~~~~~~~~~~~~~~~~ ecommon.c:27:9: note: place parentheses around the assignment to silence this warning 27 | { if(old=realloc(old,len)) | ^ | ( ) ecommon.c:27:9: note: use '==' to turn this assignment into an equality comparison 27 | { if(old=realloc(old,len)) | ^ | == ecommon.c:29:7: warning: passing arguments to 'nlog' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | nlog(outofmem);exit(EX_OSERR); | ^ ecommon.c:32:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | void tfree(a)void*a; | ^ In file included from ecommon.c:12: ./ecommon.h:6:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | tfree P((void*a)); | ^ 31 warnings generated. cc -O2 -pipe formail.o common.o fields.o formisc.o sublib.o ecommon.o acommon.o -o formail -s -lm -lc ld: warning: acommon.c(acommon.o:(hostname)): warning: strcpy() is almost always misused, please use strlcpy() ln ../src/formail ../new/formail cp ../examples/mailstat mailstat ln ../src/mailstat ../new/mailstat cd man; /usr/bin/make ../new/procmail.1 ../new/formail.1 ../new/lockfile.1 ../new/mailstat.1 ../new/procmailrc.5 ../new/procmailsc.5 ../new/procmailex.5 In file included from manconf.c:6: In file included from ./procmail.h:3: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from manconf.c:6: In file included from ./procmail.h:3: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ manconf.c:28:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | static char*skltmark(nl,current)int nl;char**current; | ^ manconf.c:38:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | static void putcesc(i)int i; | ^ manconf.c:57:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | static void putsesc(a)const char*a; | ^ manconf.c:71:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | static void pname(name,supps)const char*const name;int supps; | ^ manconf.c:84:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | static void pnr(name,value)const char*const name;const long value; | ^ manconf.c:92:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | static void plist(name,preamble,list,postamble,ifno,andor) | ^ manconf.c:111:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | static void ps(name,value)const char*const name,*const value; | ^ manconf.c:115:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | static void pc(name,value)const char*const name;const int value; | ^ manconf.c:368:23: warning: while loop has empty body [-Wempty-body] 368 | while(*++p=='\t');*(q=strchr(p,'\n'))='\0'; | ^ manconf.c:368:23: note: put the semicolon on a separate line to silence this warning manconf.c:119:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | int main(argc,argv)int argc;const char*const argv[]; | ^ 33 warnings generated. ld: warning: manconf.c(/tmp/manconf-780329.o:(pname)): warning: sprintf() is often misused, please use snprintf() /bin/sh ./mansed /bin/sh procmail.man procmail.1 "/bin/rm -f" /dev/null ln ../man/procmail.1 ../new/procmail.1 /bin/sh ./mansed /bin/sh formail.man formail.1 "/bin/rm -f" /dev/null ln ../man/formail.1 ../new/formail.1 /bin/sh ./mansed /bin/sh lockfile.man lockfile.1 "/bin/rm -f" /dev/null ln ../man/lockfile.1 ../new/lockfile.1 /bin/sh ./mansed /bin/sh mailstat.man mailstat.1 "/bin/rm -f" /dev/null ln ../man/mailstat.1 ../new/mailstat.1 /bin/sh ./mansed /bin/sh procmailrc.man procmailrc.5 "/bin/rm -f" /dev/null ln ../man/procmailrc.5 ../new/procmailrc.5 /bin/sh ./mansed /bin/sh procmailsc.man procmailsc.5 "/bin/rm -f" /dev/null ln ../man/procmailsc.5 ../new/procmailsc.5 /bin/sh ./mansed /bin/sh procmailex.man procmailex.5 "/bin/rm -f" /dev/null ln ../man/procmailex.5 ../new/procmailex.5 In file included from recommend.c:6: In file included from ./includes.h:10: ./../config.h:3:43: warning: '/*' within block comment [-Wcomment] 3 | /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ | ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] 4 | /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) | ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] 36 | /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] 37 | /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ | ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] 49 | /*#define GROUP_PER_USER /* uncomment this if each | ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] 55 | /*#define LMTP /* uncomment this if you | ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] 80 | /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ | ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] 81 | /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ | ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] 82 | /*#define NO_flock_LOCK /* use of those kernel-locking methods */ | ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] 88 | /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal | ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] 94 | /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using | ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] 101 | /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if | ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] 134 | /*#define console "/dev/console" /* uncomment if you want procmail to | ^ In file included from recommend.c:6: ./includes.h:29:5: warning: '/*' within block comment [-Wcomment] 29 | /* fork() getuid() geteuid() getgid() getegid() | ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] 38 | /* fopen() fread() fwrite() fgetc() getc() | ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] 49 | /* strtol() strtod() exit() EXIT_SUCCESS */ | ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] 53 | /* O_APPEND O_CREAT O_EXCL */ | ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] 58 | /* struct dirent */ | ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] 62 | /* WEXITSTATUS() WTERMSIG() WNOHANG */ | ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] 70 | /* chmod() mkdir() */ | ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] 72 | /* SIGINT SIGQUIT SIGALRM SIGTERM */ | ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] 75 | /* strspn() strcspn() strchr() strcmp() | ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] 84 | /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE | ^ recommend.c:32:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 32 | else | ^ recommend.c:41:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 41 | if(grp=getgrgid(gid)) | ~~~^~~~~~~~~~~~~~ recommend.c:41:12: note: place parentheses around the assignment to silence this warning 41 | if(grp=getgrgid(gid)) | ^ | ( ) recommend.c:41:12: note: use '==' to turn this assignment into an equality comparison 41 | if(grp=getgrgid(gid)) | ^ | == recommend.c:43:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 43 | else | ^ recommend.c:15:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | int main(argc,argv)const int argc;const char*const argv[]; | ^ 27 warnings generated. ================================================================ =============== If you are a system administrator you should consider integrating procmail into the mail-delivery system -- for advanced functionality, speed AND SECURITY --. For more information about this topic you should look in the examples/advanced file. Also, HIGHLY RECOMMENDED (type 'make install-suid' to execute it): chown root /usr/local/bin/procmail chgrp wheel /usr/local/bin/procmail /usr/local/bin/lockfile chmod 6755 /usr/local/bin/procmail chmod 2755 /usr/local/bin/lockfile chmod g+w /var/mail/. ================================================================ =============== If you would like to inspect the results before running make install: All installable files can be found in the new/ subdirectory. >>> Running package in mail/procmail at 1764444494.37 ===> mail/procmail ===> Faking installation for procmail-3.24 /exopi-obj/pobj/procmail-3.24/bin/install -d -m 755 /exopi-obj/pobj/procmail-3.24/fake-amd64/usr/local/share/examples/procmail cd /exopi-obj/pobj/procmail-3.24/procmail-3.24/new && /exopi-obj/pobj/procmail-3.24/bin/install -c -s -m 755 formail procmail /exopi-obj/pobj/procmail-3.24/fake-amd64/usr/local/bin && /exopi-obj/pobj/procmail-3.24/bin/install -c -m 755 mailstat /exopi-obj/pobj/procmail-3.24/fake-amd64/usr/local/bin && /exopi-obj/pobj/procmail-3.24/bin/install -c -m 644 formail.1 procmail.1 /exopi-obj/pobj/procmail-3.24/fake-amd64/usr/local/man/man1 && /exopi-obj/pobj/procmail-3.24/bin/install -c -m 644 procmailex.5 procmailrc.5 procmailsc.5 /exopi-obj/pobj/procmail-3.24/fake-amd64/usr/local/man/man5 /exopi-obj/pobj/procmail-3.24/bin/install -c -m 644 /exopi-obj/pobj/procmail-3.24/procmail-3.24/examples/* /exopi-obj/pobj/procmail-3.24/fake-amd64/usr/local/share/examples/procmail ===> Building package for procmail-3.24 Create /exopi-cvs/ports/packages/amd64/all/procmail-3.24.tgz Creating package procmail-3.24 reading plist| checking dependencies| checking dependencies|sysutils/lockfile checksumming| checksumming| | 0% checksumming|** | 3% checksumming|**** | 6% checksumming|****** | 10% checksumming|******** | 13% checksumming|********** | 16% checksumming|************ | 19% checksumming|************** | 23% checksumming|**************** | 26% checksumming|****************** | 29% checksumming|******************** | 32% checksumming|********************** | 35% checksumming|************************ | 39% checksumming|************************** | 42% checksumming|**************************** | 45% checksumming|****************************** | 48% checksumming|******************************* | 52% checksumming|********************************* | 55% checksumming|*********************************** | 58% checksumming|************************************* | 61% checksumming|*************************************** | 65% checksumming|***************************************** | 68% checksumming|******************************************* | 71% checksumming|********************************************* | 74% checksumming|*********************************************** | 77% checksumming|************************************************* | 81% checksumming|*************************************************** | 84% checksumming|***************************************************** | 87% checksumming|******************************************************* | 90% checksumming|********************************************************* | 94% checksumming|*********************************************************** | 97% checksumming|*************************************************************|100% archiving| archiving| | 0% archiving|*********************** | 37% archiving|****************************** | 48% archiving|***************************************** | 63% archiving|****************************************** | 65% archiving|******************************************* | 68% archiving|*********************************************** | 73% archiving|***************************************************** | 83% archiving|********************************************************* | 88% archiving|********************************************************** | 91% archiving|*********************************************************** | 91% archiving|*********************************************************** | 92% archiving|************************************************************ | 93% archiving|*************************************************************** | 98% archiving|*************************************************************** | 99% archiving|****************************************************************|100% Link to /exopi-cvs/ports/packages/amd64/ftp/procmail-3.24.tgz >>> Running clean in mail/procmail at 1764444499.16 ===> mail/procmail ===> Cleaning for procmail-3.24 >>> Ended at 1764444499.86 max_stuck=0.00/build=15.44/package=4.71/clean=0.83