>>> Building on exopi-2 under comms/kermit DIST = [comms/kermit:cku302.tar.gz] FULLPKGNAME = kermit-9.0.302p0 distfiles size=3122219 >>> Running build in comms/kermit at 1713948485.69 ===> comms/kermit ===> Building from scratch kermit-9.0.302p0 ===> Verifying specs: c curses m util ===> found c.100.0 curses.15.0 m.10.1 util.18.0 ===> Checking files for kermit-9.0.302p0 `/exopi-cvs/ports/distfiles/cku302.tar.gz' is up to date. >> (SHA256) cku302.tar.gz: OK ===> Extracting for kermit-9.0.302p0 ===> Patching for kermit-9.0.302p0 ===> Applying OpenBSD patch patch-ckufio_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- ckufio.c.orig Thu Dec 5 23:31:16 2013 |+++ ckufio.c Thu Dec 5 23:33:03 2013 -------------------------- Patching file ckufio.c using Plan A... Hunk #1 succeeded at 206. done ===> Applying OpenBSD patch patch-ckuker_nr Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- ckuker.nr.orig Sat Aug 20 18:19:52 2011 |+++ ckuker.nr Fri Apr 6 00:32:34 2012 -------------------------- Patching file ckuker.nr using Plan A... Hunk #1 succeeded at 6. done ===> 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 kermit-9.0.302p0 ===> Configuring for kermit-9.0.302p0 ===> Building for kermit-9.0.302p0 cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckcmai.c ckcmai.c:1625:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getsysid(s) char * s; { /* Get system-type name */ ^ ckcmai.c:1635:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getsysix(s) char *s; { /* Get system-type index */ ^ ckcmai.c:1650:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] isabsolute(path) char * path; { ^ ckcmai.c:1722:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] is_a_tty(n) int n; { ^ ckcmai.c:1815:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] initproto(y, upbstr, uptstr, srvstr, sndbstr, sndtstr, rcvbstr, rcvtstr) ^ ckcmai.c:2514:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setprefix(z) int z; { /* Initial control-char prefixing */ ^ ckcmai.c:2857:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] main(argc,argv) int argc; char **argv; ^ 7 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckclib.c ckclib.c:311:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chartostr(x) int x; { /* Call with char x */ ^ ckclib.c:331:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckrchar(s) char * s; { ^ ckclib.c:399:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckstrpbrk(s1, s2) char * s1, * s2; { ^ ckclib.c:418:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cklower(s) char *s; { ^ ckclib.c:433:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckupper(s) char *s; { ^ ckclib.c:639:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckitoa(n) int n; { /* See comments with ckltoa(). */ ^ ckclib.c:647:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckuitoa(n) unsigned int n; { ^ ckclib.c:654:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckitox(n) int n; { /* Int to hex */ ^ ckclib.c:716:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckindex(s1,s2,t,r,icase) char *s1, *s2; int t, r, icase; { ^ ckclib.c:756:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckstrstr(s1, s2) char * s1, * s2; { ^ ckclib.c:799:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] brstrip(p) char *p; { ^ ckclib.c:937:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dquote(fn, len, flag) char *fn; int len; int flag; { ^ ckclib.c:977:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] untabify(s1,s2,max) char * s1, * s2; int max; { ^ ckclib.c:1011:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] makelist(s,list,len) char * s; char *list[]; int len; { ^ ckclib.c:1265:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckstrcmp(s1,s2,n,c) char *s1, *s2; register int n, c; { ^ ckclib.c:1292:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckstrpre(s1,s2) char *s1, *s2; { ^ ckclib.c:1367:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ispattern(s) char * s; { ^ ckclib.c:1394:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckmatch(pattern, string, icase, opts) char *pattern,*string; int icase, opts; { ^ ckclib.c:2008:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] isfloat(s,flag) char *s; int flag; { ^ ckclib.c:2090:5: warning: 'sprintf' will always overflow; destination buffer has size 200, but format string expands to at least 201 [-Wfortify-source] sprintf(buf,"%200.100f",fpnum); /* Make string version to work with */ ^ ckclib.c:2202:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sh_sort(s,p,n,k,r,c) char **s, **p; int n, k, r, c; { ^ ckclib.c:2302:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckradix(s,in,out) char * s; int in, out; { ^ ckclib.c:2419:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] b8tob64(s,n,out,len) char * s,* out; int n, len; { ^ ckclib.c:2476:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] b64tob8(s,n,out,len) char * s,* out; int n, len; { /* Decode */ ^ ckclib.c:2526:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chknum(s) char *s; { /* Check Numeric String */ ^ ckclib.c:2560:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rdigits(s) char *s; { ^ ckclib.c:2616:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lset(p,s,n,c) char *s; char *p; int n; int c; { ^ ckclib.c:2639:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rset(p,s,n,c) char *s; char *p; int n; int c; { ^ ckclib.c:2698:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hextoulong(s,n) char *s; int n; { ^ ckclib.c:2834:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setword(n,s,len) int n, len; char * s; { ^ ckclib.c:2881:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cksplit(fc,n1,s1,s2,s3,n2,n3,n4) int fc,n1,n2,n3,n4; char *s1, *s2, *s3; { ^ ckclib.c:3016:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (c = *ss++ && !flag) { ~~^~~~~~~~~~~~~~~~ ckclib.c:3016:15: note: place parentheses around the assignment to silence this warning while (c = *ss++ && !flag) { ^ ( ) ckclib.c:3016:15: note: use '==' to turn this assignment into an equality comparison while (c = *ss++ && !flag) { ^ == ckclib.c:3156:9: warning: expression result unused [-Wunused-value] *s2++; ^~~~~ 33 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckucmd.c ckucmd.c:391:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hasnopath(s) char * s; { ^ ckucmd.c:404:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckspread(s) char * s; { ^ ckucmd.c:425:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] test(x,m) int x, m; { /* Returns 1 if any bits from m are on in x, else 0 */ ^ ckucmd.c:447:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] kwdhelp(s,n,pat,pre,post,off,xhlp) ^ ckucmd.c:769:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] filhelp(n,pre,post,off,cmdirflg) int n, off; char *pre, *post; int cmdirflg; { ^ ckucmd.c:801:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmsetp(s) char *s; { ^ ckucmd.c:838:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prompt(f) xx_strp f; { ^ ckucmd.c:900:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pushcmd(s) char * s; { /* For use with IF command. */ ^ ckucmd.c:908:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pushqcmd(s) char * s; { /* For use with ELSE command. */ ^ ckucmd.c:967:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmini(d) int d; { ^ ckucmd.c:1236:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] untab(s) char *s; { ^ ckucmd.c:1263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmnum(xhlp,xdef,radix,n,f) char *xhlp, *xdef; int radix, *n; xx_strp f; { ^ ckucmd.c:1282:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmnumw(xhlp,xdef,radix,n,f) ^ ckucmd.c:1425:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmofi(xhlp,xdef,xp,f) char *xhlp, *xdef, **xp; xx_strp f; { ^ ckucmd.c:1660:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmifi(xhlp,xdef,xp,wild,f) char *xhlp, *xdef, **xp; int *wild; xx_strp f; { ^ ckucmd.c:1671:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmifip(xhlp,xdef,xp,wild,d,path,f) ^ ckucmd.c:1693:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmdir(xhlp,xdef,xp,f) char *xhlp, *xdef, **xp; xx_strp f; { ^ ckucmd.c:1701:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmdirp(xhlp,xdef,xp,path,f) char *xhlp, *xdef, **xp; char * path; xx_strp f; { ^ ckucmd.c:1721:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmifi2(xhlp,xdef,xp,wild,d,path,f,dirflg) ^ ckucmd.c:2870:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmfld(xhlp,xdef,xp,f) char *xhlp, *xdef, **xp; xx_strp f; { ^ ckucmd.c:2992:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmtxt(xhlp,xdef,xp,f) char *xhlp; char *xdef; char **xp; xx_strp f; { ^ ckucmd.c:3197:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmkey(table,n,xhlp,xdef,f) ^ ckucmd.c:3202:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmkeyx(table,n,xhlp,xdef,f) ^ ckucmd.c:3207:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmswi(table,n,xhlp,xdef,f) ^ ckucmd.c:3213:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmkey2(table,n,xhlp,xdef,tok,f,pmsg) ^ ckucmd.c:3678:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chktok(tlist) char *tlist; { ^ ckucmd.c:3785:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmdelta(yy, mo, dd, hh, mm, ss, sign, dyy, dmo, ddd, dhh, dmm, dss) ^ ckucmd.c:3912:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] delta2sec(s,result) char * s; long * result; { ^ ckucmd.c:4058:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmcvtdate(s,t) char * s; int t; { ^ ckucmd.c:5298:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmvdate(d) char * d; { /* Verify date-time */ ^ ckucmd.c:5315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmdiffdate(d1,d2) char * d1, * d2; { ^ ckucmd.c:5418:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shuffledate(p,opt) char * p; int opt; { ^ ckucmd.c:5536:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckcvtdate(p,t) char * p; int t; { ^ ckucmd.c:5553:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmdate(xhlp,xdef,xp,quiet,f) char *xhlp, *xdef, **xp; int quiet; xx_strp f; { ^ ckucmd.c:5601:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmrini(n) int n; { ^ ckucmd.c:5641:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmgetcmd(s) char * s; { ^ ckucmd.c:5655:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] addcmd(s) char * s; { ^ ckucmd.c:5764:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] savhistory(s,disp) char *s; int disp; { ^ ckucmd.c:5875:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmfdbi(p,fc,s1,s2,s3,n1,n2,f,k,nxt) /* Initialize an FDB */ ^ ckucmd.c:5898:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmfdb(fdbin) struct FDB * fdbin; { ^ ckucmd.c:6081:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmiofi(xhlp,xdef,xp,wild,f) char *xhlp, *xdef, **xp; int *wild; xx_strp f; { ^ ckucmd.c:6151:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gtword(brk) int brk; { ^ ckucmd.c:6968:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] addbuf(cp) char *cp; { ^ ckucmd.c:6995:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setatm(cp,fcode) char *cp; int fcode; { ^ ckucmd.c:7086:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmdgetc(timelimit) int timelimit; { /* Get a character from the tty. */ ^ ckucmd.c:7557:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xxesc(s) char **s; { /* Expand backslash escapes */ ^ ckucmd.c:7721:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lookup(table,cmd,n,x) char *cmd; struct keytab table[]; int n, *x; { ^ ckucmd.c:7845:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xlookup(table,cmd,n,x) struct keytab table[]; char *cmd; int n, *x; { ^ ckucmd.c:7899:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rlookup(table,n,x) struct keytab table[]; int n, x; { ^ ckucmd.c:7910:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmdsquo(x) int x; { ^ 50 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckuusr.c ckuusr.c:3499:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setlocus(x, isauto) int x, isauto; { ^ ckuusr.c:3548:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setautolocus(x) int x; { ^ ckuusr.c:3842:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doend(x) int x; { ^ ckuusr.c:3928:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doxsend(cx) int cx; { ^ ckuusr.c:5350:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doxconn(cx) int cx; { ^ ckuusr.c:5578:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doadd(cx,fc) int cx, fc; { ^ ckuusr.c:5657:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] addsend(cx) int cx; { ^ ckuusr.c:5847:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xdohttp(action, lfile, rf, dfile, agent, hdr, user, pass, mime, array, type) ^ ckuusr.c:5986:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] arrayitoa(x) int x; { /* Array index to array letter */ ^ ckuusr.c:5996:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] arrayatoi(c) int c; { /* Array letter to array index */ ^ ckuusr.c:6007:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dodcl(cx) int cx; { ^ ckuusr.c:6308:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clrarray(cx) int cx; { ^ ckuusr.c:6679:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doeval(cx) int cx; { ^ ckuusr.c:7791:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] learncmd(s) char *s; { /* Record commands in learned script */ ^ ckuusr.c:7892:11: warning: add explicit braces to avoid dangling else [-Wdangling-else] else n = 0; ^ ckuusr.c:7911:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] docmd(cx) int cx; { ^ ckuusr.c:8275:21: warning: passing arguments to 'dosexp' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] result = dosexp(s); /* Get result */ ^ ckuusr.c:13296:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuusr.c:13299:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuusr.c:13304:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuusr.c:13306:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuusr.c:13345:15: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] if (s) if (s == "") s = NULL; ^ ~~ ckuusr.c:13353:15: warning: result of comparison against a string literal is unspecified (use an explicit string comparison function instead) [-Wstring-compare] if (s) if (s == "") s = NULL; ^ ~~ 23 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckuus2.c ckuus2.c:5987:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dohfile(cx) int cx; { ^ ckuus2.c:6035:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dohlp(xx) int xx; { ^ ckuus2.c:7197:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hmsg(s) char *s; { ^ ckuus2.c:7221:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hmsga(s) char *s[]; { /* pausing at end of each screen. */ ^ ckuus2.c:7251:11: warning: add explicit braces to avoid dangling else [-Wdangling-else] else n = 0; ^ ckuus2.c:9874:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dohset(xx) int xx; { ^ ckuus2.c:10574:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dohfunc(xx) int xx; { ^ ckuus2.c:14296:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dohrmt(xx) int xx; { ^ 8 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckuus3.c ckuus3.c:2172:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parsdir(cx) int cx; { ^ ckuus3.c:2500:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getyesno(msg, flags) char * msg; int flags; { ^ ckuus3.c:3463:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sexpdebug(s) char * s; { ^ ckuus3.c:3477:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dosexp(s) char *s; { /* s = S-Expression */ ^ ckuus3.c:4822:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dologshow(fc) int fc; { /* SHOW (current) CONNECTION */ ^ ckuus3.c:5093:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dialstr(p,msg) char **p; char *msg; { ^ ckuus3.c:5106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] initmdm(x) int x; { ^ ckuus3.c:5390:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setdial(y) int y; { ^ ckuus3.c:6066:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6069:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6072:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6079:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6082:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6085:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6088:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6091:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6094:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6098:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6101:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6104:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6107:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6110:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6114:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6117:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6120:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6123:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6126:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6130:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6134:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6138:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 4) if (!askmore()) return(0); else n = 0; ^ ckuus3.c:6775:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] protofield(current, help, px) char * current, * help, * px; { ^ ckuus3.c:7055:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setprinter(xx) int xx; { ^ ckuus3.c:8862:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setexitwarn(x) int x; ^ ckuus3.c:8872:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setdebses(x) int x; { ^ ckuus3.c:8892:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doprm(xx,rmsflg) int xx, rmsflg; { ^ ckuus3.c:13418:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hupok(x) int x; { /* Returns 1 if OK, 0 if not OK */ ^ 36 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckuus4.c ckuus4.c:1276:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] findinpath(arg) char * arg; { ^ ckuus4.c:1509:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prescan(dummy) int dummy; { /* Arg is ignored. */ ^ ckuus4.c:2026:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gettcs(cs1,cs2) int cs1, cs2; { ^ ckuus4.c:2088:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doconect(q,async) int q, async; { ^ ckuus4.c:3197:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xlate(fin, fout, csin, csout) char *fin, *fout; int csin, csout; { ^ ckuus4.c:3648:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dolog(x) int x; { ^ ckuus4.c:3784:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pktopn(s,disp) char *s; int disp; { ^ ckuus4.c:3831:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] traopn(s,disp) char *s; int disp; { ^ ckuus4.c:3900:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sesopn(s,disp) char * s; int disp; { ^ ckuus4.c:3952:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] debopn(s,disp) char *s; int disp; { ^ ckuus4.c:4112:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] diaopn(s,disp,fc) char *s; int disp, fc; { ^ ckuus4.c:4717:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shotcp(n) int n; { ^ ckuus4.c:4721:61: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:4723:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:4727:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:4734:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:4745:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:4750:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:4755:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:4763:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:4770:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:4775:61: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:4778:61: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:4798:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shotopt(n) int n; { ^ ckuus4.c:4805:55: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:4839:61: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:4856:61: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:4862:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shotel(n) int n; { ^ ckuus4.c:4884:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:4994:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5003:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5021:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5023:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5025:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5027:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5029:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5031:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5048:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5051:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5053:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5056:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5058:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5060:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5063:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5066:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5071:65: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5077:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(-1); else n = 0; ^ ckuus4.c:5136:64: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5145:60: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5154:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5299:64: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5307:64: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5311:68: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5323:64: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5344:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5393:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5413:64: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5444:64: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5446:64: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5451:64: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5468:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shods(s) char *s; { /* Show a dial-related string */ ^ ckuus4.c:5515:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5518:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5525:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5537:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5541:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5544:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5547:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5550:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5560:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5567:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5577:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5580:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5583:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5586:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5589:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5592:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5595:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5604:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5614:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5624:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5631:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5640:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5643:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5646:56: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return(0); else n = 0; ^ ckuus4.c:5657:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pathval(x) int x; { ^ ckuus4.c:5714:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5745:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5752:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5755:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5757:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5760:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5762:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5764:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5767:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5770:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5773:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5785:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5790:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5795:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5815:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5818:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5821:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5824:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5835:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5839:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5853:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5856:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5858:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5863:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5865:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5869:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5871:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:5874:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:6218:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:6222:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:6224:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:6234:57: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (++n > cmd_rows - 3) if (!askmore()) return; else n = 0; ^ ckuus4.c:6249:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dostat(brief) int brief; { ^ ckuus4.c:6295:13: warning: logical not is only applied to the left hand side of this comparison [-Wlogical-not-parentheses] if (!xferstat > 0) { ^ ~ ckuus4.c:6295:13: note: add parentheses after the '!' to evaluate the comparison first if (!xferstat > 0) { ^ ( ) ckuus4.c:6295:13: note: add parentheses around left hand side expression to silence this warning if (!xferstat > 0) { ^ ( ) ckuus4.c:6521:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doinput(timo,ms,mp,flags,count) ^ ckuus4.c:7244:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doreinp(timo,s,pat) int timo; char *s; int pat; { ^ ckuus4.c:7362:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] yystring(s,s2) char *s; char **s2; { /* Reverse a string */ ^ ckuus4.c:7381:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getip(s) char *s; { ^ ckuus4.c:7448:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zjdate(date) char * date; { /* date = yyyymmdd */ ^ ckuus4.c:7507:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jzdate(date) char * date; { /* date = yyyyddd */ ^ ckuus4.c:7601:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mjd(date) char * date; { ^ ckuus4.c:7703:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fpformat(fpresult,places,round) CKFLOAT fpresult; int places, round; { ^ ckuus4.c:7807:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] evalerr(fn) char * fn; { ^ ckuus4.c:7818:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckcindex(c,s) char c, *s; { ^ ckuus4.c:7828:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dokwval(s,sep) char * s, * sep; { ^ ckuus4.c:7885:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] isaarray(s) char * s; { /* Is s an associative array element */ ^ ckuus4.c:7904:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fneval(fn,argp,argn,xp) char *fn, *argp[]; int argn; char * xp; { ^ ckuus4.c:10233:20: warning: passing arguments to 'pncvt' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] p = pncvt(bp[0]); ^ ckuus4.c:10560:26: warning: passing arguments to 'xdelmac' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (xdelmac(first) < 0) ^ ckuus4.c:11388:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (c = *s++) { /* Loop thru arg chars */ ~~^~~~~~ ckuus4.c:11388:22: note: place parentheses around the assignment to silence this warning while (c = *s++) { /* Loop thru arg chars */ ^ ( ) ckuus4.c:11388:22: note: use '==' to turn this assignment into an equality comparison while (c = *s++) { /* Loop thru arg chars */ ^ == ckuus4.c:12272:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nvlook(s) char *s; { ^ ckuus4.c:13914:32: warning: passing arguments to 'getdm' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckstrncpy(vvbuf,getdm(y),VVBUFL); ^ ckuus4.c:14419:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zzstring(s,s2,n) char *s; char **s2; int *n; { ^ 139 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckuus5.c ckuus5.c:1876:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getncm(s,n) char *s; int n; { ^ ckuus5.c:2011:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] domac(name, def, flags) char *name, *def; int flags; { ^ ckuus5.c:2072:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getnct(s,n,f,flag) char *s; int n; FILE *f; int flag; { ^ ckuus5.c:2404:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmddisplay(s, cx) char * s; int cx; { ^ ckuus5.c:2469:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parser(m) int m; { ^ ckuus5.c:3327:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] freelocal(m) int m; { /* Free local variables */ ^ ckuus5.c:3350:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] vardef(s,isarray,x1,x2) char * s; int * isarray, * x1, * x2; { ^ ckuus5.c:3405:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] addlocal(p) char * p; { ^ ckuus5.c:3491:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dooutput(s, cx) char *s; int cx; { ^ ckuus5.c:3898:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gfmode(binary,upcase) int binary, upcase; { ^ ckuus5.c:3926:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] isaa(s) char * s; { /* Is associative array */ ^ ckuus5.c:3964:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mlook(table,cmd,n) struct mtab table[]; char *cmd; int n; { ^ ckuus5.c:4029:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mxlook(table,cmd,n) char *cmd; struct mtab table[]; int n; { ^ ckuus5.c:4092:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mxxlook(table,cmd,n) char *cmd; struct mtab table[]; int n; { ^ ckuus5.c:4106:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] traceval(nam, val) char * nam, * val; { /* For TRACE command */ ^ ckuus5.c:4175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] addmmac(nam,s) char *nam, *s[]; { /* Add a multiline macro definition */ ^ ckuus5.c:4216:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] addmac(nam,def) char *nam, *def; { /* Add a macro to the macro table */ ^ ckuus5.c:4457:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xdelmac(x) int x; { /* Delete a macro given its index */ ^ ckuus5.c:4487:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] delmac(nam,exact) char *nam; int exact; { /* Delete the named macro */ ^ ckuus5.c:4775:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] iseom(m) char * m; { /* Test if at end of macro def */ ^ ckuus5.c:4833:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doclslog(x) int x; { ^ ckuus5.c:4929:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] showstring(s) char * s; { ^ ckuus5.c:4934:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] showoff(x) int x; { ^ ckuus5.c:4939:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] showooa(x) int x; { ^ ckuus5.c:5038:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shokeycode(c) int c; ^ ckuus5.c:5253:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shostrdef(s) CHAR * s; { ^ ckuus5.c:5409:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shotcs(csl,csr) int csl, csr; { /* Show terminal character set */ ^ ckuus5.c:6431:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doshow(x) int x; { ^ ckuus5.c:8034:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shomac(s1, s2) char *s1, *s2; { ^ ckuus5.c:8465:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] evalx(s) char *s; { ^ ckuus5.c:8476:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] evala(s) char *s; { ^ ckuus5.c:8628:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xarray(s) char * s; { ^ ckuus5.c:8803:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] arraybounds(s,lo,hi) char * s; int * lo, * hi; { ^ ckuus5.c:8844:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] arraynam(ss,c,n) char *ss; int *c; int *n; { ^ ckuus5.c:8949:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chkarray(a,i) int a, i; { /* Check if array is declared */ ^ ckuus5.c:8992:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pusharray(x,z) int x, z; { ^ ckuus5.c:9025:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parsevar(s,c,i) char *s; int *c, *i; { ^ ckuus5.c:9087:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] varval(s,v) char *s; CK_OFF_T *v; { ^ ckuus5.c:9121:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] incvar(s,x,z) char *s; CK_OFF_T x; int z; { /* Increment a numeric variable */ ^ ckuus5.c:9144:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dodo(x,s,flags) int x; char *s; int flags; { ^ ckuus5.c:9251:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] litcmd(src,dest,n) char **src, **dest; int n; { ^ ckuus5.c:9354:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xwords(s,max,list,flag) char *s; int max; char *list[]; int flag; { ^ ckuus5.c:9560:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doshift(n) int n; { /* n = shift count */ ^ ckuus5.c:9669:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] docd(cx) int cx; { /* Do the CD command */ ^ ckuus5.c:9915:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prtopt(lines,s) int * lines; char *s; { /* Print an option */ ^ 45 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckuus6.c ckuus6.c:875:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doask(cx) int cx; { ^ ckuus6.c:1357:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doincr(cx) int cx; { /* INCREMENT, DECREMENT */ ^ ckuus6.c:1386:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xxundef(s,verbose,simulate) char * s; int verbose, simulate; { ^ ckuus6.c:1436:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doundef(cx) int cx; { /* UNDEF, _UNDEF */ ^ ckuus6.c:1604:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dodef(cx) int cx; { ^ ckuus6.c:1758:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getdnum(n) int n; { /* Get dial number n from directory */ ^ ckuus6.c:1766:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chk_ac(i,buf) int i; char buf[]; { ^ ckuus6.c:1805:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] callisld(src, dest) char * src, * dest; { ^ ckuus6.c:1825:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xdial(s) char *s; { /* Run dial string thru macro */ ^ ckuus6.c:1847:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dncvt(k,cx, prefix, suffix) ^ ckuus6.c:2309:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ddcvt(s, f, n) char * s; FILE * f; int n; { /* Dial Directory Convert */ ^ ckuus6.c:2702:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pncvt(s) char *s; { /* Phone number conversion */ ^ ckuus6.c:3294:9: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (!quiet) ^ ckuus6.c:2722:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dodial(cx) int cx; { /* DIAL or REDIAL */ ^ ckuus6.c:3487:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] typeline(buf,len,outcs,ofp) char * buf; int len, outcs; FILE * ofp; { ^ ckuus6.c:3568:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] typegetline(incs, outcs, buf, n) int incs, outcs, n; char * buf; { ^ ckuus6.c:3762:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dotype(file, paging, first, head, pat, width, prefix, incs, outcs, outfile, z) ^ ckuus6.c:4857:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] domydir(cx) int cx; { /* Internal DIRECTORY command */ ^ ckuus6.c:5885:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dodir(cx) int cx; { /* Do the DIRECTORY command */ ^ ckuus6.c:5933:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doenable(y,x) int y, x; { ^ ckuus6.c:6801:61: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (!askmore()) goto xdelete; else n = 0; ^ ckuus6.c:6810:61: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (!askmore()) goto xdelete; else n = 0; ^ ckuus6.c:6821:61: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (!askmore()) goto xdelete; else n = 0; ^ ckuus6.c:6831:61: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (!askmore()) goto xdelete; else n = 0; ^ ckuus6.c:6841:53: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (!askmore()) goto xdelete; else n = 0; ^ ckuus6.c:6848:49: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (!askmore()) goto xdelete; else n = 0; ^ ckuus6.c:7250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tod2sec(t) char * t; { ^ ckuus6.c:7320:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dopaus(cx) int cx; { ^ ckuus6.c:8417:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cvtstring(s,csin,csout) char * s; int csin, csout; { ^ ckuus6.c:8491:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gnirts(s1, s2, len) char * s1, * s2; int len; { ^ ckuus6.c:8539:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] renameone(old,new, ^ ckuus6.c:9035:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ ckuus6.c:9262:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doreturn(s) char *s; { ^ ckuus6.c:9470:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doxget(cx) int cx; { ^ ckuus6.c:10383:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dogta(cx) int cx; { ^ ckuus6.c:10479:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dogoto(s, cx) char *s; int cx; { ^ ckuus6.c:10745:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chkvar(s) char *s; { ^ ckuus6.c:10806:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] boolexp(cx) int cx; { ^ ckuus6.c:11734:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doif(cx) int cx; { ^ ckuus6.c:11925:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dotake(s) char *s; { ^ 40 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckuus7.c ckuus7.c:2122:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] seton(prm) int *prm; { ^ ckuus7.c:2139:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setonaut(prm) int *prm; { ^ ckuus7.c:2155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setnum(prm,x,y,max) int x, y, *prm, max; { ^ ckuus7.c:2183:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setcc(dflt,var) char *dflt; int *var; { ^ ckuus7.c:2511:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bkupnum(s,i) char * s; int *i; { ^ ckuus7.c:3016:48: warning: add explicit braces to avoid dangling else [-Wdangling-else] if (!askmore()) goto xpurge; else lines = 0; ^ ckuus7.c:3092:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doxdis(which) int which; { /* 1 = Kermit, 2 = FTP */ ^ ckuus7.c:3166:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setfil(rmsflg) int rmsflg; { ^ ckuus7.c:3829:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doputenv(s1, s2) char * s1; char * s2; { ^ ckuus7.c:4011:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setlclcharset(x) int x; { ^ ckuus7.c:4026:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setremcharset(x, z) int x, z; { ^ ckuus7.c:4162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setcmask(x) int x; { ^ ckuus7.c:4176:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setautodl(x,y) int x,y; { ^ ckuus7.c:6504:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setsr(xx, rmsflg) int xx; int rmsflg; { ^ ckuus7.c:7279:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] remtxt(p) char ** p; { ^ ckuus7.c:7395:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] plogin(xx) int xx; { ^ ckuus7.c:7535:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dormt(xx) int xx; ^ ckuus7.c:8214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setat(rmsflg) int rmsflg; { ^ ckuus7.c:8646:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clsconnx(ask) int ask; { ^ ckuus7.c:8742:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clskconnx(x) int x; { /* Close Kermit connection only */ ^ ckuus7.c:8782:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cx_fail(msg, text) int msg; char * text; { ^ ckuus7.c:10212:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setlin(xx, zz, fc) ^ ckuus7.c:11496:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckferror(n) int n; { ^ ckuus7.c:11529:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] z_open(name, flags) char * name; int flags; { ^ ckuus7.c:11639:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] z_close(channel) int channel; { /* Close file on given channel */ ^ ckuus7.c:11682:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] z_out(channel,s,length,flags) int channel, flags, length; char * s; { ^ ckuus7.c:11760:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] z_in(channel,s,buflen,length,flags) ^ ckuus7.c:11890:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] z_flush(channel) int channel; { /* Flush output channel */ ^ ckuus7.c:12030:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] z_getname(channel) int channel; { /* Return name of file on channel */ ^ ckuus7.c:12052:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] z_getmode(channel) int channel; { /* Return OPEN modes of channel */ ^ ckuus7.c:12084:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] z_getpos(channel) int channel; { /* Get file pointer position */ ^ ckuus7.c:12100:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] z_getline(channel) int channel; { /* Get current line number */ ^ ckuus7.c:12117:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] z_getfnum(channel) int channel; { /* Get file number / handle */ ^ ckuus7.c:12136:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] z_count(channel, what) int channel, what; { /* Count bytes or lines in file */ ^ ckuus7.c:12267:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dofile(op) int op; { /* Do the FILE command */ ^ ckuus7.c:13128:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] savkeys(name,disp) char * name; int disp; { ^ ckuus7.c:13569:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dosave(xx) int xx; { ^ ckuus7.c:13675:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] readtext(prmpt, buffer, bufsiz) char * prmpt; char * buffer; int bufsiz; { ^ ckuus7.c:13737:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] readpass(prmpt, buffer, bufsiz) char * prmpt; char * buffer; int bufsiz; { ^ 39 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckuusx.c ckuusx.c:376:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gskreason(n) int n; { ^ ckuusx.c:494:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shoesc(escape) int escape; { ^ ckuusx.c:1304:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] matchname(filename, local, os) char * filename; int local; int os; { ^ ckuusx.c:1442:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] scanfile(name,flag,nscanfile) char * name; int * flag, nscanfile; { ^ ckuusx.c:1714:14: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((c == '\032') /* Ctrl-Z */ ~~^~~~~~~~~ ckuusx.c:1714:14: note: remove extraneous parentheses around the comparison to silence this warning if ((c == '\032') /* Ctrl-Z */ ~ ^ ~ ckuusx.c:1714:14: note: use '=' to turn this equality comparison into an assignment if ((c == '\032') /* Ctrl-Z */ ^~ = ckuusx.c:1984:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] scanstring(s) char * s; { ^ ckuusx.c:2073:10: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] if ((c == '\032') /* Ctrl-Z */ ~~^~~~~~~~~ ckuusx.c:2073:10: note: remove extraneous parentheses around the comparison to silence this warning if ((c == '\032') /* Ctrl-Z */ ~ ^ ~ ckuusx.c:2073:10: note: use '=' to turn this equality comparison into an assignment if ((c == '\032') /* Ctrl-Z */ ^~ = ckuusx.c:2543:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sdebu(len) int len; { ^ ckuusx.c:2566:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rdebu(d,len) CHAR *d; int len; { ^ ckuusx.c:2603:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fatal(msg) char *msg; { ^ ckuusx.c:2642:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bldlen(str,dest) char *str, *dest; { ^ ckuusx.c:2718:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fnparse(string) char *string; { ^ ckuusx.c:2774:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dbchr(c) int c; { ^ ckuusx.c:2826:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckhost(vvbuf,vvlen) char * vvbuf; int vvlen; { ^ ckuusx.c:3807:9: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (what & W_RECV || what & W_REMO) ^ ckuusx.c:4661:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ermsg(msg) char *msg; { /* Print error message */ ^ ckuusx.c:4670:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setseslog(x) int x; { ^ ckuusx.c:4678:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doclean(fc) int fc; { /* General cleanup */ ^ ckuusx.c:4889:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doexit(exitstat,code) int exitstat, code; { ^ ckuusx.c:5728:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] logstr(s, len) char * s; int len; { /* Log string to session log */ ^ ckuusx.c:5914:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fxdinit(xdispla) int xdispla; { ^ ckuusx.c:5980:17: warning: call to undeclared function 'tgetent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] x = tgetent(trmbuf,s); ^ ckuusx.c:6451:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ck_termset(x) int x; { ^ ckuusx.c:6481:13: warning: call to undeclared function 'tgetstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (tgetstr("cl", &bp)) { /* Get clear-screen code */ ^ ckuusx.c:6542:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ck_curpos(row, col) int row, col; { ^ ckuusx.c:6560:9: warning: call to undeclared function 'tputs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] tputs( ^ ckuusx.c:6564:15: warning: call to undeclared function 'tgoto'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] tgoto(cur_cm,col-1,row-1),1,fn); ^ ckuusx.c:6587:9: warning: call to undeclared function 'tputs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] tputs(cur_cls,cmd_rows,fn); ^ ckuusx.c:6609:9: warning: call to undeclared function 'tputs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] tputs(cur_cleol,1,fn); ^ ckuusx.c:8025:20: warning: format string is not a string literal (potentially insecure) [-Wformat-security] printw(*s ? s : "User interruption or connection lost"); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ckuusx.c:8025:20: note: treat the string as an argument to avoid this printw(*s ? s : "User interruption or connection lost"); ^ "%s", ckuusx.c:9302:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] updslot(n) int n; { /* Update our slot */ ^ ckuusx.c:9343:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] initslot(n) int n; { /* Initialize slot */ ^ ckuusx.c:9407:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] slotstate(x,s1,s2,s3) int x; char *s1, *s2, *s3; { ^ ckuusx.c:9455:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] slotdir(s1,s2) char * s1, * s2; { /* Update current directory */ ^ ckuusx.c:9478:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] freeslot(n) int n; { ^ 35 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckuusy.c ckuusy.c:175: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 pmsg(s) char *s; { printf("%s\n", s); return(0); } ^ ckuusy.c:176: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 fmsg(s) char *s; { fatal(s); return(0); } ^ ckuusy.c:248:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] urlparse(s,url) char *s; struct urldata * url; { ^ ckuusy.c:493:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fatal2(msg1,msg2) char *msg1, *msg2; { ^ ckuusy.c:510:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cl_int(dummy) int dummy; ^ ckuusy.c:521:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xx_ftp(host, port) char * host, * port; { ^ ckuusy.c:2354:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doxarg(s,pre) char ** s; int pre; { ^ 7 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckwart.c ckwart.c:213:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setwstate(state,t) int state; trans t; { ^ ckwart.c:225:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] teststate(state,t) int state; trans t; { ^ ckwart.c:239:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rdinput(infp,outfp) FILE *infp,*outfp; { ^ ckwart.c:267:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] initial(infp,outfp) FILE *infp, *outfp; { ^ ckwart.c:289:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] isin(s,c) char *s; int c; { ^ ckwart.c:295:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] isword(c) int c; { ^ ckwart.c:305:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rdword(fp,buf) FILE *fp; char *buf; { ^ ckwart.c:317:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rdstates(fp,ofp) FILE *fp,*ofp; { ^ ckwart.c:352:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rdrules(fp,out) FILE *fp,*out; { ^ ckwart.c:395:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] statelist(fp,t) FILE *fp; trans t; { ^ ckwart.c:415:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] copyact(inp,outp,actno) FILE *inp,*outp; int actno; { ^ ckwart.c:446:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] faction(hd,state,chr) trans hd; int state,chr; { ^ ckwart.c:471:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] addaction(act,state,chr) int act,state,chr; { ^ ckwart.c:476:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] writetbl(fp) FILE *fp; { ^ ckwart.c:486:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] warray(fp,nam,cont,siz,typ) FILE *fp; char *nam; int cont[],siz; char *typ; { ^ ckwart.c:531:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] main(argc,argv) int argc; char **argv; { ^ int ckwart.c:531:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckwart.c:569:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fatal(msg) char *msg; { ^ ckwart.c:575:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] prolog(outfp) FILE *outfp; { ^ ckwart.c:586:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] epilogue(outfp) FILE *outfp; { ^ ckwart.c:592:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] copyrest(in,out) FILE *in,*out; { ^ ckwart.c:604:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gettoken(fp) FILE *fp; { ^ ckwart.c:651:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rdcmnt(fp) FILE *fp; { ^ ckwart.c:695:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hash(name) char *name; { ^ ckwart.c:708:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] copy(s) char *s; { ^ ckwart.c:720:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] enter(name,svalue) char *name; int svalue; { ^ ckwart.c:741:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lkup(name) char *name; { ^ 27 warnings generated. cc -o wart ckwart.o -lcurses -lutil -lm ckwart.c(ckwart.o:(enter)): warning: strcpy() is almost always misused, please use strlcpy() ./wart ckcpro.w ckcpro.c 16 states, 74 actions cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckcpro.c ckcpro.c:2344:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tmp = (char *)malloc(n)) { ~~~~^~~~~~~~~~~~~~~~~~~ ckcpro.c:2344:11: note: place parentheses around the assignment to silence this warning if (tmp = (char *)malloc(n)) { ^ ( ) ckcpro.c:2344:11: note: use '==' to turn this assignment into an equality comparison if (tmp = (char *)malloc(n)) { ^ == ckcpro.c:2358:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tmp = (char *)malloc(n)) { ~~~~^~~~~~~~~~~~~~~~~~~ ckcpro.c:2358:11: note: place parentheses around the assignment to silence this warning if (tmp = (char *)malloc(n)) { ^ ( ) ckcpro.c:2358:11: note: use '==' to turn this assignment into an equality comparison if (tmp = (char *)malloc(n)) { ^ == ckcpro.c:2465:9: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else { /* or to screen. */ ^ ckcpro.c:2928:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = zgtdir()) { /* Get current directory */ ~~^~~~~~~~~~ ckcpro.c:2928:12: note: place parentheses around the assignment to silence this warning if (s = zgtdir()) { /* Get current directory */ ^ ( ) ckcpro.c:2928:12: note: use '==' to turn this assignment into an equality comparison if (s = zgtdir()) { /* Get current directory */ ^ == ckcpro.c:3424:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (s = zgtdir()) { /* Get current directory */ ~~^~~~~~~~~~ ckcpro.c:3424:9: note: place parentheses around the assignment to silence this warning if (s = zgtdir()) { /* Get current directory */ ^ ( ) ckcpro.c:3424:9: note: use '==' to turn this assignment into an equality comparison if (s = zgtdir()) { /* Get current directory */ ^ == ckcpro.c:3627:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sgetinit(reget,xget) int reget, xget; { /* Server end of GET command */ ^ 6 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckcfns.c ckcfns.c:1601:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] lslook(b) unsigned int b; { /* Locking Shift Lookahead */ ^ ckcfns.c:1647:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bgetpkt(bufmax) int bufmax; { ^ ckcfns.c:1880:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dofilcrc(c) int c; { /* Accumulate file crc */ ^ ckcfns.c:2551:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getpkt(bufmax,xlate) int bufmax, xlate; { /* Fill one packet buffer */ ^ ckcfns.c:3026:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tinit(flag) int flag; { ^ ckcfns.c:3142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rinit(d) CHAR *d; { ^ ckcfns.c:3383:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rcvfil(n) char *n; { ^ ckcfns.c:4016:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] reof(f,yy) char *f; struct zattr *yy; { ^ ckcfns.c:4206:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sfile(x) int x; { ^ ckcfns.c:4819:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] szeof(s) CHAR *s; { ^ ckcfns.c:4848:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] seof(x) int x; { ^ ckcfns.c:4872:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sxeof(x) int x; { ^ ckcfns.c:5073:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] spar(s) CHAR *s; { /* Set parameters */ ^ ckcfns.c:5846:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sndstring(p) char * p; { ^ ckcfns.c:5870:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xnm(x) int x; { ^ ckcfns.c:6139:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sndtype(file) char * file; { ^ ckcfns.c:6413:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] snddir(spec) char * spec; { ^ ckcfns.c:6645:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] snddel(spec) char * spec; { ^ ckcfns.c:6771:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cwd(vdir) char *vdir; { ^ ckcfns.c:6808:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] syscmd(prefix,suffix) char *prefix, *suffix; { ^ ckcfns.c:6852:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] remset(s) char *s; { ^ ckcfns.c:7065:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] adjpkl(pktlen,slots,bufsiz) int pktlen, slots, bufsiz; { ^ 22 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckcfn2.c ckcfn2.c:333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getrtt(nakstate, n) int nakstate, n; { ^ ckcfn2.c:1068:19: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] } else if ((rsn == (pktnum + 1) % 64)) { /* NAK for next pkt */ ~~~~^~~~~~~~~~~~~~~~~~~~ ckcfn2.c:1068:19: note: remove extraneous parentheses around the comparison to silence this warning } else if ((rsn == (pktnum + 1) % 64)) { /* NAK for next pkt */ ~ ^ ~ ckcfn2.c:1068:19: note: use '=' to turn this equality comparison into an assignment } else if ((rsn == (pktnum + 1) % 64)) { /* NAK for next pkt */ ^~ = ckcfn2.c:1214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chktimo(timo,flag) int timo, flag; { ^ ckcfn2.c:1562:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chk1(pkt,len) register CHAR *pkt; register int len; { ^ ckcfn2.c:1585:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chk2(pkt,len) register CHAR *pkt; register int len; { ^ ckcfn2.c:1620:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chk3(pkt,len) register CHAR *pkt; register int len; { ^ ckcfn2.c:1704:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ackns(n,s) int n; CHAR *s; { /* Acknowledge packet n */ ^ ckcfn2.c:1731:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ackn(n) int n; { /* Send ACK for packet number n */ ^ ckcfn2.c:1736:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ack1(s) CHAR *s; { /* Send an ACK with data. */ ^ ckcfn2.c:1751:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nack(n) int n; { ^ ckcfn2.c:1870:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] resend(n) int n; { /* Send packet n again. */ ^ ckcfn2.c:2005:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] errpkt(reason) CHAR *reason; { /* ...containing the reason given */ ^ ckcfn2.c:2241:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] srinit(reget, retrieve, opkt) int reget, retrieve, opkt; { ^ ckcfn2.c:2660:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chkspkt(packet) char *packet; { ^ ckcfn2.c:2875:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ 15 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckcfn3.c ckcfn3.c:51:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckmkdir(fc,s,r,m,cvt) int fc; char * s; char ** r; int m; int cvt; { ^ ckcfn3.c:397:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] inibufs(s,r) int s, r; { ^ ckcfn3.c:504:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] makebuf(slots,bufsiz,buf,xx) ^ ckcfn3.c:537:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mksbuf(slots) int slots; { ^ ckcfn3.c:559:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mkrbuf(slots) int slots; { ^ ckcfn3.c:580:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] window(n) int n; { ^ ckcfn3.c:604:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getsbuf(n) int n; { /* Allocate a send-buffer */ ^ ckcfn3.c:678:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] freesbuf(n) int n; { /* Release send-buffer for packet n. */ ^ ckcfn3.c:709:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] freerbuf(i) int i; { /* Release receive-buffer slot "i". */ ^ ckcfn3.c:749:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] freerpkt(seq) int seq; { ^ ckcfn3.c:773:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chkwin(n,bottom,slots) int n, bottom, slots; { ^ ckcfn3.c:961:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sattr(xp, flag) int xp, flag; { /* Send Attributes */ ^ ckcfn3.c:1355:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getreason(s) char *s; { /* Decode attribute refusal reason */ ^ ckcfn3.c:1372:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rsattr(s) CHAR *s; { /* Read response to attribute packet */ ^ ckcfn3.c:1411:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] gattr(s, yy) CHAR *s; struct zattr *yy; { /* Read incoming attribute packet */ ^ ckcfn3.c:1477:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while (c = *s++) { /* Get attribute tag */ ~~^~~~~~ ckcfn3.c:1477:14: note: place parentheses around the assignment to silence this warning while (c = *s++) { /* Get attribute tag */ ^ ( ) ckcfn3.c:1477:14: note: use '==' to turn this assignment into an equality comparison while (c = *s++) { /* Get attribute tag */ ^ == ckcfn3.c:1945:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] initattr(yy) struct zattr *yy; { ^ ckcfn3.c:2000:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] adebu(f,zz) char *f; struct zattr *zz; { ^ ckcfn3.c:2040:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] opena(f,zz) char *f; struct zattr *zz; { ^ ckcfn3.c:2117:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (x = openo(f,zz,&fcb)) { /* Try to open the file. */ ~~^~~~~~~~~~~~~~~~~~ ckcfn3.c:2117:11: note: place parentheses around the assignment to silence this warning if (x = openo(f,zz,&fcb)) { /* Try to open the file. */ ^ ( ) ckcfn3.c:2117:11: note: use '==' to turn this assignment into an equality comparison if (x = openo(f,zz,&fcb)) { /* Try to open the file. */ ^ == ckcfn3.c:2175:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ ckcfn3.c:2187:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] openc(n,s) int n; char * s; { ^ ckcfn3.c:2202:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] canned(buf) CHAR *buf; { ^ ckcfn3.c:2217:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] openi(name) char *name; { ^ ckcfn3.c:2315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] openo(name,zz,fcb) char *name; struct zattr *zz; struct filinfo *fcb; { ^ ckcfn3.c:2385:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] opent(zz) struct zattr *zz; { ^ ckcfn3.c:2401:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckopenx(zz) struct zattr *zz; { ^ ckcfn3.c:2518:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] clsof(disp) int disp; { ^ 28 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckuxla.c ckuxla.c:5332:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jpnxas(a, obuf) int a; int obuf[]; { /* Translate ASCII to local file code */ ^ ckuxla.c:5363:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jpnxkt(a, obuf) int a; int obuf[]; { ^ ckuxla.c:5390:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] jpnxkn(ibuf, obuf) int ibuf[], obuf[]; { ^ ckuxla.c:7205:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cs_is_nrc(x) int x; { ^ ckuxla.c:7228:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cs_is_std(x) int x; { ^ ckuxla.c:7255:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cs_size(x) int x; { ^ ckuxla.c:7346:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] setxlatype(tcs, fcs) int tcs, fcs; { ^ ckuxla.c:7412:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] initxlate(csin, csout) int csin, csout; { ^ 8 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckucns.c ckucns.c:472:48: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion] xx.typ = 0; xx.dsp = XYFZ_A; xx.os_specific = NUL; ^~~ ./ckcasc.h:17:14: note: expanded from macro 'NUL' #define NUL '\0' /* Null Ctrl-@*/ ^~~~ ckucns.c:753:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckcputc(c) int c; { ^ ckucns.c:777:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckcgetc(dummy) int dummy; { ^ ckucns.c:994:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] learnchar(c) int c; { /* Learned script keyboard character */ ^ 4 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckutio.c ckutio.c:1616:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] timerh(foo) int foo; { ^ ckutio.c:1632:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xtimerh(foo) int foo; { /* Like timerh() but does */ ^ ckutio.c:1653:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cctrap(foo) int foo; { /* Needs arg for ANSI C */ ^ ckutio.c:1902:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] winchh(foo) int foo; { /* SIGWINCH handler */ ^ ckutio.c:1984:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sighup(foo) int foo; { /* SIGHUP handler */ ^ ckutio.c:2289:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = getenv("LOCATION")) ~~^~~~~~~~~~~~~~~~~~~~ ckutio.c:2289:8: note: place parentheses around the assignment to silence this warning if (p = getenv("LOCATION")) ^ ( ) ckutio.c:2289:8: note: use '==' to turn this assignment into an equality comparison if (p = getenv("LOCATION")) ^ == ckutio.c:2290:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (tn_loc = (char *)malloc((int)strlen(p)+1)) ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ckutio.c:2290:15: note: place parentheses around the assignment to silence this warning if (tn_loc = (char *)malloc((int)strlen(p)+1)) ^ ( ) ckutio.c:2290:15: note: use '==' to turn this assignment into an equality comparison if (tn_loc = (char *)malloc((int)strlen(p)+1)) ^ == ckutio.c:2366:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttopen(ttname,lcl,modem,timo) char *ttname; int *lcl, modem, timo; { ^ ckutio.c:2489:37: warning: for loop has empty body [-Wempty-body] for (p = ttname; isdigit(*p); p++) ; /* Check for all digits */ ^ ckutio.c:2489:37: note: put the semicolon on a separate line to silence this warning ckutio.c:3451:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_open(ttname) char *ttname; { ^ ckutio.c:3500:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttclos(foo) int foo; { /* Arg req'd for signal() prototype */ ^ ckutio.c:4691:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttchkpid(f) char *f; { ^ ckutio.c:4737:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttrpid(name) char *name; { ^ ckutio.c:4975:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttlock(ttdev) char *ttdev; { ^ ckutio.c:5793:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tthflow(flow, status, attrs) ^ ckutio.c:6894:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttsetflow(flow) int flow; { ^ ckutio.c:7456:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttsspd(cps) int cps; { ^ ckutio.c:8391:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttpushback(s,n) CHAR * s; int n; { ^ ckutio.c:8926:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tt_tnopt(n) int n; { /* Handle Telnet options */ ^ ckutio.c:9241:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] conbgt(flag) int flag; { ^ ckutio.c:9827:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] in_chk(channel, fd) int channel, fd; { ^ ckutio.c:10213:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttxin(n,buf) int n; CHAR *buf; { ^ ckutio.c:10321:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttol(s,n) int n; CHAR *s; { ^ ckutio.c:11145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttinc(timo) int timo; { ^ ckutio.c:11530:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttwait(fd, secs) int fd, secs; { ^ ckutio.c:11560:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] msleep(m) int m; { ^ ckutio.c:11890:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ztime(s) char **s; { ^ ckutio.c:11899:11: 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 previous declaration [-Wdeprecated-non-prototype] char *asctime(); ^ /usr/include/time.h:113:7: note: conflicting prototype is here char *asctime(const struct tm *); ^ ckutio.c:11900:16: 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 previous declaration [-Wdeprecated-non-prototype] struct tm *localtime(); ^ /usr/include/time.h:118:12: note: conflicting prototype is here struct tm *localtime(const time_t *); ^ ckutio.c:12162:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] congetbuf(x) int x; { ^ ckutio.c:12617:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] conxo(x,s) int x; char *s; { ^ ckutio.c:12639:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] conol(s) char *s; { ^ ckutio.c:12683:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] conola(s) char *s[]; { ^ ckutio.c:12709:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] conoll(s) char *s; { ^ ckutio.c:12779:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] coninc(timo) int timo; { ^ ckutio.c:12878:9: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else continue; /* By other signal, try again. */ ^ ckutio.c:13149:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttscarr(carrier) int carrier; { ^ ckutio.c:13175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] carrctl(ttpar, carrier) struct termios *ttpar; int carrier; ^ ckutio.c:13580:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] psuspend(flag) int flag; { ^ ckutio.c:14016:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] priv_opn(name, modes) char *name; int modes; { ^ ckutio.c:14133:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pty_make_raw(fd) int fd; { ^ ckutio.c:14414:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pty_chk(fd) int fd; { ^ ckutio.c:14437:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pty_get_status(fd,pid) int fd; PID_T pid; { ^ ckutio.c:14541:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sigchld_handler(sig) int sig; { ^ ckutio.c:14559:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttptycmd(s) char *s; { ^ ckutio.c:15347:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttruncmd(s) char *s; { ^ 46 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckufio.c ckufio.c:1228:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cksyslog(n, m, s1, s2, s3) int n, m; char * s1, * s2, * s3; { ^ ckufio.c:1355:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getfullname(name) char * name; { ^ ckufio.c:1412:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zopeni(n,name) int n; char *name; { ^ ckufio.c:1496:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zopeno(n,name,zz,fcb) ^ ckufio.c:1668:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zclose(n) int n; { ^ ckufio.c:1778:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zchin(n,c) int n; int *c; { ^ ckufio.c:1816:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zsinl(n,s,x) int n, x; char *s; { ^ ckufio.c:1873:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zxin(n,s,x) int n, x; char *s; { ^ ckufio.c:2033:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zsout(n,s) int n; char *s; { ^ ckufio.c:2073:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zsoutl(n,s) int n; char *s; { ^ ckufio.c:2101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zsoutx(n,s,x) int n, x; char *s; { ^ ckufio.c:2230:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chkfn(n) int n; { ^ ckufio.c:2267:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zgetfs(name) char *name; { ^ ckufio.c:2413:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zchki(name) char *name; { ^ ckufio.c:2506:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zchko(name) char *name; { ^ ckufio.c:2683:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zdelet(name) char *name; { ^ ckufio.c:2717:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zrtol(name,name2) char *name, *name2; { ^ ckufio.c:2722:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nzrtol(name,name2,fncnv,fnrpath,max) ^ ckufio.c:2845:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zstrip(name,name2) char *name, **name2; { ^ ckufio.c:2875:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zltor(name,name2) char *name, *name2; { ^ ckufio.c:2885:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nzltor(name,name2,fncnv,fnspath,max) ^ ckufio.c:3020:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zchdir(dirnam) char *dirnam; { ^ ckufio.c:3236:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zxcmd(filnum,comand) int filnum; char *comand; { ^ ckufio.c:3412:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zclosf(filnum) int filnum; { ^ ckufio.c:3454:25: warning: call to undeclared function 'wait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] while ((wstat = wait(&statusp)) != pid && wstat != -1) ; ^ ckufio.c:3514:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] initspace(resarry,len) char * resarry[]; int len; { ^ ckufio.c:3550:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zsetfil(n, fc) int n, fc; { ^ ckufio.c:3586:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zxpand(fnarg) char *fnarg; { ^ ckufio.c:3754:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nzxpand(s,flags) char * s; int flags; { ^ ckufio.c:3824:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] znext(fn) char *fn; { ^ ckufio.c:3926:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] znewn(fn,s) char *fn, **s; { ^ ckufio.c:4051:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zrename(old,new) char *old, *new; { ^ ckufio.c:4173:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zcopy(source,destination) char *source, *destination; { ^ ckufio.c:4365:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zsetperm(f,code) char * f; int code; { ^ ckufio.c:4389:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zgperm(f) char *f; { ^ ckufio.c:4424:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ziperm(f) char * f; { ^ ckufio.c:4582:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zsattr(xx) struct zattr *xx; { ^ ckufio.c:4669:17: 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 previous declaration [-Wdeprecated-non-prototype] struct tm * localtime(); ^ /usr/include/time.h:118:12: note: conflicting prototype is here struct tm *localtime(const time_t *); ^ ckufio.c:4728:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zfcdat(name) char *name; { ^ ckufio.c:4805:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zstrdt(date,len) char * date; int len; { ^ ckufio.c:4823:24: 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 previous declaration [-Wdeprecated-non-prototype] extern struct tm * localtime(); ^ /usr/include/time.h:118:12: note: conflicting prototype is here struct tm *localtime(const time_t *); ^ ckufio.c:5089:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zlocaltime(gmtstring) char * gmtstring; { ^ ckufio.c:5107:24: 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 previous declaration [-Wdeprecated-non-prototype] extern struct tm * localtime(); ^ /usr/include/time.h:118:12: note: conflicting prototype is here struct tm *localtime(const time_t *); ^ ckufio.c:5311:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zstime(f,yy,x) ^ ckufio.c:5324:16: 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 previous declaration [-Wdeprecated-non-prototype] extern int utimes(); ^ /usr/include/sys/time.h:458:5: note: conflicting prototype is here int utimes(const char *, const struct timeval *); ^ ckufio.c:5683:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zprint(p,f) char *p; char *f; { /* Print file f with options p */ ^ ckufio.c:5754:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shxpand(pat,namlst,len) char *pat, *namlst[]; int len; { ^ ckufio.c:5839:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] splitpath(p) char *p; { ^ ckufio.c:5936:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fgen(pat,resarry,len) char *pat,*resarry[]; int len; { ^ ckufio.c:6094:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] traverse(pl,sofar,endcur) struct path *pl; char *sofar, *endcur; { ^ ckufio.c:6102:15: 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 previous declaration [-Wdeprecated-non-prototype] DIR *fd, *opendir(); ^ /usr/include/dirent.h:71:6: note: conflicting prototype is here DIR *opendir(const char *); ^ ckufio.c:6104:20: 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 previous declaration [-Wdeprecated-non-prototype] struct dirent *readdir(); ^ /usr/include/dirent.h:75:16: note: conflicting prototype is here struct dirent *readdir(DIR *); ^ ckufio.c:6555:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] addresult(str,itsadir) char *str; int itsadir; { ^ ckufio.c:6756:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tilde_expand(dirname) char *dirname; { ^ ckufio.c:6834:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zsyscmd(s) char *s; { ^ ckufio.c:6850:33: warning: call to undeclared function 'wait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] while (shpid != (PID_T) wait(&status)) ^ ckufio.c:6890:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] z_exec(p,s,t) char * p, ** s; int t; { /* Overlay ourselves with "p s..." */ ^ ckufio.c:6930:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zshcmd(s) char *s; { ^ ckufio.c:7028:26: warning: call to undeclared function 'wait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] while (((wstat = wait(&child)) != pid) && (wstat != -1)) ^ ckufio.c:7054:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] iswild(filespec) char *filespec; { ^ ckufio.c:7126:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] isalink(s) char *s; { ^ ckufio.c:7140:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] isdir(s) char *s; { ^ ckufio.c:7249:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zmkdir(path) char *path; { ^ ckufio.c:7341:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zrmdir(path) char *path; { ^ ckufio.c:7398:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zfnqfp(fname, buflen, buf) char * fname; int buflen; char * buf; { ^ ckufio.c:7503:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (p = zgtdir()) { /* So get current directory */ ~~^~~~~~~~~~ ckufio.c:7503:15: note: place parentheses around the assignment to silence this warning if (p = zgtdir()) { /* So get current directory */ ^ ( ) ckufio.c:7503:15: note: use '==' to turn this assignment into an equality comparison if (p = zgtdir()) { /* So get current directory */ ^ == ckufio.c:7600:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zcmpfn(s1,s2) char * s1, * s2; { ^ ckufio.c:7675:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zsetroot(s) char * s; { /* Sets the root */ ^ ckufio.c:7713:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zinroot(s) char * s; { /* Checks if file s is in the root */ ^ ckufio.c:7760:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sgetsave(s) char *s; { ^ ckufio.c:7777:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sgetpwnam(name) char *name; { ^ ckufio.c:7874:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zvuser(name) char *name; { ^ ckufio.c:8085:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] checkuser(name) char *name; { ^ ckufio.c:8216:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] zvpass(p) char *p; { ^ 74 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckudia.c ckudia.c:4444:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dologdial(s) char *s; { ^ ckudia.c:4596:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ddinc(n) int n; { ^ ckudia.c:4625:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ttslow(s,millisec) char *s; int millisec; { /* Output s-l-o-w-l-y */ ^ ckudia.c:4667:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] waitfor(s) char *s; { ^ ckudia.c:4682:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] didweget(s,r) char *s, *r; { /* Looks in string s for response r */ ^ ckudia.c:4751:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getdm(x) int x; { /* Return dial modifier */ ^ ckudia.c:4952:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dialfail(x) int x; { ^ ckudia.c:4996:14: warning: address of array 'lbuf' will always evaluate to 'true' [-Wpointer-bool-conversion] if (lbuf && *lbuf) { ^~~~ ~~ ckudia.c:6430:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckdial(nbr, x1, x2, fc, redial) char *nbr; int x1, x2, fc, redial; ^ ckudia.c:6527:55: warning: use of logical '||' with constant operand [-Wconstant-logical-operand] mymdmtyp == n_H_ULTRA || mymdmtyp == n_H_ACCURA || n_PPI ^ ~~~~~ ckudia.c:6527:55: note: use '|' for a bitwise operation mymdmtyp == n_H_ULTRA || mymdmtyp == n_H_ACCURA || n_PPI ^~ | ckudia.c:6535:51: warning: use of logical '||' with constant operand [-Wconstant-logical-operand] mymdmtyp == n_SUPRA || mymdmtyp == n_SUPRAX || n_SUPRASON ^ ~~~~~~~~~~ ckudia.c:6535:51: note: use '|' for a bitwise operation mymdmtyp == n_SUPRA || mymdmtyp == n_SUPRAX || n_SUPRASON ^~ | ckudia.c:7092:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getok(n, strict) int n, strict; { ^ 12 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckuscr.c ckuscr.c:527:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dologin(cmdstr) char *cmdstr; { ^ 1 warning generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckcnet.c ckcnet.c:1685:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ck_linger(sock, onoff, timo) int sock; int onoff; int timo; { ^ ckcnet.c:1811:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sendbuf(sock,size) int sock; int size; { ^ ckcnet.c:1907:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] recvbuf(sock,size) int sock; int size; { ^ ckcnet.c:1999:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] keepalive(sock,onoff) int sock; int onoff; { ^ ckcnet.c:2121:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dontroute(sock,onoff) int sock; int onoff; { ^ ckcnet.c:2239:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] no_delay(sock,onoff) int sock; int onoff; { ^ ckcnet.c:2608:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tcpsrv_open(name,lcl,nett,timo) char * name; int * lcl; int nett; int timo; { ^ ckcnet.c:2972:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (host = gethostbyaddr((char *)&saddr.sin_addr,4,PF_INET)) { ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ckcnet.c:2972:22: note: place parentheses around the assignment to silence this warning if (host = gethostbyaddr((char *)&saddr.sin_addr,4,PF_INET)) { ^ ( ) ckcnet.c:2972:22: note: use '==' to turn this assignment into an equality comparison if (host = gethostbyaddr((char *)&saddr.sin_addr,4,PF_INET)) { ^ == ckcnet.c:3114:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckname2addr(name) char * name; ^ ckcnet.c:3134:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckaddr2name(addr) char * addr; ^ ckcnet.c:3428:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ckgetservice(hostname, servicename, ip, iplen) ^ ckcnet.c:3535:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] netopen(name, lcl, nett) char *name; int *lcl, nett; { ^ ckcnet.c:4906:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (host = gethostbyaddr((char *)&r_addr.sin_addr,4,PF_INET)) { ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ckcnet.c:4906:18: note: place parentheses around the assignment to silence this warning if (host = gethostbyaddr((char *)&r_addr.sin_addr,4,PF_INET)) { ^ ( ) ckcnet.c:4906:18: note: use '==' to turn this assignment into an equality comparison if (host = gethostbyaddr((char *)&r_addr.sin_addr,4,PF_INET)) { ^ == ckcnet.c:5798:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nettout(i) int i; { /* Catch the alarm interrupts */ ^ ckcnet.c:5851:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] netxin(n,buf) int n; CHAR * buf; { ^ ckcnet.c:5962:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] netinc(timo) int timo; { ^ ckcnet.c:6326:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] nettol(s,n) CHAR *s; int n; { ^ ckcnet.c:7027:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getlocalipaddrs(buf,bufsz,index) ^ ckcnet.c:7430:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rlog_ctrl(cp, n) ^ ckcnet.c:7448:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rlog_oob(oobdata, count) CHAR * oobdata; int count; { ^ ckcnet.c:7498:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rlogoobh(sig) int sig; { ^ ckcnet.c:10790:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] if (host = gethostbyaddr((char *)&r_addr.sin_addr,4,PF_INET)) { ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ckcnet.c:10790:18: note: place parentheses around the assignment to silence this warning if (host = gethostbyaddr((char *)&r_addr.sin_addr,4,PF_INET)) { ^ ( ) ckcnet.c:10790:18: note: use '==' to turn this assignment into an equality comparison if (host = gethostbyaddr((char *)&r_addr.sin_addr,4,PF_INET)) { ^ == ckcnet.c:10933:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] http_tol(s,n) CHAR *s; int n; { ^ ckcnet.c:11116:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] http_inc(timo) int timo; { ^ ckcnet.c:13330:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] locate_srv_dns(host, service, protocol, addr_pp, naddrs) ^ ckcnet.c:13599:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] locate_txt_rr(prefix, name, retstr) ^ 26 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckctel.c ckctel.c:263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tn_outst(notquiet) int notquiet; { ^ ckctel.c:722:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tn_sopt(cmd,opt) int cmd, opt; { /* TELNET SEND OPTION */ ^ ckctel.c:804:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tn_ssbopt(opt,sub,data,len) int opt, sub; CHAR * data; int len; { ^ ckctel.c:3379:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tn_debug(s) char *s; { ^ ckctel.c:3453:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tn_siks(cmd) int cmd; { /* TELNET SEND IKS SUB */ ^ 5 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckusig.c cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckcuni.c ckcuni.c:8272:11: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] if (c && 0xff80) /* 7 bits */ ^ ~~~~~~ ckcuni.c:8272:11: note: use '&' for a bitwise operation if (c && 0xff80) /* 7 bits */ ^~ & ckcuni.c:8272:11: note: remove constant to silence this warning if (c && 0xff80) /* 7 bits */ ~^~~~~~~~~ 1 warning generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckupty.c ckupty.c:422:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_termbuf(fd) int fd; { ^ ckupty.c:474:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] copy_termbuf(cp, len) char *cp; int len; { ^ ckupty.c:483:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] set_termbuf(fd) int fd; { /* Only make the necessary changes. */ ^ ckupty.c:592:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pty_cleanup(slave, pid, update_utmp) char *slave; int pid; int update_utmp; { ^ ckupty.c:686:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pty_getpty(fd, slave, slavelength) int slavelength; int *fd; char *slave; { ^ ckupty.c:705:9: warning: call to undeclared function 'openpty'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (openpty(fd, ^ ckupty.c:890:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pty_initialize_slave (fd) int fd; { ^ ckupty.c:1014:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pty_open_ctty(slave, fd, fc) char * slave; int *fd; int fc; { ^ ckupty.c:1085:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] pty_open_slave(slave, fd, fc) char *slave; int *fd; int fc; { ^ ckupty.c:1533:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getptyslave(fd, fc) int * fd, fc; { ^ ckupty.c:1806:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] exec_cmd(s) char * s; { ^ ckupty.c:1848:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_pty(fd, cmd, fc) int * fd; char * cmd; int fc; { ^ 12 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckcftp.c ckcftp.c:1984:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] strval(s1,s2) char * s1, * s2; { ^ ckcftp.c:2034:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] bytswap(c0,c1) int * c0, * c1; { ^ ckcftp.c:2578:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftscreen(n, c, z, s) int n; char c; CK_OFF_T z; char * s; { ^ ckcftp.c:2880:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] openftp(s,opn_tls) char * s; int opn_tls; { ^ ckcftp.c:3131:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doftpglobaltype(x) int x; { ^ ckcftp.c:3204:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doftptyp(type) int type; { /* TYPE */ ^ ckcftp.c:3213:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doftpxmkd(s,vbm) char * s; int vbm; { /* MKDIR action */ ^ ckcftp.c:3322:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doftpdir(cx) int cx; { /* [V]DIRECTORY */ ^ ckcftp.c:3421:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doftpcwd(s,vbm) char * s; int vbm; { /* CD (CWD) */ ^ ckcftp.c:3475:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] syncdir(local,sim) char * local; int sim; { ^ ckcftp.c:3658:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dbtime(s,xx) char * s; struct tm * xx; { /* Write struct tm to debug log */ ^ ckcftp.c:3676:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tmcompare(xx,yy) struct tm * xx, * yy; { ^ ckcftp.c:3900:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] chkmodtime(local,remote,fc) char * local, * remote; int fc; { ^ ckcftp.c:4050:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getfile(remote,local,recover,append,pipename,xlate,fcs,rcs) ^ ckcftp.c:4473:13: warning: add explicit braces to avoid dangling else [-Wdangling-else] else ^ ckcftp.c:4471:13: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (rc == SKP_SIM) ^ ckcftp.c:4469:13: warning: add explicit braces to avoid dangling else [-Wdangling-else] else if (rc == SKP_XUP) ^ ckcftp.c:4224:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putfile(cx, ^ ckcftp.c:4661:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ispathsep(c) int c; { ^ ckcftp.c:4714:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] check_data_connection(fd,fc) int fd, fc; { ^ ckcftp.c:4796:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmdlinput(stay) int stay; { ^ ckcftp.c:6158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmdlinget(stay) int stay; { ^ ckcftp.c:6536:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doftpget(cx,who) int cx, who; { /* who == 1 for ftp, 0 for kermit */ ^ ckcftp.c:8119:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] doftprmt(cx,who) int cx, who; { /* who == 1 for ftp, 0 for kermit */ ^ ckcftp.c:8615:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shopl(x) int x; { ^ ckcftp.c:8626:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] shoftp(brief) int brief; { ^ ckcftp.c:9755:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftpcmd(cmd,arg,lcs,rcs,vbm) char * cmd, * arg; int lcs, rcs, vbm; { ^ ckcftp.c:10047:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftpopen(remote, service, use_tls) char * remote, * service; int use_tls; { ^ ckcftp.c:10462:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cmdcancel(sig) int sig; { ^ ckcftp.c:10684:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xlatec(fc,c,incs,outcs) int fc, c, incs, outcs; { ^ ckcftp.c:10772:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parsefeat(s) char * s; { /* Parse a FEATURE response */ ^ ckcftp.c:10817:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] parsefacts(s) char * s; { /* Parse MLS[DT] File Facts */ ^ ckcftp.c:10878:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getreply(expecteof,lcs,rcs,vbm,fc) int expecteof, lcs, rcs, vbm, fc; { ^ ckcftp.c:11182:13: warning: add explicit braces to avoid dangling else [-Wdangling-else] } else safe = (ftpcode == 631); ^ ckcftp.c:11343: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] (*oldintr)(SIGINT); ^ ckcftp.c:11393:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cancelsend(sig) int sig; { ^ ckcftp.c:11435:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] changetype(newtype, show) int newtype, show; { ^ ckcftp.c:11623:21: 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] (*ftpsnd.oldintr)(SIGINT); ^ ckcftp.c:11715:21: 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] (*ftpsnd.oldintr)(SIGINT); ^ ckcftp.c:12041:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sendrequest(cmd, local, remote, xlate, incs, outcs, restart) ^ ckcftp.c:12144:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cancelrecv(sig) int sig; { ^ ckcftp.c:12259:22: 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] (*ftprecv.oldintr)(SIGINT); ^ ckcftp.c:12439:22: 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] (*ftprecv.oldintr)(SIGINT); ^ ckcftp.c:12553:38: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion] xx.typ = 0; xx.os_specific = NUL; xx.lblopts = 0; ^~~ ./ckcasc.h:17:14: note: expanded from macro 'NUL' #define NUL '\0' /* Null Ctrl-@*/ ^~~~ ckcftp.c:12877:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] recvrequest(cmd, local, remote, lmode, printnames, recover, pipename, ^ ckcftp.c:13446:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dataconn(lmode) char *lmode; { ^ ckcftp.c:14337:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cancel_remote(din) int din; { ^ ckcftp.c:14498:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fts_dpl(x) int x; { ^ ckcftp.c:14538:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fts_cpl(x) int x; { ^ ckcftp.c:14628:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftp_hookup(host, port, tls) char * host; int port; int tls; { ^ ckcftp.c:15039:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftp_login(host) char * host; { /* (also called from ckuusy.c) */ ^ ckcftp.c:15240:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftp_rename(from, to) char * from, * to; { ^ ckcftp.c:15257:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftp_umask(mask) char * mask; { ^ ckcftp.c:15264:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftp_user(user,pass,acct) char * user, * pass, * acct; { ^ ckcftp.c:15818:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] looping_write(fd, buf, len) ^ ckcftp.c:15841:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] looping_read(fd, buf, len) ^ ckcftp.c:15896:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] secure_flush(fd) int fd; { ^ ckcftp.c:16201:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] secure_getbyte(fd,fc) int fd,fc; { ^ ckcftp.c:16410:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] secure_getc(fd,fc) int fd,fc; { /* file descriptor, function code */ ^ ckcftp.c:16460:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] secure_read(fd, buf, nbyte) int fd; char *buf; int nbyte; { ^ ckcftp.c:16723:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] radix_encode(inbuf, outbuf, inlen, outlen, decode) ^ ckcftp.c:16793:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] radix_error(e) int e; ^ 62 warnings generated. cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ckuath.c cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ck_crp.c cc -O2 -pipe -DBSD44 -DCK_CURSES -DCK_NEWTERM -DTCPSOCKET -DOPENBSD -DUSE_UU_LOCK -DFNFLOAT -DUSE_STRERROR -DCKHTTP -DKTARGET=\"openbsd\" -c ck_ssl.c cc -o wermit ckcmai.o ckclib.o ckutio.o ckufio.o ckcfns.o ckcfn2.o ckcfn3.o ckuxla.o ckcpro.o ckucmd.o ckuus2.o ckuus3.o ckuus4.o ckuus5.o ckuus6.o ckuus7.o ckuusx.o ckuusy.o ckuusr.o ckucns.o ckudia.o ckuscr.o ckcnet.o ckusig.o ckctel.o ckcuni.o ckupty.o ckcftp.o ckuath.o ck_crp.o ck_ssl.o -lcurses -lutil -lm ckclib.c(ckclib.o:(ckltox)): warning: sprintf() is often misused, please use snprintf() ckclib.c(ckclib.o:(makelist)): warning: strcpy() is almost always misused, please use strlcpy() ckcfns.c(ckcfns.o:(getpkt)): warning: rand() may return deterministic values, is that what you want? ckutio.c(ckutio.o:(ckxfprintf)): warning: vsprintf() is often misused, please use vsnprintf() ckufio.c(ckufio.o:(zrename)): warning: strcat() is almost always misused, please use strlcat() >>> Running package in comms/kermit at 1713948550.09 ===> comms/kermit ===> Faking installation for kermit-9.0.302p0 /exopi-obj/pobj/kermit-9.0.302/bin/install -c -s -m 755 /exopi-obj/pobj/kermit-9.0.302/wermit /exopi-obj/pobj/kermit-9.0.302/fake-amd64/usr/local/bin/kermit /exopi-obj/pobj/kermit-9.0.302/bin/install -c -m 644 /exopi-obj/pobj/kermit-9.0.302/ckuker.nr /exopi-obj/pobj/kermit-9.0.302/fake-amd64/usr/local/man/man1/kermit.1 /exopi-obj/pobj/kermit-9.0.302/bin/install -d -m 755 /exopi-obj/pobj/kermit-9.0.302/fake-amd64/usr/local/share/doc/kermit for file in COPYING.TXT ckaaaa.txt ckcbwr.txt ckc302.txt ckccfg.txt ckcplm.txt ckermit70.txt ckermit80.txt ckermit90.txt ckubwr.txt ckuins.txt ckututor.txt; do /exopi-obj/pobj/kermit-9.0.302/bin/install -c -m 644 /exopi-obj/pobj/kermit-9.0.302/$file /exopi-obj/pobj/kermit-9.0.302/fake-amd64/usr/local/share/doc/kermit; done /exopi-obj/pobj/kermit-9.0.302/bin/install -d -m 755 /exopi-obj/pobj/kermit-9.0.302/fake-amd64/usr/local/share/examples/kermit /exopi-obj/pobj/kermit-9.0.302/bin/install -c -m 644 /exopi-obj/pobj/kermit-9.0.302/ockermit.ini /exopi-obj/pobj/kermit-9.0.302/fake-amd64/usr/local/share/examples/kermit/dot.kermrc /exopi-obj/pobj/kermit-9.0.302/bin/install -c -m 644 /exopi-obj/pobj/kermit-9.0.302/ockermod.ini /exopi-obj/pobj/kermit-9.0.302/fake-amd64/usr/local/share/examples/kermit/dot.mykermrc ===> Building package for kermit-9.0.302p0 Create /exopi-cvs/ports/packages/amd64/all/kermit-9.0.302p0.tgz Creating package kermit-9.0.302p0 reading plist| checking dependencies| checksumming| checksumming| | 0% checksumming|** | 3% checksumming|**** | 7% checksumming|****** | 10% checksumming|******** | 14% checksumming|*********** | 17% checksumming|************* | 21% checksumming|*************** | 24% checksumming|***************** | 28% checksumming|******************* | 31% checksumming|********************* | 34% checksumming|*********************** | 38% checksumming|************************* | 41% checksumming|*************************** | 45% checksumming|***************************** | 48% checksumming|******************************** | 52% checksumming|********************************** | 55% checksumming|************************************ | 59% checksumming|************************************** | 62% checksumming|**************************************** | 66% checksumming|****************************************** | 69% checksumming|******************************************** | 72% checksumming|********************************************** | 76% checksumming|************************************************ | 79% checksumming|************************************************** | 83% checksumming|***************************************************** | 86% checksumming|******************************************************* | 90% checksumming|********************************************************* | 93% checksumming|*********************************************************** | 97% checksumming|*************************************************************|100% archiving| archiving| | 0% archiving|************************* | 40% archiving|******************************** | 50% archiving|********************************* | 51% archiving|************************************** | 59% archiving|************************************** | 60% archiving|*************************************** | 62% archiving|***************************************** | 64% archiving|************************************************** | 79% archiving|******************************************************** | 88% archiving|********************************************************* | 90% archiving|************************************************************ | 95% archiving|*************************************************************** | 98% archiving|****************************************************************| 99% archiving|****************************************************************|100% Link to /exopi-cvs/ports/packages/amd64/ftp/kermit-9.0.302p0.tgz >>> Running clean in comms/kermit at 1713948555.37 ===> comms/kermit ===> Cleaning for kermit-9.0.302p0 >>> Ended at 1713948555.93 max_stuck=4.39/build=64.40/package=5.28/clean=0.58