>>> Building on exopi-4 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 1735133479.59 ===> mail/procmail ===> Building from scratch procmail-3.24 ===> Verifying specs: c m ===> found c.100.3 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] if(tpass=auth_finduid(uid,0)) /* save by copying */ ~~~~~^~~~~~~~~~~~~~~~~~~~ procmail.c:77:11: note: place parentheses around the assignment to silence this warning if(tpass=auth_finduid(uid,0)) /* save by copying */ ^ ( ) procmail.c:77:11: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] elog(PM_QREFERENCE); ^ procmail.c:134:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if(chp2=(char*)argv[argc+1]) ~~~~^~~~~~~~~~~~~~~~~~~~ procmail.c:134:19: note: place parentheses around the assignment to silence this warning else if(chp2=(char*)argv[argc+1]) ^ ( ) procmail.c:134:19: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] nlog("Missing name\n"); ^ procmail.c:143:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if(chp2=(char*)argv[argc+1]) ~~~~^~~~~~~~~~~~~~~~~~~~ procmail.c:143:19: note: place parentheses around the assignment to silence this warning else if(chp2=(char*)argv[argc+1]) ^ ( ) procmail.c:143:19: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] setarg: app_valp(newargv,(const char*)chp2); ^ ./misc.h:11:26: note: expanded from macro 'app_valp' #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' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] lockblock(&themail); ^ procmail.c:322:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(pidchild=sfork()) ~~~~~~~~^~~~~~~~ procmail.c:322:15: note: place parentheses around the assignment to silence this warning if(pidchild=sfork()) ^ ( ) procmail.c:322:15: note: use '==' to turn this assignment into an equality comparison if(pidchild=sfork()) ^ == procmail.c:328:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ procmail.c:334:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(chp=(char*)argv[argc]); ~~~^~~~~~~~~~~~~~~~~~ procmail.c:334:14: note: place parentheses around the assignment to silence this warning while(chp=(char*)argv[argc]); ^ ( ) procmail.c:334:14: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] !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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] eputenv(defpath,buf); ^ procmail.c:483:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(chp=(char*)argv[argc]) /* interpret command line specs first */ ~~~^~~~~~~~~~~~~~~~~~ procmail.c:483:12: note: place parentheses around the assignment to silence this warning while(chp=(char*)argv[argc]) /* interpret command line specs first */ ^ ( ) procmail.c:483:12: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] free(ifstack.vals); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] free(tolock); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { metaparse(buf2); ^ procmail.c:789:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(chp=buf;i= *chp++;) ~^~~~~~~~ procmail.c:789:20: note: place parentheses around the assignment to silence this warning for(chp=buf;i= *chp++;) ^ ( ) procmail.c:789:20: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] strcpy(buf2,buf);strcpy(buf,chp);free(chp); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] free(capture); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] nlog("Incomplete recipe\n"); ^ procmail.c:849:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(ofiltflag=flags[FILTER]) ~~~~~~~~~^~~~~~~~~~~~~~ procmail.c:849:17: note: place parentheses around the assignment to silence this warning if(ofiltflag=flags[FILTER]) ^ ( ) procmail.c:849:17: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 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 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (*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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { app_vali(ifstack,prevcond); /* push prevcond */ ^ ./misc.h:8:26: note: expanded from macro 'app_vali' #define app_vali(sp,val) app_val_type(sp,int,union offori,val) ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' #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 C2x [-Wdeprecated-non-prototype] app_vali(ifstack,lastcond); /* push lastcond */ ^ ./misc.h:8:26: note: expanded from macro 'app_vali' #define app_vali(sp,val) app_val_type(sp,int,union offori,val) ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' #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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] free(loclock),loclock=0; ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] free(globlock),globlock=0; /* clear up the */ ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] free(ifstack.vals); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { app_vali(inced,rcbufp?rcbufp-rcbuf:0); /* save old */ ^ ./misc.h:8:26: note: expanded from macro 'app_vali' #define app_vali(sp,val) app_val_type(sp,int,union offori,val) ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' #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 C2x [-Wdeprecated-non-prototype] app_valo(inced,blasttell);app_vali(inced,ifdepth);/* position, brace */ ^ ./misc.h:7:26: note: expanded from macro 'app_valo' #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' #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 C2x [-Wdeprecated-non-prototype] app_valo(inced,blasttell);app_vali(inced,ifdepth);/* position, brace */ ^ ./misc.h:8:26: note: expanded from macro 'app_vali' #define app_vali(sp,val) app_val_type(sp,int,union offori,val) ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' #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 C2x [-Wdeprecated-non-prototype] app_vali(inced,rc); /* depth & fd */ ^ ./misc.h:8:26: note: expanded from macro 'app_vali' #define app_vali(sp,val) app_val_type(sp,int,union offori,val) ^ ./misc.h:6:46: note: expanded from macro 'app_val_type' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] rclose(orc); /* success! drop the old and */ ^ cstdio.c:75:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(dp=incnamed->enext) /* fixup the name list */ ~~^~~~~~~~~~~~~~~~ cstdio.c:75:11: note: place parentheses around the assignment to silence this warning if(dp=incnamed->enext) /* fixup the name list */ ^ ( ) cstdio.c:75:11: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] incnamed->enext=dp->enext,free(dp); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] rclose(rc),rc= -1,last=incnamed,incnamed=last->enext,free(last); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] *(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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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] for(*(p=(const char**)newargv)=binsh;*++p= *argv++;); ~~~~^~~~~~~~~ common.c:29:44: note: place parentheses around the assignment to silence this warning for(*(p=(const char**)newargv)=binsh;*++p= *argv++;); ^ ( ) common.c:29:44: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] { while(p=strpbrk(p,"\t\n\v\f\r")) ~^~~~~~~~~~~~~~~~~~~~~~~~ common.c:35:10: note: place parentheses around the assignment to silence this warning { while(p=strpbrk(p,"\t\n\v\f\r")) ^ ( ) common.c:35:10: note: use '==' to turn this assignment into an equality comparison { 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] free(p);sgetcp=save; /* chopped up */ ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] if(numeric(*buf2)&&buf2[1]) ^ ./includes.h:556:29: note: expanded from macro 'numeric' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] if(numeric(i)) /* $n positional argument */ ^ ./includes.h:556:29: note: expanded from macro 'numeric' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] if(q=simplesplit(p,startb,fencepost,&got)) /* simply split */ ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ goodies.c:309:12: note: place parentheses around the assignment to silence this warning if(q=simplesplit(p,startb,fencepost,&got)) /* simply split */ ^ ( ) goodies.c:309:12: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] concatenate P((char*p)), ^ goodies.c:385:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] { if(sh=!!strpbrk(p,shellmetas)) ~~^~~~~~~~~~~~~~~~~~~~~~~~ goodies.c:385:8: note: place parentheses around the assignment to silence this warning { if(sh=!!strpbrk(p,shellmetas)) ^ ( ) goodies.c:385:8: note: use '==' to turn this assignment into an equality comparison { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] free((char*)p); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { *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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] ltstr P((const int minwidth,const long val,char*dest)); ^ cc -c -O2 -pipe locking.c 58 warnings generated. 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] { free(name);return 1; /* they're equal, save yourself some effort */ ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { free(name);return 1; ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] free(name);return 0; ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] term: { free(name); /* drop the preallocated buffer */ ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] free(lckfile); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] free(*lockp); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] free(p); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { *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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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] if(p=lmax?frealloc(old,newmax):fmalloc(newmax))/* fragile allocation */ ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ misc.c:51:6: note: place parentheses around the assignment to silence this warning if(p=lmax?frealloc(old,newmax):fmalloc(newmax))/* fragile allocation */ ^ ( ) misc.c:51:6: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] skipped P((const char*const x)), ^ misc.c:217:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(p= *gargv) ~^~~~~~~~ misc.c:217:10: note: place parentheses around the assignment to silence this warning while(p= *gargv) ^ ( ) misc.c:217:10: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] free(a); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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] if(i=(lcking&~lck__NOMSG)>>1) ~^~~~~~~~~~~~~~~~~~~~~~~~ misc.c:264:6: note: place parentheses around the assignment to silence this warning if(i=(lcking&~lck__NOMSG)>>1) ^ ( ) misc.c:264:6: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] free(expr); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *app_val_ P((struct dyna_array*const sp,int size)), ^ misc.c:397:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] free(re); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] elog(cquote); /* allocate argv array */ ^ pipes.c:133:27: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(newargv[argc]= *walkargs++) ~~~~~~~~~~~~~^~~~~~~~~~~~~ pipes.c:133:27: note: place parentheses around the assignment to silence this warning while(newargv[argc]= *walkargs++) ^ ( ) pipes.c:133:27: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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] while(p=strpbrk(filename,dirsep)) ~^~~~~~~~~~~~~~~~~~~~~~~~~ lastdirsep.c:18:10: note: place parentheses around the assignment to silence this warning while(p=strpbrk(filename,dirsep)) ^ ( ) lastdirsep.c:18:10: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE ^ authenticate.c:50:41: warning: '/*' within block comment [-Wcomment] /*#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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] if(p=strchr(user,'@')) /* does the username contain an @? */ ~^~~~~~~~~~~~~~~~~ authenticate.c:80:10: note: place parentheses around the assignment to silence this warning if(p=strchr(user,'@')) /* does the username contain an @? */ ^ ( ) authenticate.c:80:10: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] free(authi.mbox),authi.mbox=0; /* clear the reference */ ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] /*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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] /*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 C2x [-Wdeprecated-non-prototype] free(authi.mbox),authi.mbox=0; /* nix old mailbox reference */ ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] free(newpass->mbox),newpass->mbox=0; ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] if(p=(struct passwd*)pass->pw) ~^~~~~~~~~~~~~~~~~~~~~~~~~ authenticate.c:148:7: note: place parentheses around the assignment to silence this warning if(p=(struct passwd*)pass->pw) ^ ( ) authenticate.c:148:7: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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] if(p=(struct passwd*)pass->pw) ~^~~~~~~~~~~~~~~~~~~~~~~~~ authenticate.c:170:7: note: place parentheses around the assignment to silence this warning if(p=(struct passwd*)pass->pw) ^ ( ) authenticate.c:170:7: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] free(p->pw_name),free(p->pw_dir),free(p->pw_shell),free(p); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] free(p->pw_name),free(p->pw_dir),free(p->pw_shell),free(p); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] free(p->pw_name),free(p->pw_dir),free(p->pw_shell),free(p); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] free(p->pw_name),free(p->pw_dir),free(p->pw_shell),free(p); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] free(pass->mbox); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] free(pass); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] free(authi.mbox),authi.mbox=0; /* discard the mailbox reference */ ^ ./shell.h:8:23: note: expanded from macro 'free' #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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] free(mb->p); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 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 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { split=curr->ename;*last=curr->enext;free(curr); /* earlier? */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ variables.c:69:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] { 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 { 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 { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] free(newmyenv);*lastenv=Stdout=0; ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] if(p!=buf2)free(p); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *tgetenv P((const char*const a)); ^ variables.c:168:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(ep=emax;p= *ep;ep++) /* scan for this keeper */ ~^~~~~ variables.c:168:15: note: place parentheses around the assignment to silence this warning for(ep=emax;p= *ep;ep++) /* scan for this keeper */ ^ ( ) variables.c:168:15: note: use '==' to turn this assignment into an equality comparison 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] 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 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 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *gobenv P((char*chp,char*end)); ^ variables.c:305:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(chp=strchr(src,'=')) /* is it an assignment? */ ~~~^~~~~~~~~~~~~~~~ variables.c:305:9: note: place parentheses around the assignment to silence this warning if(chp=strchr(src,'=')) /* is it an assignment? */ ^ ( ) variables.c:305:9: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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] if(chp=eputenv(chp,src)) ~~~^~~~~~~~~~~~~~~~~ variables.c:319:8: note: place parentheses around the assignment to silence this warning if(chp=eputenv(chp,src)) ^ ( ) variables.c:319:8: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] free(buf2); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] free(p); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] nlog(insufprivs); ^ from.c:140:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ from.c:164:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] if(grp=getgrgid(gid)) /* check out the invoker's gid */ ~~~^~~~~~~~~~~~~~ from.c:182:12: note: place parentheses around the assignment to silence this warning if(grp=getgrgid(gid)) /* check out the invoker's gid */ ^ ( ) from.c:182:12: note: use '==' to turn this assignment into an equality comparison 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE ^ In file included from comsat.c:26: ./network.h:4:6: warning: '/*' within block comment [-Wcomment] /* SOCK_DGRAM */ ^ ./network.h:6:6: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] free(old); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] free(old); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] if(!chad&&!renvint(-1L,chp)) ^ comsat.c:113:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(csvalid=newvalid) ~~~~~~~^~~~~~~~~ comsat.c:113:13: note: place parentheses around the assignment to silence this warning if(csvalid=newvalid) ^ ( ) comsat.c:113:13: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] 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: exopen.c(exopen.o:(unique)): 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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: authenticate.c(authenticate.o:(auth_mailboxname)): 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] if(eqFrom_(chp)) /* continued From_ to */ ^ formail.c:133:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] for(;chp=strstr(chp,"\n>");*++chp=' '); /* continued regular field */ ~~~^~~~~~~~~~~~~~~~~~ formail.c:133:14: note: place parentheses around the assignment to silence this warning for(;chp=strstr(chp,"\n>");*++chp=' '); /* continued regular field */ ^ ( ) formail.c:133:14: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] if(newl==STRLEN(From_)&&eqFrom_(newname)) ^ formail.c:135:29: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] { 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 { 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 { 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] for(chp=p->fld_text;chp=strstr(chp,"\n ");*++chp='>'); ~~~^~~~~~~~~~~~~~~~~~ formail.c:138:29: note: place parentheses around the assignment to silence this warning for(chp=p->fld_text;chp=strstr(chp,"\n ");*++chp='>'); ^ ( ) formail.c:138:29: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] if(fp2=findf(fldp,&Rheader)) /* explicitly rename field */ ~~~^~~~~~~~~~~~~~~~~~~~~ formail.c:165:12: note: place parentheses around the assignment to silence this warning if(fp2=findf(fldp,&Rheader)) /* explicitly rename field */ ^ ( ) formail.c:165:12: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] else if(fp2=findf(fldp,&Uheader)) ^ formail.c:174:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] else if(fp2=findf(fldp,&Uheader)) ~~~^~~~~~~~~~~~~~~~~~~~~ formail.c:174:13: note: place parentheses around the assignment to silence this warning else if(fp2=findf(fldp,&Uheader)) ^ ( ) formail.c:174:13: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] static void procfields(sareply)const int sareply; ^ formail.c:232:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(pastad=strchr(chp,' ')) /* found an address? */ ~~~~~~^~~~~~~~~~~~~~~~ formail.c:232:11: note: place parentheses around the assignment to silence this warning if(pastad=strchr(chp,' ')) /* found an address? */ ^ ( ) formail.c:232:11: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] free(savetmp);savetmp=strchr(tmp,'\0'); /* prepend '<' */ ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] free(namep); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] free(tmp); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] while(chp=(char*)*++argv) ~~~^~~~~~~~~~~~~~~ formail.c:374:15: note: place parentheses around the assignment to silence this warning while(chp=(char*)*++argv) ^ ( ) formail.c:374:15: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] case FM_VERSION:elog(formailn);elog(VERSION); ^ formail.c:489:10: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] !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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { *afldp=fldp->fld_next;free(fldp);fldp= *afldp; ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ formail.c:623:8: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] *afldp=fldp->fld_next,free(fldp),fldp= *afldp; /* remove all */ ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] if(strncasecmp(skpspace(chp=subj->rexp),Re,STRLEN(Re))) /* Re: */ ^~ ./formail.h:8:16: note: expanded from macro 'Re' #define Re (re+1) ~~^ ./includes.h:554:27: note: expanded from macro 'STRLEN' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (!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 C2x [-Wdeprecated-non-prototype] ((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 C2x [-Wdeprecated-non-prototype] !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 C2x [-Wdeprecated-non-prototype] !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 C2x [-Wdeprecated-non-prototype] !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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] *++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 C2x [-Wdeprecated-non-prototype] *++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 C2x [-Wdeprecated-non-prototype] *(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 C2x [-Wdeprecated-non-prototype] *(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 C2x [-Wdeprecated-non-prototype] free(chp);h4++; /* put it in */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ formail.c:723:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] if(fldp=findf(fsubject,&rdheader)) ^ formail.c:728:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(fldp=findf(fsubject,&rdheader)) ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ formail.c:728:9: note: place parentheses around the assignment to silence this warning if(fldp=findf(fsubject,&rdheader)) ^ ( ) formail.c:728:9: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] tmemmove(buf,parkedbuf,buffilled=lenparkedbuf);free(parkedbuf); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] free(namep); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] if(fldp=rdheader) /* we already read some "valid" fields */ ~~~~^~~~~~~~~ formail.c:844:9: note: place parentheses around the assignment to silence this warning if(fldp=rdheader) /* we already read some "valid" fields */ ^ ( ) formail.c:844:9: note: use '==' to turn this assignment into an equality comparison 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] if(p=memchr(chp,'\n',fldp->Tot_len)) ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ formail.c:851:8: note: place parentheses around the assignment to silence this warning if(p=memchr(chp,'\n',fldp->Tot_len)) ^ ( ) formail.c:851:8: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] free(fldp); /* delete it */ ^ ./shell.h:8:23: note: expanded from macro 'free' #define free(p) tfree(p) ^ formail.c:860:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(fldp=fp2); /* escape all fields we found */ ~~~~^~~~ formail.c:860:15: note: place parentheses around the assignment to silence this warning while(fldp=fp2); /* escape all fields we found */ ^ ( ) formail.c:860:15: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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] for(pp=&rdheader;p= *pp;pp= &(*pp)->fld_next) ~^~~~~ fields.c:34:21: note: place parentheses around the assignment to silence this warning for(pp=&rdheader;p= *pp;pp= &(*pp)->fld_next) ^ ( ) fields.c:34:21: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] *pointer=(fldp= *pointer)->fld_next;free(fldp); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] q=p->fld_next,extractfield(p),free(p); ^ ./shell.h:8:23: note: expanded from macro 'free' #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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] { 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] void*tmalloc(len)const size_t len; ^ ecommon.c:21:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(p=malloc(len)) ~^~~~~~~~~~~~ ecommon.c:21:7: note: place parentheses around the assignment to silence this warning if(p=malloc(len)) ^ ( ) ecommon.c:21:7: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] { if(old=realloc(old,len)) ~~~^~~~~~~~~~~~~~~~~ ecommon.c:27:9: note: place parentheses around the assignment to silence this warning { if(old=realloc(old,len)) ^ ( ) ecommon.c:27:9: note: use '==' to turn this assignment into an equality comparison { 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] static void pc(name,value)const char*const name;const int value; ^ manconf.c:368:23: warning: while loop has empty body [-Wempty-body] 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 C2x [-Wdeprecated-non-prototype] int main(argc,argv)int argc;const char*const argv[]; ^ 33 warnings generated. ld: warning: manconf.c(/tmp/manconf-edef15.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] /*#define sMAILBOX_SEPARATOR "\1\1\1\1\n" /* sTART- and eNDing separ. */ ^ ./../config.h:4:43: warning: '/*' within block comment [-Wcomment] /*#define eMAILBOX_SEPARATOR "\1\1\1\1\n" /* uncomment (one or both) ^ ./../config.h:36:58: warning: '/*' within block comment [-Wcomment] /*#define DEFSPATH "PATH=/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:37:66: warning: '/*' within block comment [-Wcomment] /*#define DEFPATH "PATH=$HOME/bin:/usr/local/bin:/bin:/usr/bin" /* */ ^ ./../config.h:49:28: warning: '/*' within block comment [-Wcomment] /*#define GROUP_PER_USER /* uncomment this if each ^ ./../config.h:55:20: warning: '/*' within block comment [-Wcomment] /*#define LMTP /* uncomment this if you ^ ./../config.h:80:26: warning: '/*' within block comment [-Wcomment] /*#define NO_fcntl_LOCK /* uncomment any of these three if you */ ^ ./../config.h:81:26: warning: '/*' within block comment [-Wcomment] /*#define NO_lockf_LOCK /* definitely do not want procmail to make */ ^ ./../config.h:82:26: warning: '/*' within block comment [-Wcomment] /*#define NO_flock_LOCK /* use of those kernel-locking methods */ ^ ./../config.h:88:29: warning: '/*' within block comment [-Wcomment] /*#define RESTRICT_EXEC 100 /* uncomment to prevent users with uids equal ^ ./../config.h:94:29: warning: '/*' within block comment [-Wcomment] /*#define NO_NFS_ATIME_HACK /* uncomment if you're definitely not using ^ ./../config.h:101:44: warning: '/*' within block comment [-Wcomment] /*#define DEFsendmail "/usr/sbin/sendmail" /* uncomment and/or change if ^ ./../config.h:134:34: warning: '/*' within block comment [-Wcomment] /*#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] /* fork() getuid() geteuid() getgid() getegid() ^ ./includes.h:38:5: warning: '/*' within block comment [-Wcomment] /* fopen() fread() fwrite() fgetc() getc() ^ ./includes.h:49:5: warning: '/*' within block comment [-Wcomment] /* strtol() strtod() exit() EXIT_SUCCESS */ ^ ./includes.h:53:5: warning: '/*' within block comment [-Wcomment] /* O_APPEND O_CREAT O_EXCL */ ^ ./includes.h:58:5: warning: '/*' within block comment [-Wcomment] /* struct dirent */ ^ ./includes.h:62:5: warning: '/*' within block comment [-Wcomment] /* WEXITSTATUS() WTERMSIG() WNOHANG */ ^ ./includes.h:70:5: warning: '/*' within block comment [-Wcomment] /* chmod() mkdir() */ ^ ./includes.h:72:5: warning: '/*' within block comment [-Wcomment] /* SIGINT SIGQUIT SIGALRM SIGTERM */ ^ ./includes.h:75:5: warning: '/*' within block comment [-Wcomment] /* strspn() strcspn() strchr() strcmp() ^ ./includes.h:84:5: warning: '/*' within block comment [-Wcomment] /* LOG_ALERT LOG_CRIT LOG_ERR LOG_NOTICE ^ recommend.c:32:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ recommend.c:41:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if(grp=getgrgid(gid)) ~~~^~~~~~~~~~~~~~ recommend.c:41:12: note: place parentheses around the assignment to silence this warning if(grp=getgrgid(gid)) ^ ( ) recommend.c:41:12: note: use '==' to turn this assignment into an equality comparison if(grp=getgrgid(gid)) ^ == recommend.c:43:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ recommend.c:15:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 1735133510.06 ===> 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|*********************** | 36% archiving|****************************** | 47% archiving|**************************************** | 63% archiving|****************************************** | 65% archiving|******************************************* | 67% archiving|********************************************** | 73% archiving|***************************************************** | 82% archiving|********************************************************* | 88% archiving|********************************************************** | 91% archiving|*********************************************************** | 91% archiving|*********************************************************** | 92% archiving|*********************************************************** | 93% 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 1735133514.64 ===> mail/procmail ===> Cleaning for procmail-3.24 >>> Ended at 1735133515.06 max_stuck=0.68/build=30.43/package=4.54/clean=0.56