=> Bootstrap dependency digest>=20211023: found digest-20211023 WARNING: [license.mk] Every package should define a LICENSE. ===> Skipping vulnerability checks. WARNING: No /usr/pkg/pkgdb/pkg-vulnerabilities file found. WARNING: To fix run: `/usr/sbin/pkg_admin -K /usr/pkg/pkgdb fetch-pkg-vulnerabilities'. ===> Building for dpbox-6.00.00nb3 gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c filesys.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_mem.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_send.c filesys.c: In function 'sfsetdatime': filesys.c:697:13: warning: pointer targets in passing argument 1 of 'utime' differ in signedness [-Wpointer-sign] if (utime((unsigned char *)name, &utim) >= 0) ^ In file included from filesys.c:27:0: /usr/include/utime.h:53:5: note: expected 'const char *' but argument is of type 'unsigned char *' int utime(const char *, const struct utimbuf *) __RENAME(__utime50); ^~~~~ filesys.c: In function 'fmv_x': filesys.c:891:24: warning: pointer targets in passing argument 2 of 'sfgetdatime' differ in signedness [-Wpointer-sign] sfgetdatime(filea, &ddate, &dtime); ^ filesys.c:678:7: note: expected 'short unsigned int *' but argument is of type 'short int *' short sfgetdatime(char *name, unsigned short *date, unsigned short *time) ^~~~~~~~~~~ filesys.c:891:32: warning: pointer targets in passing argument 3 of 'sfgetdatime' differ in signedness [-Wpointer-sign] sfgetdatime(filea, &ddate, &dtime); ^ filesys.c:678:7: note: expected 'short unsigned int *' but argument is of type 'short int *' short sfgetdatime(char *name, unsigned short *date, unsigned short *time) ^~~~~~~~~~~ filesys.c:969:24: warning: pointer targets in passing argument 2 of 'sfsetdatime' differ in signedness [-Wpointer-sign] sfsetdatime(fileb, &ddate, &dtime); ^ filesys.c:692:7: note: expected 'short unsigned int *' but argument is of type 'short int *' short sfsetdatime(char *name, unsigned short *date, unsigned short *time) ^~~~~~~~~~~ filesys.c:969:32: warning: pointer targets in passing argument 3 of 'sfsetdatime' differ in signedness [-Wpointer-sign] sfsetdatime(fileb, &ddate, &dtime); ^ filesys.c:692:7: note: expected 'short unsigned int *' but argument is of type 'short int *' short sfsetdatime(char *name, unsigned short *date, unsigned short *time) ^~~~~~~~~~~ box_send.c: In function 'send_file1': box_send.c:115:18: warning: pointer targets in passing argument 1 of 'crcthp_buf' differ in signedness [-Wpointer-sign] crcthp_buf(puffer, psize, &crc); ^~~~~~ In file included from box_send.c:15:0: crc.h:23:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void crcthp_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~ box_send.c:124:13: warning: pointer targets in passing argument 1 of 'crcthp_buf' differ in signedness [-Wpointer-sign] crcthp_buf(puffer, ct, &crc); ^~~~~~ In file included from box_send.c:15:0: crc.h:23:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void crcthp_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~ filesys.c: In function 'open_locked': filesys.c:1207:9: warning: variable 'Result' set but not used [-Wunused-but-set-variable] short Result, handle; ^~~~~~ box.c: In function 'read_brett': box.c:1530:53: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] if (header->infochecksum != 0) checksum16_buf(copybuf, bct, &ics); ^~~~~~~ In file included from box.c:25:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ box.c:1616:34: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] if (bcast) checksum16_buf(copybuf, bct, &bodychecksum); ^~~~~~~ In file included from box.c:25:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ box.c:1689:49: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] if (header->infochecksum != 0) checksum16_buf(rp, err, &ics); ^~ In file included from box.c:25:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ box.c:1808:21: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] checksum16_buf(rp, err, &bodychecksum); ^~ In file included from box.c:25:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ box.c:1179:47: warning: variable 'crawler' set but not used [-Wunused-but-set-variable] boolean is_binary, bcast, is_call, export, crawler, hidflag; ^~~~~~~ In file included from /usr/include/stdio.h:597:0, from pastrix.h:19, from main.h:10, from box.c:14: box.c: In function 'list_brett': box.c:2118:15: warning: format '%d' expects argument of type 'int', but argument 6 has type 'size_t {aka long unsigned int}' [-Wformat=] sprintf(hs, "%s-%d-%d", header.absender, strlen(header.betreff), pwm); ^ ~~~~~~~~~~~~~~~~~~~~~~ box.c: In function 'transfer': box.c:3795:24: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] checksum16_buf(copybuf, rs, &ics); ^~~~~~~ In file included from box.c:25:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ box.c:3826:24: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] checksum16_buf(hs, strlen(hs), &ics); ^~ In file included from box.c:25:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ box.c: In function 'export_brett': box.c:3980:11: warning: variable 'ok' set but not used [-Wunused-but-set-variable] boolean ok, sf; ^~ In file included from /usr/include/stdio.h:597:0, from pastrix.h:19, from box_send.h:5, from box_send.c:13: box_send.c:134:19: warning: '%s' directive writing up to 255 bytes into a region of size between 240 and 244 [-Wformat-overflow=] sprintf(hs, "#BIN#%ld#|%d#$%s%s#%s", ^ box_send.c:134:7: note: '__builtin___sprintf_chk' output 13 or more bytes (assuming 272) into a destination of size 256 sprintf(hs, "#BIN#%ld#|%d#$%s%s#%s", ^ box.c: In function 'set_reply_address': box.c:4573:15: warning: variable 'WITH' set but not used [-Wunused-but-set-variable] userstruct *WITH; ^~~~ In file included from box.c:22:0: box.c: In function 'set_selection': tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4776:9: note: in expansion of macro 'compare' if (compare(w, "SFWAIT")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4778:9: note: in expansion of macro 'compare' if (compare(w, "PROPOSED")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4780:9: note: in expansion of macro 'compare' if (compare(w, "SFRX")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4782:9: note: in expansion of macro 'compare' if (compare(w, "SFTX")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4784:9: note: in expansion of macro 'compare' if (compare(w, "SFERR")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4786:9: note: in expansion of macro 'compare' if (compare(w, "SFNOFOUND")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4788:9: note: in expansion of macro 'compare' if (compare(w, "CUT")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4790:9: note: in expansion of macro 'compare' if (compare(w, "MINE")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4792:9: note: in expansion of macro 'compare' if (compare(w, "BROADCAST")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4794:9: note: in expansion of macro 'compare' if (compare(w, "BROADCAST_RX")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4796:9: note: in expansion of macro 'compare' if (compare(w, "OWNHOLD")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4798:9: note: in expansion of macro 'compare' if (compare(w, "LOCALHOLD")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4800:9: note: in expansion of macro 'compare' if (compare(w, "SFHOLD")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4802:9: note: in expansion of macro 'compare' if (compare(w, "REJECTED")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4804:9: note: in expansion of macro 'compare' if (compare(w, "DOUBLE")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4806:9: note: in expansion of macro 'compare' if (compare(w, "OUTDATED")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4808:9: note: in expansion of macro 'compare' if (compare(w, "UNDEF")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:4810:9: note: in expansion of macro 'compare' if (compare(w, "HIDDEN") && WITH->supervisor) ^~~~~~~ box.c: In function 'may_invoke_xeditor': box.c:4910:16: warning: type of 'unr' defaults to 'int' [-Wimplicit-int] static boolean may_invoke_xeditor(unr) ^~~~~~~~~~~~~~~~~~ In file included from box.c:22:0: box.c: In function 'analyse_boxcommand': tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:5015:11: note: in expansion of macro 'compare' if (compare(w, "NEWS") || compare(w, "MESSAGES")) { ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:5015:33: note: in expansion of macro 'compare' if (compare(w, "NEWS") || compare(w, "MESSAGES")) { ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:5019:18: note: in expansion of macro 'compare' } else if (compare(w, "SENT")) { ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:5025:18: note: in expansion of macro 'compare' } else if (compare(w, "USERS")) { ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:5310:11: note: in expansion of macro 'compare' if (compare(w, "USERS")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:5312:16: note: in expansion of macro 'compare' else if (compare(w, "INFO")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:5314:16: note: in expansion of macro 'compare' else if (compare(w, "ALL")) { ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box.c:5325:18: note: in expansion of macro 'compare' } else if (compare(w, "LOST") /* && WITH->supervisor */ ) ^~~~~~~ In file included from /usr/include/stdio.h:597:0, from pastrix.h:19, from filesys.h:9, from filesys.c:11: filesys.c: In function 'sfdispfilelist': filesys.c:1135:15: warning: '%s' directive writing up to 255 bytes into a region of size between 226 and 244 [-Wformat-overflow=] sprintf(hs, "%3d %c %.2ld:%.2ld %s", hp->handle, c, t2 / 60, t2 % 60, hp->name); ^ filesys.c:1135:3: note: '__builtin___sprintf_chk' output between 13 and 286 bytes into a destination of size 256 sprintf(hs, "%3d %c %.2ld:%.2ld %s", hp->handle, c, t2 / 60, t2 % 60, hp->name); ^ filesys.c: In function 'chkopenfiles': filesys.c:1399:17: warning: ' timed out' directive writing 10 bytes into a region of size between 1 and 256 [-Wformat-overflow=] sprintf(hs, "%s timed out", hp->name); ^ filesys.c:1399:5: note: '__builtin___sprintf_chk' output between 11 and 266 bytes into a destination of size 256 sprintf(hs, "%s timed out", hp->name); ^ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_sf.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_sub.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_sys.c box_sf.c: In function 'boxmemspool1': box_sf.c:431:17: warning: pointer targets in passing argument 1 of 'checksum8_buf' differ in signedness [-Wpointer-sign] checksum8_buf(puffer, blen, chksum); ^~~~~~ In file included from box_sf.c:18:0: crc.h:28:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum8_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~ box_sf.c:438:14: warning: pointer targets in passing argument 1 of 'crcfbb_buf' differ in signedness [-Wpointer-sign] crcfbb_buf(puffer, blen, bcrc); ^~~~~~ In file included from box_sf.c:18:0: crc.h:24:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void crcfbb_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~ box_sf.c: In function 'send_pfbbram': box_sf.c:497:16: warning: pointer targets in passing argument 1 of 'crcfbb_buf' differ in signedness [-Wpointer-sign] crcfbb_buf(puffer, size, &sf_crc); ^~~~~~ In file included from box_sf.c:18:0: crc.h:24:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void crcfbb_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~ box_sf.c:511:16: warning: pointer targets in passing argument 1 of 'crcthp_buf' differ in signedness [-Wpointer-sign] crcthp_buf(puffer, size, &sf_crc); ^~~~~~ In file included from box_sf.c:18:0: crc.h:23:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void crcthp_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~ box_sub.c: In function 'create_hcs': box_sub.c:1665:18: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] checksum16_buf((char *)h, sizeof(indexstruct) - 4, &zs); /* Alignment des GNU-C */ ^ In file included from box_sub.c:49:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ box_sub.c: In function 'check_hcs': box_sub.c:1676:18: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] checksum16_buf((char *)(&h), sizeof(indexstruct) - 4, &zs); /* Alignment des GNU-C */ ^ In file included from box_sub.c:49:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ box_sub.c: In function 'strip_invalid_boardname_chars': box_sub.c:2777:9: warning: variable 'x' set but not used [-Wunused-but-set-variable] short x; ^ box_sf.c: In function 'add_bpacksf': box_sys.c: In function 'show_single_user': box_sf.c:3764:17: warning: pointer targets in passing argument 1 of 'crcfbb_buf' differ in signedness [-Wpointer-sign] crcfbb_buf(puffer, size, &WITH->binsfptr->crcsum); ^~~~~~ box_sys.c:645:7: warning: this 'else' clause does not guard... [-Wmisleading-indentation] else ^~~~ In file included from box_sf.c:18:0: crc.h:24:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void crcfbb_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~ box_sys.c:647:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' if (l > 0 && uf.maxread_day > 0) { ^~ In file included from box_sys.c:16:0: box_sys.c: In function 'show_user': tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box_sys.c:870:9: note: in expansion of macro 'compare' if (compare(call, "PATH")) show_u_path(unr); ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box_sys.c:871:9: note: in expansion of macro 'compare' if (compare(call, "ALL")) show_u_all(unr); ^~~~~~~ In file included from /usr/include/stdio.h:597:0, from pastrix.h:19, from box_sys.h:5, from box_sys.c:15: box_sys.c: In function 'set_password': box_sys.c:968:16: warning: format '%d' expects argument of type 'int', but argument 5 has type 'size_t {aka long unsigned int}' [-Wformat=] sprintf(w, "%d", strlen(ufil.password)); ^ ~~~~~~~~~~~~~~~~~~~~~ box_sf.c: In function 'put_data': box_sf.c:4082:21: warning: pointer targets in passing argument 1 of 'checksum8_buf' differ in signedness [-Wpointer-sign] checksum8_buf(buff, hsize, &WITH->checksum); ^~~~ In file included from box_sf.c:18:0: crc.h:28:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum8_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~ box_sf.c:4087:21: warning: pointer targets in passing argument 1 of 'checksum8_buf' differ in signedness [-Wpointer-sign] checksum8_buf(buff, hsize, &WITH->checksum); ^~~~ In file included from box_sf.c:18:0: crc.h:28:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum8_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~ box_sf.c:4088:18: warning: pointer targets in passing argument 1 of 'crcfbb_buf' differ in signedness [-Wpointer-sign] crcfbb_buf(buff, hsize, &WITH->blockcrc); ^~~~ In file included from box_sf.c:18:0: crc.h:24:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void crcfbb_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~ box_sf.c:4095:18: warning: pointer targets in passing argument 1 of 'crcthp_buf' differ in signedness [-Wpointer-sign] crcthp_buf(buff, hsize, &WITH->crcsum); ^~~~ In file included from box_sf.c:18:0: crc.h:23:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void crcthp_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~ box_sys.c: In function 'change_readlock': box_sys.c:1250:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (!strcmp(user[x]->call, ufil.call)) ^~ box_sys.c:1252:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' user[x]->login_priv = ufil.login_priv; ^~~~ In file included from box_sub.c:51:0: box_sub.c: In function 'check_for_conv_command': tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box_sub.c:4439:7: note: in expansion of macro 'compare' if (compare(w, "/HELP")) { ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box_sub.c:4443:7: note: in expansion of macro 'compare' if (compare(w, "/WHO")) { ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box_sub.c:4447:7: note: in expansion of macro 'compare' if (compare(w, "/QUIT")) { ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box_sub.c:4451:7: note: in expansion of macro 'compare' if (compare(w, "/EXIT")) { ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ box_sub.c:4455:8: note: in expansion of macro 'compare' if (!compare(w, "/CHANNEL")) ^~~~~~~ box_sys.c: In function 'stelle_uhr': box_sys.c:2341:15: warning: variable 's' set but not used [-Wunused-but-set-variable] short h, m, s; ^ box_sys.c:2341:12: warning: variable 'm' set but not used [-Wunused-but-set-variable] short h, m, s; ^ box_sys.c:2341:9: warning: variable 'h' set but not used [-Wunused-but-set-variable] short h, m, s; ^ box_sub.c: In function 'send_new_unproto_header': box_sub.c:196:10: warning: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Wstrict-overflow] if (header.msgnum > hp->CurrentSendPos + 1) { ^ box_sf.c: In function 'propose_sf_sending': box_sf.c:1787:17: warning: 'ct' may be used uninitialized in this function [-Wmaybe-uninitialized] WITH3->r_nr = ct; ~~~~~~~~~~~~^~~~ In file included from /usr/include/stdio.h:597:0, from pastrix.h:19, from box_sys.h:5, from box_sys.c:15: box_sys.c: In function 'show_ext_command_result': box_sys.c:2195:19: warning: ' -A' directive writing 3 bytes into a region of size between 1 and 256 [-Wformat-overflow=] sprintf(STR1, "%s -A", WITH->wait_file); ^ box_sys.c:2195:5: note: '__builtin___sprintf_chk' output between 4 and 259 bytes into a destination of size 256 sprintf(STR1, "%s -A", WITH->wait_file); ^ box_sys.c:2207:19: warning: ' -F' directive writing 3 bytes into a region of size between 1 and 256 [-Wformat-overflow=] sprintf(STR1, "%s -F", WITH->wait_file); ^ box_sys.c:2207:5: note: '__builtin___sprintf_chk' output between 4 and 259 bytes into a destination of size 256 sprintf(STR1, "%s -F", WITH->wait_file); ^ box_sys.c:2234:21: warning: ' -Y' directive writing 3 bytes into a region of size between 1 and 256 [-Wformat-overflow=] sprintf(STR1, "%s -Y", WITH->wait_file); ^ box_sys.c:2234:7: note: '__builtin___sprintf_chk' output between 4 and 259 bytes into a destination of size 256 sprintf(STR1, "%s -Y", WITH->wait_file); ^ In file included from /usr/include/stdio.h:597:0, from pastrix.h:19, from main.h:10, from box.c:14: box.c:4098:25: warning: '%s' directive output may be truncated writing up to 80 bytes into a region of size 76 [-Wformat-truncation=] snprintf(subject, 79, "RE:%s", header->betreff); ^ ~ box.c:4098:3: note: '__builtin_snprintf' output between 4 and 84 bytes into a destination of size 79 snprintf(subject, 79, "RE:%s", header->betreff); ^ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c boxdbox.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c boxbcm.c boxbcm.c: In function 'convert_sfw': boxbcm.c:483:11: warning: variable 'ok' set but not used [-Wunused-but-set-variable] boolean ok, firstline; ^~ In file included from /usr/include/stdio.h:597:0, from pastrix.h:19, from main.h:10, from box_sf.c:14: box_sf.c: In function 'set_packsf': box_sf.c:3620:17: warning: '%s' directive writing up to 255 bytes into a region of size 250 [-Wformat-overflow=] sprintf(STR1, "%sBOXSF%c%s", tempdir, extsep, WITH1->wname); ^ box_sf.c:3620:3: note: '__builtin___sprintf_chk' output 7 or more bytes (assuming 262) into a destination of size 256 sprintf(STR1, "%sBOXSF%c%s", tempdir, extsep, WITH1->wname); ^ In file included from /usr/include/stdio.h:597:0, from pastrix.h:19, from main.h:10, from boxdbox.c:13: boxdbox.c: In function 'conv3': boxdbox.c:519:17: warning: '%s' directive writing up to 255 bytes into a region of size 248 [-Wformat-overflow=] sprintf(STR7, "opening %s ...", sfw); ^ boxdbox.c:519:3: note: '__builtin___sprintf_chk' output between 13 and 268 bytes into a destination of size 256 sprintf(STR7, "opening %s ...", sfw); ^ boxdbox.c: In function 'conv1': boxdbox.c:1244:19: warning: '%s' directive writing up to 255 bytes into a region of size 252 [-Wformat-overflow=] sprintf(STR7, "%spwd%c%s", w, dirsep, dirinfo.d_fname); ^ ~ boxdbox.c:1244:5: note: '__builtin___sprintf_chk' output 5 or more bytes (assuming 260) into a destination of size 256 sprintf(STR7, "%spwd%c%s", w, dirsep, dirinfo.d_fname); ^ In file included from /usr/include/stdio.h:597:0, from pastrix.h:19, from main.h:10, from boxbcm.c:13: boxbcm.c: In function 'convert_diebox_mails.constprop': boxbcm.c:219:21: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf(STR7, "%s%c%s", hs, dirsep, dirinfo.d_fname); ^ boxbcm.c:219:7: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 sprintf(STR7, "%s%c%s", hs, dirsep, dirinfo.d_fname); ^ boxbcm.c:238:21: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf(STR7, "%s%c%s", hs, dirsep, dirinfo.d_fname); ^ boxbcm.c:238:7: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 sprintf(STR7, "%s%c%s", hs, dirsep, dirinfo.d_fname); ^ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_tim.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c boxglobl.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c boxlocal.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_inou.c box_inou.c: In function 'x_Vwuser': box_inou.c:272:40: warning: comparison between pointer and zero character constant [-Wpointer-compare] immediate_extcheck = WITH->spath != '\0'; ^~ box_inou.c:272:28: note: did you mean to dereference the pointer? immediate_extcheck = WITH->spath != '\0'; ^ box_inou.c: In function 'chwuser': box_inou.c:349:40: warning: comparison between pointer and zero character constant [-Wpointer-compare] immediate_extcheck = WITH->spath != '\0'; ^~ box_inou.c:349:28: note: did you mean to dereference the pointer? immediate_extcheck = WITH->spath != '\0'; ^ box_sf.c: In function 'analyse_sf_command': box_sf.c:6423:17: warning: '%.*s' directive writing up to 2147483647 bytes into a region of size between 0 and 255 [-Wformat-overflow=] sprintf(STR13, "%s %.*s", WITH->lastcmd, (int)(254 - strlen(WITH->lastcmd)), eingabe); ^ box_sf.c:6423:17: note: assuming directive output of 1 byte box_sf.c:6423:2: note: '__builtin___sprintf_chk' output between 2 and 2147483904 bytes into a destination of size 256 sprintf(STR13, "%s %.*s", WITH->lastcmd, (int)(254 - strlen(WITH->lastcmd)), eingabe); ^ In file included from /usr/include/stdio.h:597:0, from pastrix.h:19, from box_inou.h:5, from box_inou.c:13: box_inou.c: In function 'box_get_next_input': box_inou.c:691:20: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf(STR1, "!%s", WITH->inputroot->line); ^ box_inou.c:691:6: note: '__builtin___sprintf_chk' output between 2 and 257 bytes into a destination of size 256 sprintf(STR1, "!%s", WITH->inputroot->line); ^ box_inou.c: In function 'clear_immediately_input': box_inou.c:786:16: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf(STR1, "!%s", WITH->inputroot->line); ^ box_inou.c:786:2: note: '__builtin___sprintf_chk' output between 2 and 257 bytes into a destination of size 256 sprintf(STR1, "!%s", WITH->inputroot->line); ^ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_serv.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c boxbcast.c box_inou.c: In function 'melde_user_ab': box_inou.c:1371:16: warning: '%s' directive writing up to 255 bytes into a region of size 250 [-Wformat-overflow=] sprintf(STR7, "board-%s", WITH->lastcmd); ^ box_inou.c:1371:2: note: '__builtin___sprintf_chk' output between 7 and 262 bytes into a destination of size 256 sprintf(STR7, "board-%s", WITH->lastcmd); ^ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c boxfserv.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c yapp.c In file included from boxfserv.c:22:0: boxfserv.c: In function 'analyse_smode_command': tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:863:9: note: in expansion of macro 'compare' if (compare(w, "HELP") || compare(w, "? ")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:863:31: note: in expansion of macro 'compare' if (compare(w, "HELP") || compare(w, "? ")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:865:14: note: in expansion of macro 'compare' else if (compare(w, "TYPE")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:867:14: note: in expansion of macro 'compare' else if (compare(w, "CAT") || compare(w, "GET") || compare(w, "READ")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:867:35: note: in expansion of macro 'compare' else if (compare(w, "CAT") || compare(w, "GET") || compare(w, "READ")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:867:56: note: in expansion of macro 'compare' else if (compare(w, "CAT") || compare(w, "GET") || compare(w, "READ")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:869:14: note: in expansion of macro 'compare' else if (compare(w, "BGET")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:871:14: note: in expansion of macro 'compare' else if (compare(w, "YGET")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:873:14: note: in expansion of macro 'compare' else if (compare(w, "CD")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:875:14: note: in expansion of macro 'compare' else if (compare(w, "CD..")) /*typische Fehleingabe*/ ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:877:14: note: in expansion of macro 'compare' else if (compare(w, "LIST")) { ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:881:16: note: in expansion of macro 'compare' } else if (compare(w, "LS")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:883:14: note: in expansion of macro 'compare' else if (compare(w, "DIR")) { ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:887:16: note: in expansion of macro 'compare' } else if (compare(w, "PUT") || compare(w, "WRITE")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:887:37: note: in expansion of macro 'compare' } else if (compare(w, "PUT") || compare(w, "WRITE")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:889:14: note: in expansion of macro 'compare' else if (compare(w, "BPUT")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:891:14: note: in expansion of macro 'compare' else if (compare(w, "YPUT")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:894:11: note: in expansion of macro 'compare' if (compare(w, "MKDIR") || compare(w, "MD")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:894:34: note: in expansion of macro 'compare' if (compare(w, "MKDIR") || compare(w, "MD")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:896:16: note: in expansion of macro 'compare' else if (compare(w, "DEL") || compare(w, "RM") || compare(w, "ERASE")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:896:37: note: in expansion of macro 'compare' else if (compare(w, "DEL") || compare(w, "RM") || compare(w, "ERASE")) ^~~~~~~ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c crc.c tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:896:57: note: in expansion of macro 'compare' else if (compare(w, "DEL") || compare(w, "RM") || compare(w, "ERASE")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:898:16: note: in expansion of macro 'compare' else if (compare(w, "RMDIR") || compare(w, "RD")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:898:39: note: in expansion of macro 'compare' else if (compare(w, "RMDIR") || compare(w, "RD")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:900:16: note: in expansion of macro 'compare' else if (compare(w, "CP") || compare(w, "COPY")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:900:36: note: in expansion of macro 'compare' else if (compare(w, "CP") || compare(w, "COPY")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:902:16: note: in expansion of macro 'compare' else if (compare(w, "MV") || compare(w, "MOVE")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:902:36: note: in expansion of macro 'compare' else if (compare(w, "MV") || compare(w, "MOVE")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:904:16: note: in expansion of macro 'compare' else if (compare(w, "INDEX")) ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:906:16: note: in expansion of macro 'compare' else if (compare(w, "EXIT") || compare(w, "QUIT") || compare(w, "BYE")) { ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:906:38: note: in expansion of macro 'compare' else if (compare(w, "EXIT") || compare(w, "QUIT") || compare(w, "BYE")) { ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:906:60: note: in expansion of macro 'compare' else if (compare(w, "EXIT") || compare(w, "QUIT") || compare(w, "BYE")) { ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:929:16: note: in expansion of macro 'compare' } else if (compare(w, "EXIT") || compare(w, "QUIT") || compare(w, "BYE")) { ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:929:38: note: in expansion of macro 'compare' } else if (compare(w, "EXIT") || compare(w, "QUIT") || compare(w, "BYE")) { ^~~~~~~ tools.h:113:48: warning: comparison with string literal results in unspecified behavior [-Waddress] #define compare(w, cmd) (*w && (strstr(cmd, w) == cmd)) ^ boxfserv.c:929:60: note: in expansion of macro 'compare' } else if (compare(w, "EXIT") || compare(w, "QUIT") || compare(w, "BYE")) { ^~~~~~~ In file included from /usr/include/stdio.h:597:0, from pastrix.h:19, from boxfserv.h:5, from boxfserv.c:16: boxfserv.c: In function 'clean_incoming': boxfserv.c:1053:29: warning: '__builtin_snprintf' output may be truncated before the last format character [-Wformat-truncation=] snprintf(STR7, LEN_PATH, "%s%s", hs, dirinfo.d_fname); ^ boxfserv.c:1053:4: note: '__builtin_snprintf' output 1 or more bytes (assuming 256) into a destination of size 255 snprintf(STR7, LEN_PATH, "%s%s", hs, dirinfo.d_fname); ^ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c huffman.c In file included from /usr/include/stdio.h:597:0, from pastrix.h:19, from yapp.h:5, from yapp.c:29: yapp.c: In function 'yapp_download_data': yapp.c:289:18: warning: '%s' directive writing up to 255 bytes into a region of size 241 [-Wformat-overflow=] sprintf(STR1, "Unable to open %s", yapp->fname); ^ yapp.c:289:4: note: '__builtin___sprintf_chk' output between 16 and 271 bytes into a destination of size 256 sprintf(STR1, "Unable to open %s", yapp->fname); ^ boxfserv.c: In function 'clean_expanded_path': boxfserv.c:1100:30: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 254 [-Wformat-truncation=] snprintf(w, LEN_PATH, "%s%c%s", hs, dirsep, dirinfo.d_fname); ^ ~ boxfserv.c:1100:8: note: '__builtin_snprintf' output 2 or more bytes (assuming 257) into a destination of size 255 snprintf(w, LEN_PATH, "%s%c%s", hs, dirsep, dirinfo.d_fname); ^ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c pastrix.c boxfserv.c: In function 'change_spath': boxfserv.c:804:19: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf(STR1, "/%s", WITH->spath); ^ boxfserv.c:804:5: note: '__builtin___sprintf_chk' output between 2 and 257 bytes into a destination of size 256 sprintf(STR1, "/%s", WITH->spath); ^ boxfserv.c:818:17: warning: ': ' directive writing 2 bytes into a region of size between 1 and 256 [-Wformat-overflow=] sprintf(newp, "%s: %s", WITH->spath, strcpy(STR1, newp)); ^ pastrix.c: In function 'upper': boxfserv.c:818:3: note: '__builtin___sprintf_chk' output 3 or more bytes (assuming 258) into a destination of size 256 sprintf(newp, "%s: %s", WITH->spath, strcpy(STR1, newp)); ^ pastrix.c:586:13: warning: operation on 's' may be undefined [-Wsequence-point] while ((*s++ = upcase_(*s))); ~^~ pastrix.c: In function 'lower': pastrix.c:596:13: warning: operation on 's' may be undefined [-Wsequence-point] while ((*s++ = lowcase(*s))); ~^~ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c sort.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_file.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c tools.c tools.c: In function 'file_crc': tools.c:1079:13: warning: pointer targets in passing argument 1 of 'crcfcs_buf' differ in signedness [-Wpointer-sign] crcfcs_buf(buf, cstep, &crc); ^~~ In file included from tools.c:19:0: crc.h:22:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void crcfcs_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~ tools.c:1083:13: warning: pointer targets in passing argument 1 of 'crc_16_buf' differ in signedness [-Wpointer-sign] crc_16_buf(buf, cstep, &crc); ^~~ In file included from tools.c:19:0: crc.h:21:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void crc_16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~ tools.c:1087:13: warning: pointer targets in passing argument 1 of 'crcthp_buf' differ in signedness [-Wpointer-sign] crcthp_buf(buf, cstep, &crc); ^~~ In file included from tools.c:19:0: crc.h:23:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void crcthp_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~ tools.c:1091:13: warning: pointer targets in passing argument 1 of 'crcfbb_buf' differ in signedness [-Wpointer-sign] crcfbb_buf(buf, cstep, &crc); ^~~ In file included from tools.c:19:0: crc.h:24:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void crcfbb_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~ tools.c:1095:16: warning: pointer targets in passing argument 1 of 'checksum8_buf' differ in signedness [-Wpointer-sign] checksum8_buf(buf, cstep, &crc); ^~~ In file included from tools.c:19:0: crc.h:28:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum8_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~ tools.c:1099:17: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] checksum16_buf(buf, cstep, &crc); ^~~ In file included from tools.c:19:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ tools.c: In function 'calc_MD5_pw': tools.c:2149:25: warning: pointer targets in passing argument 2 of 'MD5Update' differ in signedness [-Wpointer-sign] MD5Update(&context, (char *)(&buff[i]), n); ^ In file included from tools.c:25:0: md2md5.h:21:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void MD5Update(MD5_CTX *context, unsigned char *input, unsigned int inputLen); ^~~~~~~~~ tools.c:2152:12: warning: pointer targets in passing argument 1 of 'MD5Final' differ in signedness [-Wpointer-sign] MD5Final(digest, &context); ^~~~~~ In file included from tools.c:25:0: md2md5.h:22:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void MD5Final(unsigned char digest[16], MD5_CTX *context); ^~~~~~~~ box_file.c: In function 'new_entry': box_file.c:3037:23: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] checksum16_buf(hs, strlen(hs), &ics); ^~ In file included from box_file.c:18:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ box_file.c:3062:20: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] checksum16_buf(puffer, bct, &ics); ^~~~~~ In file included from box_file.c:18:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ box_file.c:3084:23: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] checksum16_buf(puffer, header.packsize, &ics); ^~~~~~ In file included from box_file.c:18:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ box_file.c:2491:30: warning: variable 'lesezeiger1' set but not used [-Wunused-but-set-variable] long chargedate, txdate1, lesezeiger1; ^~~~~~~~~~~ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c status.c status.c: In function 'get_status': status.c:374:11: warning: variable 'owner' set but not used [-Wunused-but-set-variable] boolean owner; ^~~~~ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c shell.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c init.c In file included from /usr/include/stdio.h:597:0, from pastrix.h:19, from tools.h:5, from tools.c:16: tools.c: In function 'filecp': tools.c:966:14: warning: '__builtin___sprintf_chk' may write a terminating nul past the end of the destination [-Wformat-overflow=] sprintf(fb, "%s%c%s", fx, dirsep, dirinfo.d_fname); ^ tools.c:966:2: note: '__builtin___sprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 256 sprintf(fb, "%s%c%s", fx, dirsep, dirinfo.d_fname); ^ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c linpack.c linpack.c: In function 'linpack': linpack.c:85:13: warning: variable 'residn' set but not used [-Wunused-but-set-variable] REAL resid,residn,eps,t1,tm,tm2; ^~~~~~ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c main.c main.c: In function 'calc_usernr': main.c:282:7: warning: type of 'console' defaults to 'int' [-Wimplicit-int] short calc_usernr(console,channel) ^~~~~~~~~~~ main.c:282:7: warning: type of 'channel' defaults to 'int' [-Wimplicit-int] main.c: In function 'abin_rcv': main.c:342:16: warning: pointer targets in passing argument 1 of 'crcthp_buf' differ in signedness [-Wpointer-sign] crcthp_buf(bufptr,wrklen,&(iface_user[usernr].data->crc_tmp)); ^~~~~~ In file included from main.c:60:0: crc.h:23:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void crcthp_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~ tools.c: In function 'file_dir': tools.c:757:17: warning: '%s' directive writing up to 255 bytes into a region of size 254 [-Wformat-overflow=] sprintf(s, "?/%s", dirinfo.d_fname); ^ ~ tools.c:757:6: note: '__builtin___sprintf_chk' output between 3 and 258 bytes into a destination of size 256 sprintf(s, "?/%s", dirinfo.d_fname); ^ main.c: In function 'main': main.c:3058:63: warning: pointer targets in passing argument 3 of 'accept' differ in signedness [-Wpointer-sign] newsockfd = accept(sockfd,(struct sockaddr *) &cli_addr,&clilen); ^ In file included from main.c:44:0: /usr/include/sys/socket.h:620:5: note: expected '__socklen_t * restrict {aka unsigned int * restrict}' but argument is of type 'int *' int accept(int, struct sockaddr * __restrict, socklen_t * __restrict); ^~~~~~ In file included from main.h:10:0, from box_file.c:12: box_file.c: In function 'load_userfile.part.0': pastrix.h:174:33: warning: array subscript is above array bounds [-Warray-bounds] #define cut(string, size) string[size] = '\0' box_file.c:1368:7: note: in expansion of macro 'cut' cut(hp->dest, 80); ^~~ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_init.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_garb.c box_garb.c: In function 'garbage_collection': box_garb.c:1341:22: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] checksum16_buf(copybuf, bct, &ics); ^~~~~~~ In file included from box_garb.c:18:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ box_garb.c:1358:22: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] checksum16_buf(copybuf, l1, &hptr->infochecksum); ^~~~~~~ In file included from box_garb.c:18:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ box_garb.c:1383:19: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] checksum16_buf(copybuf, bct, &ics); ^~~~~~~ In file included from box_garb.c:18:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ box_garb.c:1424:23: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] checksum16_buf(copybuf, bct, &hptr->infochecksum); ^~~~~~~ In file included from box_garb.c:18:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ box_garb.c:1466:20: warning: pointer targets in passing argument 1 of 'checksum16_buf' differ in signedness [-Wpointer-sign] checksum16_buf(copybuf, bct, &ics); ^~~~~~~ In file included from box_garb.c:18:0: crc.h:29:13: note: expected 'unsigned char *' but argument is of type 'char *' extern void checksum16_buf(unsigned char *adr, long size, unsigned short *crc); ^~~~~~~~~~~~~~ box_garb.c:1535:6: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (copybuf != NULL) ^~ box_garb.c:1537:8: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' copybuf = NULL; ^~~~~~~ box_garb.c:742:8: warning: variable 'lastend' set but not used [-Wunused-but-set-variable] long lastend; ^~~~~~~ box_garb.c:733:8: warning: variable 'swappart' set but not used [-Wunused-but-set-variable] char swappart; ^~~~~~~~ box_garb.c:719:17: warning: variable 'sflfsp' set but not used [-Wunused-but-set-variable] short result, sflfsp, tomorrow; ^~~~~~ box_garb.c:712:31: warning: variable 'nhptr' set but not used [-Wunused-but-set-variable] indexstruct *hptr, header, *nhptr; ^~~~~ In file included from main.h:10:0, from main.c:48: pastrix.h:175:57: warning: array subscript is above array bounds [-Warray-bounds] #define nstrcpy(a, b, n) if (strncpy(a, b, n) != NULL) a[n] = '\0' main.c:1848:7: note: in expansion of macro 'nstrcpy' nstrcpy(iface_list[iface].unproto_rxheader.qrg, ^~~~~~~ In file included from /usr/include/stdio.h:597:0, from pastrix.h:19, from boxlocal.h:6, from box_garb.c:12: box_garb.c:864:18: warning: '%s' directive writing up to 255 bytes into a region of size 238 [-Wformat-overflow=] sprintf(STR1, "invalid filename: %s - deleted.", dirinfo.d_fname); ^ ~ box_garb.c:864:4: note: '__builtin___sprintf_chk' output between 30 and 285 bytes into a destination of size 256 sprintf(STR1, "invalid filename: %s - deleted.", dirinfo.d_fname); ^ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_logs.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_wp.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_rout.c box_wp.c: In function 'show_routing_stat': box_wp.c:509:51: warning: variable 'xtime' set but not used [-Wunused-but-set-variable] time_t lasttime, mintime, maxtime, xstep, xtime; ^~~~~ In file included from /usr/include/stdio.h:597:0, from pastrix.h:19, from box_wp.h:4, from box_wp.c:13: box_wp.c: In function 'process_wprotline': box_wp.c:1194:22: warning: format '%d' expects argument of type 'int', but argument 10 has type 'size_t {aka long unsigned int}' [-Wformat=] snprintf(w, 200, "invalid wprot checksum: %s (%ld) != %d (meta=%d, len=%d)", ^ hs, hatoi(hs), checksum, meta, strlen(p)+3); ~~~~~~~~~~~ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c box_scan.c gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -DNO_SHELL -c md2md5.c box_scan.c: In function 'scan_for_ack': box_scan.c:647:9: warning: variable 'binstart' set but not used [-Wunused-but-set-variable] long binstart; /* now a dummy value */ ^~~~~~~~ In file included from /usr/include/stdio.h:597:0, from pastrix.h:19, from boxlocal.h:6, from box_rout.h:4, from box_rout.c:14: box_rout.c: In function 'complete_hierarchical_adress.part.4': box_rout.c:715:30: warning: '%s' directive output may be truncated writing up to 40 bytes into a region of size between 33 and 39 [-Wformat-truncation=] snprintf(mbx, LEN_MBX, "%s.%s", hbox.call, hbox.hpath); ^ ~ box_rout.c:715:7: note: '__builtin_snprintf' output between 2 and 48 bytes into a destination of size 40 snprintf(mbx, LEN_MBX, "%s.%s", hbox.call, hbox.hpath); ^ In file included from box_wp.h:4:0, from box_wp.c:13: box_wp.c: In function 'sf_rx_emt1': pastrix.h:175:57: warning: array subscript is above array bounds [-Warray-bounds] #define nstrcpy(a, b, n) if (strncpy(a, b, n) != NULL) a[n] = '\0' box_wp.c:894:5: note: in expansion of macro 'nstrcpy' nstrcpy(wpb.issuer, wpb.call, LEN_BID); ^~~~~~~ gcc crawler.c -Wall -O3 -funsigned-char -fomit-frame-pointer -fno-strength-reduce -o crawler gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce dpputlinks.c -o dpputlinks dpputlinks.c: In function 'parse_dirlist': dpputlinks.c:156:7: warning: variable 'x' set but not used [-Wunused-but-set-variable] int x; ^ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce dpcodeconv.c -o dpcodeconv crawler.c: In function 'search_database.constprop': crawler.c:1126:9: warning: 'ret1' may be used uninitialized in this function [-Wmaybe-uninitialized] fprintf(tsubst, "%s:%d\n", word, ret1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ crawler.c:1120:7: warning: 'doccount' may be used uninitialized in this function [-Wmaybe-uninitialized] fprintf(out, "%s:%d ", word, doccount); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dpputlinks.c:174:14: warning: array subscript is above array bounds [-Warray-bounds] board[9] = '\0'; ~~~~~^~~ gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce dpgate.c -o dpgate gcc -Wall -O2 -funsigned-char -fomit-frame-pointer -fno-strength-reduce dpmybbs.c -o dpmybbs gcc -s filesys.o box.o box_mem.o box_send.o box_sf.o box_sub.o box_sys.o boxdbox.o boxbcm.o box_tim.o boxglobl.o boxlocal.o box_inou.o box_serv.o boxbcast.o boxfserv.o yapp.o crc.o huffman.o pastrix.o sort.o box_file.o tools.o status.o shell.o init.o linpack.o main.o box_init.o box_garb.o box_logs.o box_wp.o box_rout.o box_scan.o md2md5.o -lm -o dpbox dpgate.c: In function 'convert_cgi_command': dpgate.c:689:7: warning: variable 'x' set but not used [-Wunused-but-set-variable] int x, changed, r; ^ crawler.c: In function 'add_dictentry': crawler.c:683:27: warning: 'newentry.unmatchseek' may be used uninitialized in this function [-Wmaybe-uninitialized] struct dictentry dentry, newentry; ^~~~~~~~ crawler.c: In function 'scan_new_file': crawler.c:312:5: warning: 'lentry.next' may be used uninitialized in this function [-Wmaybe-uninitialized] if (l < 0) l = nilp; ^ crawler.c:862:18: note: 'lentry.next' was declared here struct messages lentry, newentry; ^~~~~~ crawler.c:361:2: warning: 'lentry.msgnum' may be used uninitialized in this function [-Wmaybe-uninitialized] long24char(unpacked_data->msgnum, packed_data); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ crawler.c:862:18: note: 'lentry.msgnum' was declared here struct messages lentry, newentry; ^~~~~~ ld: /var/tmp//cckQvWbo.o: in function `sort_file': crawler.c:(.text+0x4ed): warning: warning: tmpnam() possibly used unsafely, use mkstemp() or mkdtemp() /usr/bin/sed -e 's#@prefix@#/usr/pkg#g' < /amd/pkgsrc/CHROOT/P/pkgsrc/ham/dpbox/files/dpbox.ini > /tmp/ham/dpbox/work/dpbox-6.00.00/dpbox.ini