Snippets for 3proxy 0.9.5 from FreeBSD 150arm64
Sourced from https://pkg-status.freebsd.org/ampere5/data/latest-per-pkg/3proxy/0.9.5_1/150arm64-default.log.
-
./proxymain.c:669:77: warning: cast to smaller integer type 'unsigned int' from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] 669 | sprintf((char *)buf, "Accepting connections [%u/%u]", (unsigned)getpid(), (unsigned)pthread_self()); | ^~~~~~~~~~~~~~~~~~~~~~~~ -
./proxymain.c:884:24: warning: cast to smaller integer type 'unsigned int' from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] 884 | newparam->threadid = (unsigned)thread; | ^~~~~~~~~~~~~~~~ -
proxy.c:506:50: warning: format specifies type 'unsigned long long *' but the argument has type 'uint64_t *' (aka 'unsigned long *') [-Wformat] 506 | sscanf((char *)sb, "%"PRINTF_INT64_MODIFIER"u",&contentlength64); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~ | %lu -
proxy.c:958:51: warning: format specifies type 'unsigned long long *' but the argument has type 'uint64_t *' (aka 'unsigned long *') [-Wformat] 958 | sscanf((char *)sb, "%"PRINTF_INT64_MODIFIER"u", &contentlength64); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~ | %lu -
proxy.c:1083:58: warning: format specifies type 'unsigned long long *' but the argument has type 'uint64_t *' (aka 'unsigned long *') [-Wformat] 1083 | sscanf((char *)smallbuf, "%"PRINTF_INT64_MODIFIER"x", &contentlength64); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~ | %lx -
3proxy.c:212:74: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 212 | fprintf(cfp, "%05d %020"PRINTF_INT64_MODIFIER"u%s%s\n", tl->number, tl->traf64, tl->comment?" #" : "", tl->comment? tl->comment : ""); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~ | %020lu -
TrafficPlugin.c:203:31: warning: comparison of different enumeration types ('TRAFCORRECT_TYPE' and 'CONN_TYPE') [-Wenum-compare] 203 | ( ((starttrafcorrect->type == UDP) && | ~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~ -
TrafficPlugin.c:208:34: warning: comparison of different enumeration types ('TRAFCORRECT_TYPE' and 'CONN_TYPE') [-Wenum-compare] 208 | )||(starttrafcorrect->type == TCP))) /* TCP support */ | ~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~ -
TrafficPlugin.c:243:242: warning: format specifies type 'long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 243 | fprintf(stdout, "Port=%hd; Before: srv=%"PRINTF_INT64_MODIFIER"d, cli=%"PRINTF_INT64_MODIFIER"d; After: srv=%"PRINTF_INT64_MODIFIER"d, cli=%"PRINTF_INT64_MODIFIER"d; nreads=%ld; nwrites=%ld; Rule=%d\n",myhtons(*SAPORT(¶m->sinsr)), statssrv_before, statscli_before, param->statssrv64, param->statscli64,param->nreads,param->nwrites,rule); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ | %lu -
TrafficPlugin.c:243:259: warning: format specifies type 'long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 243 | fprintf(stdout, "Port=%hd; Before: srv=%"PRINTF_INT64_MODIFIER"d, cli=%"PRINTF_INT64_MODIFIER"d; After: srv=%"PRINTF_INT64_MODIFIER"d, cli=%"PRINTF_INT64_MODIFIER"d; nreads=%ld; nwrites=%ld; Rule=%d\n",myhtons(*SAPORT(¶m->sinsr)), statssrv_before, statscli_before, param->statssrv64, param->statscli64,param->nreads,param->nwrites,rule); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ | %lu -
TrafficPlugin.c:243:276: warning: format specifies type 'long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 243 | fprintf(stdout, "Port=%hd; Before: srv=%"PRINTF_INT64_MODIFIER"d, cli=%"PRINTF_INT64_MODIFIER"d; After: srv=%"PRINTF_INT64_MODIFIER"d, cli=%"PRINTF_INT64_MODIFIER"d; nreads=%ld; nwrites=%ld; Rule=%d\n",myhtons(*SAPORT(¶m->sinsr)), statssrv_before, statscli_before, param->statssrv64, param->statscli64,param->nreads,param->nwrites,rule); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~ | %lu -
TrafficPlugin.c:243:295: warning: format specifies type 'long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 243 | fprintf(stdout, "Port=%hd; Before: srv=%"PRINTF_INT64_MODIFIER"d, cli=%"PRINTF_INT64_MODIFIER"d; After: srv=%"PRINTF_INT64_MODIFIER"d, cli=%"PRINTF_INT64_MODIFIER"d; nreads=%ld; nwrites=%ld; Rule=%d\n",myhtons(*SAPORT(¶m->sinsr)), statssrv_before, statscli_before, param->statssrv64, param->statscli64,param->nreads,param->nwrites,rule); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~ | %lu -
proxymain.c:669:77: warning: cast to smaller integer type 'unsigned int' from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] 669 | sprintf((char *)buf, "Accepting connections [%u/%u]", (unsigned)getpid(), (unsigned)pthread_self()); | ^~~~~~~~~~~~~~~~~~~~~~~~ -
proxymain.c:884:24: warning: cast to smaller integer type 'unsigned int' from 'pthread_t' (aka 'struct pthread *') [-Wpointer-to-int-cast] 884 | newparam->threadid = (unsigned)thread; | ^~~~~~~~~~~~~~~~ -
proxy.c:396:61: warning: format specifies type 'unsigned long long *' but the argument has type 'uint64_t *' (aka 'unsigned long *') [-Wformat] 396 | sscanf((char *)buf + 15, "%"PRINTF_INT64_MODIFIER"u", &contentlength64); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~ | %lu -
proxy.c:584:92: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 584 | sprintf((char*)buf+strlen((char *)buf), "Content-Length: %"PRINTF_INT64_MODIFIER"u\r\n", contentlength64); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ | %lu -
proxy.c:1036:91: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 1036 | sprintf((char*)buf+strlen((char *)buf), "Content-Length: %"PRINTF_INT64_MODIFIER"u\r\n", contentlength64); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~ | %lu -
log.c:249:58: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 249 | sprintf((char *)buf+i, "%"PRINTF_INT64_MODIFIER"u", param->cycles); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~ | %lu -
log.c:253:58: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 253 | sprintf((char *)buf+i, "%"PRINTF_INT64_MODIFIER"u", param->statssrv64); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~ | %lu -
log.c:257:58: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 257 | sprintf((char *)buf+i, "%"PRINTF_INT64_MODIFIER"u", param->statscli64); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~ | %lu -
datatypes.c:12:75: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 12 | if(node->value)(*cbf)(cb, buf, sprintf(buf, "%"PRINTF_INT64_MODIFIER"u", *(uint64_t *)node->value)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~ | %lu -
libs/md4.c:83:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | void md4_calc(output, input, inlen) | ^ -
libs/md4.c:97:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | void MD4Init (context) | ^ -
libs/md4.c:114:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | void MD4Update (context, input, inputLen) | ^ -
libs/md4.c:155:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | void MD4Final (digest, context) | ^ -
libs/md4.c:183:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | static void MD4Transform (state, block) | ^ -
libs/md4.c:258:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | static void Encode (output, input, len) | ^ -
libs/md4.c:276:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 276 | static void Decode (output, input, len) | ^ -
libs/md4.c:291:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | static void MD4_memcpy (output, input, len) | ^ -
libs/md4.c:304:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 304 | static void MD4_memset (output, value, len) | ^ -
libs/md5.c:110:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | void MD5Init (context) | ^ -
libs/md5.c:126:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | void MD5Update (context, input, inputLen) | ^ -
libs/md5.c:168:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | void MD5Final (digest, context) | ^ -
libs/md5.c:197:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 197 | static void MD5Transform (state, block) | ^ -
libs/md5.c:290:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 290 | static void Encode (output, input, len) | ^ -
libs/md5.c:308:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 308 | static void Decode (output, input, len) | ^ -
libs/md5.c:323:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 323 | static void MD5_memcpy (output, input, len) | ^ -
libs/md5.c:336:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 336 | static void MD5_memset (output, value, len) | ^ -
webadmin.c:517:6: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 513 | "</td><td>%"PRINTF_INT64_MODIFIER"u</td>" | ~~~~~~~~~~~~~~~~~~~~~~~~~ | %lu 514 | "<td>MB%s</td>" 515 | "<td>%"PRINTF_INT64_MODIFIER"u.%"PRINTF_INT64_MODIFIER"u</td>" 516 | "<td>%s</td>", 517 | cp->traflim64 / (1024 * 1024), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
webadmin.c:519:6: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 515 | "<td>%"PRINTF_INT64_MODIFIER"u.%"PRINTF_INT64_MODIFIER"u</td>" | ~~~~~~~~~~~~~~~~~~~~~~~~~ | %lu 516 | "<td>%s</td>", 517 | cp->traflim64 / (1024 * 1024), 518 | rotations[cp->type], 519 | cp->traf64 / (1024 * 1024), | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -
webadmin.c:520:6: warning: format specifies type 'unsigned long long' but the argument has type 'uint64_t' (aka 'unsigned long') [-Wformat] 515 | "<td>%"PRINTF_INT64_MODIFIER"u.%"PRINTF_INT64_MODIFIER"u</td>" | ~~~~~~~~~~~~~~~~~~~~~~~~~ | %lu 516 | "<td>%s</td>", 517 | cp->traflim64 / (1024 * 1024), 518 | rotations[cp->type], 519 | cp->traf64 / (1024 * 1024), 520 | (((cp->traf64/16) *10) / (64*1024))%10, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
pamauth.c:135:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 135 | service=strdup((char *)argv[1]); | ^~~~~~~~~~~~~~~~~~~~~~~~ -
transparent_plugin.c:66:18: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 66 | param->hostname = pl->strdupfunc(addrbuf); | ^ ~~~~~~~~~~~~~~~~~~~~~~~