Snippets for socklog 2.1.0 from FreeBSD 150amd64
Sourced from https://pkg-status.freebsd.org/beefy23/data/latest-per-pkg/socklog/2.1.0_2/150amd64-default.log.
-
chkshsgr.c:10:19: warning: incompatible pointer types passing 'short[4]' to parameter of type 'gid_t *' (aka 'unsigned int *') [-Wincompatible-pointer-types] 10 | if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); | ^ -
chkshsgr.c:10:44: warning: incompatible pointer types passing 'short[4]' to parameter of type 'const gid_t *' (aka 'const unsigned int *') [-Wincompatible-pointer-types] 10 | if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); | ^ -
socklog.c:109:10: warning: assigning to 'CODE *' (aka 'struct _code *') from 'const CODE[25]' (aka 'const struct _code[25]') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 109 | for (p =facilitynames; p->c_name; p++) { | ^~~~~~~~~~~~~~ -
socklog.c:121:10: warning: assigning to 'CODE *' (aka 'struct _code *') from 'const CODE[13]' (aka 'const struct _code[13]') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 121 | for (p =prioritynames; p->c_name; p++) { | ^~~~~~~~~~~~~~ -
socklog.c:169:12: warning: passing arguments to 'byte_zero' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | byte_zero(&sa, sizeof(sa)); | ^ -
socklog.c:186:12: warning: passing arguments to 'byte_zero' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | byte_zero(&sa, sizeof(sa)); | ^ -
socklog.c:227:66: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 227 | linec =recvfrom(s, line, LINEC, 0, (struct sockaddr *) &saf, &dummy); | ^~~~~~ -
alloc.c:15:26: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | /*@null@*//*@out@*/char *alloc(n) | ^ -
./alloc.h:6:33: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern /*@null@*//*@out@*/char *alloc(); | ^ -
alloc.c:26:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | void alloc_free(x) | ^ -
./alloc.h:7:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | extern void alloc_free(); | ^ -
alloc_re.c:13:12: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | y = alloc(n); | ^ -
alloc_re.c:15:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | byte_copy(y,m,*x); | ^ -
alloc_re.c:16:13: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | alloc_free(*x); | ^ -
alloc_re.c:6:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | int alloc_re(x,m,n) | ^ -
./alloc.h:8:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | extern int alloc_re(); | ^ -
buffer_0.c:5:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | int buffer_0_read(fd,buf,len) int fd; char *buf; int len; | ^ -
buffer_get.c:12:11: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | r = op(fd,buf,len); | ^ -
buffer_get.c:22:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | byte_copy(buf,len,s->x + s->n); | ^ -
buffer_get.c:36:27: warning: passing arguments to 'byte_copyr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | if (s->n > 0) byte_copyr(s->x + s->n,r,s->x); | ^ -
buffer_put.c:13:11: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | w = op(fd,buf,len); | ^ -
buffer_put.c:18:17: warning: if statement has empty body [-Wempty-body] 18 | if (w == 0) ; /* luser's fault */ | ^ -
buffer_put.c:40:14: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | byte_copy(s->x + s->p,n,buf); s->p += n; buf += n; len -= n; | ^ -
buffer_put.c:44:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | byte_copy(s->x + s->p,len,buf); | ^ -
buffer_put.c:66:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | byte_copy(s->x + s->p,len,buf); | ^ -
pathexec_env.c:43:28: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | e = (const char **) alloc((elen + 1) * sizeof(char *)); | ^ -
pathexec_env.c:55:6: warning: passing arguments to 'byte_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | if (byte_equal(plus.s + j,split,e[t])) | ^ -
pathexec_env.c:68:13: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | alloc_free(e); | ^ -
pathexec_run.c:18:5: warning: call to undeclared function 'execve'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 18 | execve(file,argv,envp); | ^ -
pathexec_run.c:35:5: warning: call to undeclared function 'execve'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 35 | execve(tmp.s,argv,envp); | ^ -
prot.c:13:7: warning: call to undeclared function 'setgroups'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 13 | if (setgroups(1,&gid) == -1) return -1; | ^ -
prot.c:15:10: warning: call to undeclared function 'setgid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 15 | return setgid(gid); /* _should_ be redundant, but on some systems it isn't */ | ^ -
prot.c:20:10: warning: call to undeclared function 'setuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 20 | return setuid(uid); | ^ -
stralloc_catb.c:10:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | byte_copy(sa->s + sa->len,n,s); | ^ -
stralloc_eady.c:7:1: warning: passing arguments to 'alloc_re' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | GEN_ALLOC_ready(stralloc,char,s,len,a,i,n,x,30,stralloc_ready) | ^ -
stralloc_eady.c:7:1: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
-
stralloc_eady.c:8:1: warning: passing arguments to 'alloc_re' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 8 | GEN_ALLOC_readyplus(stralloc,char,s,len,a,i,n,x,30,stralloc_readyplus) | ^ -
stralloc_eady.c:8:1: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
-
stralloc_opyb.c:9:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | byte_copy(sa->s,n,s); | ^ -
wait_nohang.c:7:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | int wait_nohang(wstat) int *wstat; | ^ -
wait_pid.c:10:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | int wait_pid(wstat,pid) int *wstat; int pid; | ^ -
byte_chr.c:5:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | unsigned int byte_chr(s,n,c) | ^ -
./byte.h:6:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern unsigned int byte_chr(); | ^ -
byte_copy.c:5:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | void byte_copy(to,n,from) | ^ -
./byte.h:8:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | extern void byte_copy(); | ^ -
byte_cr.c:5:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | void byte_copyr(to,n,from) | ^ -
./byte.h:9:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 9 | extern void byte_copyr(); | ^ -
byte_diff.c:5:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | int byte_diff(s,n,t) | ^ -
./byte.h:10:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | extern int byte_diff(); | ^ -
byte_rchr.c:5:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | unsigned int byte_rchr(s,n,c) | ^ -
./byte.h:7:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | extern unsigned int byte_rchr(); | ^ -
byte_zero.c:3:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | void byte_zero(s,n) | ^ -
./byte.h:11:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 11 | extern void byte_zero(); | ^ -
socklog-check.c:46:12: warning: passing arguments to 'byte_zero' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | byte_zero(&sa, sizeof(sa)); | ^ -
socklog-conf.c:76:19: warning: incompatible function pointer types passing 'ssize_t (int, const void *, size_t)' (aka 'long (int, const void *, unsigned long)') to parameter of type 'int (*)()' [-Wincompatible-function-pointer-types] 76 | buffer_init(&b, write, fd, buf, sizeof buf); | ^~~~~ -
tryto.c:175:22: warning: passing arguments to 'wait_nohang' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | if (wait_nohang(&rc) == pid) break; | ^ -
tryto.c:206:22: warning: passing arguments to 'wait_nohang' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | if (wait_nohang(&rc) == pid) break; | ^ -
tryto.c:225:24: warning: passing arguments to 'wait_nohang' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | if (wait_nohang(&rc) == pid) { | ^ -
./select.h:11:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 11 | extern int select(); | ^ -
uncat.c:167:19: warning: passing arguments to 'wait_pid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | if (wait_pid(&wstat, pid) != pid) { | ^