Diff of the two buildlogs: -- --- b1/build.log 2024-04-27 11:03:32.024648401 +0000 +++ b2/build.log 2024-04-27 11:04:08.271099198 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Fri Apr 26 23:03:08 -12 2024 -I: pbuilder-time-stamp: 1714215788 +I: Current time: Sat May 31 07:26:35 +14 2025 +I: pbuilder-time-stamp: 1748625995 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -28,52 +28,84 @@ dpkg-source: info: applying nostrip.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2712018/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1993147/tmp/hooks/D01_modify_environment starting +debug: Running on codethink01-arm64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 May 30 17:26 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/1993147/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1993147/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='arm64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='1cebcc17c5d5493c9647e4fed2d9fc34' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='2712018' - PS1='# ' - PS2='> ' + INVOCATION_ID=b44ba81a6b2340c0a25a15ec09fd8779 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=1993147 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.8AU11tce/pbuilderrc_NUYT --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.8AU11tce/b1 --logfile b1/build.log utalk_1.0.2-2.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.8AU11tce/pbuilderrc_BlaZ --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.8AU11tce/b2 --logfile b2/build.log utalk_1.0.2-2.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink04-arm64 6.1.0-20-cloud-arm64 #1 SMP Debian 6.1.85-1 (2024-04-11) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-20-cloud-arm64 #1 SMP Debian 6.1.85-1 (2024-04-11) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Apr 23 11:23 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2712018/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 26 17:47 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1993147/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -143,7 +175,7 @@ Get: 30 http://deb.debian.org/debian trixie/main arm64 debhelper all 13.15.3 [901 kB] Get: 31 http://deb.debian.org/debian trixie/main arm64 libncurses6 arm64 6.4+20240414-1 [95.6 kB] Get: 32 http://deb.debian.org/debian trixie/main arm64 libncurses-dev arm64 6.4+20240414-1 [336 kB] -Fetched 19.1 MB in 0s (165 MB/s) +Fetched 19.1 MB in 0s (71.4 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19937 files and directories currently installed.) @@ -286,7 +318,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/utalk-1.0.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../utalk_1.0.2-2_source.changes +I: user script /srv/workspace/pbuilder/1993147/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/1993147/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/utalk-1.0.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../utalk_1.0.2-2_source.changes dpkg-buildpackage: info: source package utalk dpkg-buildpackage: info: source version 1.0.2-2 dpkg-buildpackage: info: source distribution unstable @@ -321,6 +357,7 @@ gcc -O2 -g -Wall -D__USE_FIXED_PROTOTYPES__ -DLIBDIR="\"/usr/local/lib\"" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o kbd.o kbd.c gcc -O2 -g -Wall -D__USE_FIXED_PROTOTYPES__ -DLIBDIR="\"/usr/local/lib\"" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o comm.o comm.c gcc -O2 -g -Wall -D__USE_FIXED_PROTOTYPES__ -DLIBDIR="\"/usr/local/lib\"" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o rc.o rc.c +gcc -O2 -g -Wall -D__USE_FIXED_PROTOTYPES__ -DLIBDIR="\"/usr/local/lib\"" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o menu.o menu.c functions.c: In function 'delete_till': functions.c:307:40: warning: pointer targets in passing argument 3 of 'c_write_string' differ in signedness [-Wpointer-sign] 307 | c_write_string(l->number, nl0, nulls, 512); @@ -348,7 +385,6 @@ comm.h:134:62: note: expected 'unsigned char *' but argument is of type 'char *' 134 | extern void c_write_string(int line, int col, unsigned char *s, int len); | ~~~~~~~~~~~~~~~^ -screen.c: In function 'settopic': functions.c:407:46: warning: pointer targets in passing argument 3 of 'c_write_string' differ in signedness [-Wpointer-sign] 407 | c_write_string(L->number, nl0-n+1, nulls, n); | ^~~~~ @@ -357,33 +393,245 @@ comm.h:134:62: note: expected 'unsigned char *' but argument is of type 'char *' 134 | extern void c_write_string(int line, int col, unsigned char *s, int len); | ~~~~~~~~~~~~~~~^ -screen.c:117:23: warning: pointer targets in passing argument 2 of 'setstatus' differ in signedness [-Wpointer-sign] - 117 | setstatus(users[0], s); - | ^ - | | - | unsigned char * -screen.c:86:38: note: expected 'char *' but argument is of type 'unsigned char *' - 86 | void setstatus(struct user *u, char *s) { - | ~~~~~~^ -screen.c: In function 'shorten_lline': -screen.c:459:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] - 459 | if (pos= u->first_visible_pline && - | ^ functions.c: In function 'f_test_menu': +termcap.c: In function 'flush_term': +termcap.c:58:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 58 | write(TTYWRITE, termcapbuf, tcb); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ functions.c:1139:3: warning: implicit declaration of function 'test_menu'; did you mean 'f_test_menu'? [-Wimplicit-function-declaration] 1139 | test_menu(); | ^~~~~~~~~ | f_test_menu +termcap.c: In function 'myputchar': +termcap.c:40:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 40 | write(TTYWRITE, termcapbuf, tcb); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ functions.c: In function 'f_test_entry': +comm.c: In function 'drain_socket': +comm.c:147:58: warning: passing argument 6 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types] + 147 | r = recvfrom(fd, buf, 200, 0, (struct sockaddr *)&s, &sz); + | ^~~ + | | + | size_t * {aka long unsigned int *} +In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:343, + from comm.c:16: +/usr/include/aarch64-linux-gnu/bits/socket2.h:62:56: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} + 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ functions.c:1144:3: warning: implicit declaration of function 'test_entry'; did you mean 'f_test_entry'? [-Wimplicit-function-declaration] 1144 | test_entry(); | ^~~~~~~~~~ | f_test_entry +comm.c: In function 'recv_msg': +comm.c:197:83: warning: passing argument 6 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types] + 197 | n = recvfrom(ofd, (char *)&oansw, sizeof(oansw), 0, (struct sockaddr *)&sa, &sz); + | ^~~ + | | + | size_t * {aka long unsigned int *} +/usr/include/aarch64-linux-gnu/bits/socket2.h:62:56: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} + 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ +comm.c:208:83: warning: passing argument 6 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types] + 208 | n = recvfrom(nfd, (char *)&nansw, sizeof(nansw), 0, (struct sockaddr *)&sa, &sz); + | ^~~ + | | + | size_t * {aka long unsigned int *} +/usr/include/aarch64-linux-gnu/bits/socket2.h:62:56: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} + 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ functions.c: In function 'f_test_selection': +comm.c: In function 'find_daemon': +comm.c:271:85: warning: passing argument 6 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types] + 271 | r = recvfrom(ofd, (char *)&oansw, sizeof(oansw), 0, (struct sockaddr *)&rs, &sz); + | ^~~ + | | + | size_t * {aka long unsigned int *} +/usr/include/aarch64-linux-gnu/bits/socket2.h:62:56: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} + 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ functions.c:1149:3: warning: implicit declaration of function 'test_selection'; did you mean 'f_test_selection'? [-Wimplicit-function-declaration] 1149 | test_selection(); | ^~~~~~~~~~~~~~ | f_test_selection +comm.c:287:85: warning: passing argument 6 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types] + 287 | r = recvfrom(nfd, (char *)&nansw, sizeof(nansw), 0, (struct sockaddr *)&rs, &sz); + | ^~~ + | | + | size_t * {aka long unsigned int *} +/usr/include/aarch64-linux-gnu/bits/socket2.h:62:56: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} + 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ +comm.c: In function 'init_talkd': +screen.c: In function 'settopic': +screen.c:117:23: warning: pointer targets in passing argument 2 of 'setstatus' differ in signedness [-Wpointer-sign] + 117 | setstatus(users[0], s); + | ^ + | | + | unsigned char * +screen.c:86:38: note: expected 'char *' but argument is of type 'unsigned char *' + 86 | void setstatus(struct user *u, char *s) { + | ~~~~~~^ +comm.c:356:51: warning: passing argument 3 of 'getsockname' from incompatible pointer type [-Wincompatible-pointer-types] + 356 | if (getsockname(ofd, (struct sockaddr *)&osock, &len) < 0) + | ^~~~ + | | + | size_t * {aka long unsigned int *} +/usr/include/aarch64-linux-gnu/sys/socket.h:117:47: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} + 117 | socklen_t *__restrict __len) __THROW; + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ +comm.c:368:51: warning: passing argument 3 of 'getsockname' from incompatible pointer type [-Wincompatible-pointer-types] + 368 | if (getsockname(nfd, (struct sockaddr *)&nsock, &len) < 0) + | ^~~~ + | | + | size_t * {aka long unsigned int *} +/usr/include/aarch64-linux-gnu/sys/socket.h:117:47: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} + 117 | socklen_t *__restrict __len) __THROW; + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ +termcap.c: In function 'mywrite': +termcap.c:49:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] + 49 | write(TTYWRITE, termcapbuf, tcb); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +comm.c: In function 'init_comm': +comm.c:583:12: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration] + 583 | when = time(NULL) + 28; + | ^~~~ +comm.c:34:1: note: 'time' is defined in header ''; did you forget to '#include '? + 33 | #include "comm.h" + +++ |+#include + 34 | +srdp.c: In function 'srdp_stufftoread': +srdp.c:250:47: warning: passing argument 6 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types] + 250 | (struct sockaddr *)&from, &fromlen); + | ^~~~~~~~ + | | + | size_t * {aka long unsigned int *} +In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:343, + from srdpdata.h:17, + from srdp.c:20: +/usr/include/aarch64-linux-gnu/bits/socket2.h:62:56: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} + 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ +screen.c: In function 'shorten_lline': +screen.c:459:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] + 459 | if (pos= u->first_visible_pline && + | ^ +srdp.c: In function 'srdp_open': +srdp.c:516:59: warning: passing argument 3 of 'getsockname' from incompatible pointer type [-Wincompatible-pointer-types] + 516 | if (getsockname(fd, (struct sockaddr *)&(info->myaddr), &length)<0) { + | ^~~~~~~ + | | + | size_t * {aka long unsigned int *} +rc.c: In function 'do_rc_line': +rc.c:92:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] + 92 | r = b + strlen(b); + | ^ + | | + | unsigned char * +/usr/include/aarch64-linux-gnu/sys/socket.h:117:47: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} + 117 | socklen_t *__restrict __len) __THROW; + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ +In file included from rc.c:16: +/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' + 407 | extern size_t strlen (const char *__s) + | ~~~~~~~~~~~~^~~ +rc.c:112:37: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] + 112 | } else if (nx == NULL || strcmp(nx, "on") == 0) { + | ^~ + | | + | unsigned char * +/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'unsigned char *' + 156 | extern int strcmp (const char *__s1, const char *__s2) + | ~~~~~~~~~~~~^~~~ +rc.c:114:23: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] + 114 | } else if (strcmp(nx, "off") == 0) { + | ^~ + | | + | unsigned char * +/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'unsigned char *' + 156 | extern int strcmp (const char *__s1, const char *__s2) + | ~~~~~~~~~~~~^~~~ +rc.c:118:18: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] + 118 | if (strcmp(r, t->name) == 0) { + | ^ + | | + | unsigned char * +/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'unsigned char *' + 156 | extern int strcmp (const char *__s1, const char *__s2) + | ~~~~~~~~~~~~^~~~ +rc.c:130:17: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] + 130 | at = strchr(r, '@'); + | ^ + | | + | unsigned char * +/usr/include/string.h:246:34: note: expected 'const char *' but argument is of type 'unsigned char *' + 246 | extern char *strchr (const char *__s, int __c) + | ~~~~~~~~~~~~^~~ +rc.c:130:8: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] + 130 | at = strchr(r, '@'); + | ^ +rc.c:133:25: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] + 133 | strncpy(a->from, r+1, 255); + | ~^~ + | | + | unsigned char * +In file included from /usr/include/features.h:490, + from /usr/include/aarch64-linux-gnu/bits/libc-header-start.h:33, + from /usr/include/stdio.h:27, + from rc.c:13: +/usr/include/aarch64-linux-gnu/bits/string_fortified.h:92:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' + 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, + | ^~~~~ +rc.c:135:39: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] + 135 | strncpy(a->to, (*nx=='@' ? nx+1 : nx), 255); + | ~~~~~~~~~~~~~~~~~^~~~~ + | | + | unsigned char * +/usr/include/aarch64-linux-gnu/bits/string_fortified.h:92:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' + 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, + | ^~~~~ +rc.c:137:33: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] + 137 | } else if (at == r + strlen(r) - 1) { + | ^ + | | + | unsigned char * +/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' + 407 | extern size_t strlen (const char *__s) + | ~~~~~~~~~~~~^~~ +rc.c:140:24: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] + 140 | strncpy(a->from, r, 255); + | ^ + | | + | unsigned char * +/usr/include/aarch64-linux-gnu/bits/string_fortified.h:92:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' + 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, + | ^~~~~ +rc.c:142:22: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] + 142 | strncpy(a->to, nx, 255); + | ^~ + | | + | unsigned char * +/usr/include/aarch64-linux-gnu/bits/string_fortified.h:92:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' + 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, + | ^~~~~ +rc.c:144:15: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] + 144 | if ((at = strchr(a->to, '@')) != NULL) + | ^ +rc.c:148:24: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] + 148 | strncpy(a->from, r, 255); + | ^ + | | + | unsigned char * +/usr/include/aarch64-linux-gnu/bits/string_fortified.h:92:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' + 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, + | ^~~~~ +rc.c:150:22: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] + 150 | strncpy(a->to, nx, 255); + | ^~ + | | + | unsigned char * +/usr/include/aarch64-linux-gnu/bits/string_fortified.h:92:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' + 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, + | ^~~~~ kbd.c:36:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 36 | "^i tab", | ^~~~~~~~ @@ -599,17 +847,11 @@ kbd.c:93:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 93 | "o vi-open", | ^~~~~~~~~~~ -rc.c: In function 'do_rc_line': kbd.c:93:3: note: (near initialization for 'vi_cmd_bindings[11]') kbd.c:94:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 94 | "O vi-open-above", | ^~~~~~~~~~~~~~~~~ kbd.c:94:3: note: (near initialization for 'vi_cmd_bindings[12]') -rc.c:92:18: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] - 92 | r = b + strlen(b); - | ^ - | | - | unsigned char * kbd.c:95:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 95 | "r vi-replace-char", | ^~~~~~~~~~~~~~~~~~~ @@ -617,10 +859,6 @@ kbd.c:96:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 96 | "x delete", | ^~~~~~~~~~ -In file included from rc.c:16: -/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' - 407 | extern size_t strlen (const char *__s) - | ~~~~~~~~~~~~^~~ kbd.c:96:3: note: (near initialization for 'vi_cmd_bindings[14]') kbd.c:97:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 97 | "X backspace", @@ -630,7 +868,6 @@ 98 | "dd delete-line", | ^~~~~~~~~~~~~~~~ kbd.c:98:3: note: (near initialization for 'vi_cmd_bindings[16]') -gcc -O2 -g -Wall -D__USE_FIXED_PROTOTYPES__ -DLIBDIR="\"/usr/local/lib\"" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o menu.o menu.c kbd.c:99:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 99 | "db backspace-word", | ^~~~~~~~~~~~~~~~~~~ @@ -638,35 +875,19 @@ kbd.c:100:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 100 | "dw delete-word", | ^~~~~~~~~~~~~~~~ -rc.c:112:37: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] - 112 | } else if (nx == NULL || strcmp(nx, "on") == 0) { - | ^~ - | | - | unsigned char * kbd.c:100:3: note: (near initialization for 'vi_cmd_bindings[18]') kbd.c:101:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 101 | "dW delete-word", | ^~~~~~~~~~~~~~~~ kbd.c:101:3: note: (near initialization for 'vi_cmd_bindings[19]') -/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'unsigned char *' - 156 | extern int strcmp (const char *__s1, const char *__s2) - | ~~~~~~~~~~~~^~~~ kbd.c:102:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 102 | "de delete-end-of-word", | ^~~~~~~~~~~~~~~~~~~~~~~ kbd.c:102:3: note: (near initialization for 'vi_cmd_bindings[20]') -rc.c:114:23: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] - 114 | } else if (strcmp(nx, "off") == 0) { - | ^~ - | | - | unsigned char * kbd.c:103:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 103 | "d$ delete-end-of-line", | ^~~~~~~~~~~~~~~~~~~~~~~ kbd.c:103:3: note: (near initialization for 'vi_cmd_bindings[21]') -/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'unsigned char *' - 156 | extern int strcmp (const char *__s1, const char *__s2) - | ~~~~~~~~~~~~^~~~ kbd.c:104:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 104 | "d0 delete-beginning-of-line", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -675,14 +896,6 @@ 105 | "d\\^ delete-beginning-of-line", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kbd.c:105:3: note: (near initialization for 'vi_cmd_bindings[23]') -rc.c:118:18: warning: pointer targets in passing argument 1 of 'strcmp' differ in signedness [-Wpointer-sign] - 118 | if (strcmp(r, t->name) == 0) { - | ^ - | | - | unsigned char * -/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'unsigned char *' - 156 | extern int strcmp (const char *__s1, const char *__s2) - | ~~~~~~~~~~~~^~~~ kbd.c:106:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 106 | "df vi-delete-find-char", | ^~~~~~~~~~~~~~~~~~~~~~~~ @@ -695,41 +908,18 @@ 108 | "dt vi-delete-till-char", | ^~~~~~~~~~~~~~~~~~~~~~~~ kbd.c:108:3: note: (near initialization for 'vi_cmd_bindings[26]') -rc.c:130:17: warning: pointer targets in passing argument 1 of 'strchr' differ in signedness [-Wpointer-sign] - 130 | at = strchr(r, '@'); - | ^ - | | - | unsigned char * kbd.c:109:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 109 | "dT vi-delete-reverse-till-char", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/string.h:246:34: note: expected 'const char *' but argument is of type 'unsigned char *' - 246 | extern char *strchr (const char *__s, int __c) - | ~~~~~~~~~~~~^~~ kbd.c:109:3: note: (near initialization for 'vi_cmd_bindings[27]') -rc.c:130:8: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] - 130 | at = strchr(r, '@'); - | ^ kbd.c:110:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 110 | "D delete-end-of-line", | ^~~~~~~~~~~~~~~~~~~~~~ kbd.c:110:3: note: (near initialization for 'vi_cmd_bindings[28]') -rc.c:133:25: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] - 133 | strncpy(a->from, r+1, 255); - | ~^~ - | | - | unsigned char * kbd.c:111:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 111 | "w forward-word", | ^~~~~~~~~~~~~~~~ kbd.c:111:3: note: (near initialization for 'vi_cmd_bindings[29]') -In file included from /usr/include/features.h:490, - from /usr/include/aarch64-linux-gnu/bits/libc-header-start.h:33, - from /usr/include/stdio.h:27, - from rc.c:13: -/usr/include/aarch64-linux-gnu/bits/string_fortified.h:92:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' - 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, - | ^~~~~ kbd.c:112:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 112 | "W forward-word", | ^~~~~~~~~~~~~~~~ @@ -738,84 +928,33 @@ 113 | "e end-of-word", | ^~~~~~~~~~~~~~~ kbd.c:113:3: note: (near initialization for 'vi_cmd_bindings[31]') -rc.c:135:39: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] - 135 | strncpy(a->to, (*nx=='@' ? nx+1 : nx), 255); - | ~~~~~~~~~~~~~~~~~^~~~~ - | | - | unsigned char * -/usr/include/aarch64-linux-gnu/bits/string_fortified.h:92:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' - 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, - | ^~~~~ kbd.c:114:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 114 | "b backward-word", | ^~~~~~~~~~~~~~~~~ -rc.c:137:33: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] - 137 | } else if (at == r + strlen(r) - 1) { - | ^ - | | - | unsigned char * -/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' - 407 | extern size_t strlen (const char *__s) - | ~~~~~~~~~~~~^~~ kbd.c:114:3: note: (near initialization for 'vi_cmd_bindings[32]') kbd.c:115:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 115 | "B backward-word", | ^~~~~~~~~~~~~~~~~ kbd.c:115:3: note: (near initialization for 'vi_cmd_bindings[33]') -rc.c:140:24: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] - 140 | strncpy(a->from, r, 255); - | ^ - | | - | unsigned char * kbd.c:116:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 116 | "0 beginning-of-line", | ^~~~~~~~~~~~~~~~~~~~~ -/usr/include/aarch64-linux-gnu/bits/string_fortified.h:92:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' - 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, - | ^~~~~ kbd.c:116:3: note: (near initialization for 'vi_cmd_bindings[34]') kbd.c:117:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 117 | "\\^ beginning-of-line", | ^~~~~~~~~~~~~~~~~~~~~~~ kbd.c:117:3: note: (near initialization for 'vi_cmd_bindings[35]') -rc.c:142:22: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] - 142 | strncpy(a->to, nx, 255); - | ^~ - | | - | unsigned char * -/usr/include/aarch64-linux-gnu/bits/string_fortified.h:92:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' - 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, - | ^~~~~ kbd.c:118:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 118 | "$ end-of-line", | ^~~~~~~~~~~~~~~ -rc.c:144:15: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [-Wpointer-sign] - 144 | if ((at = strchr(a->to, '@')) != NULL) - | ^ kbd.c:118:3: note: (near initialization for 'vi_cmd_bindings[36]') -rc.c:148:24: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] - 148 | strncpy(a->from, r, 255); - | ^ - | | - | unsigned char * kbd.c:119:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 119 | "^d down-half-page", | ^~~~~~~~~~~~~~~~~~~ -/usr/include/aarch64-linux-gnu/bits/string_fortified.h:92:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' - 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, - | ^~~~~ kbd.c:119:3: note: (near initialization for 'vi_cmd_bindings[37]') kbd.c:120:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 120 | "^f down-page", | ^~~~~~~~~~~~~~ -rc.c:150:22: warning: pointer targets in passing argument 2 of 'strncpy' differ in signedness [-Wpointer-sign] - 150 | strncpy(a->to, nx, 255); - | ^~ - | | - | unsigned char * -/usr/include/aarch64-linux-gnu/bits/string_fortified.h:92:1: note: expected 'const char * restrict' but argument is of type 'unsigned char *' - 92 | __NTH (strncpy (char *__restrict __dest, const char *__restrict __src, - | ^~~~~ kbd.c:120:3: note: (near initialization for 'vi_cmd_bindings[38]') kbd.c:121:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 121 | "^u up-half-page", @@ -852,11 +991,7 @@ kbd.c:129:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 129 | "g next-window", | ^~~~~~~~~~~~~~~ -rc.c: In function 'read_rc': kbd.c:129:3: note: (near initialization for 'vi_cmd_bindings[47]') -rc.c:180:13: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] - 180 | if ((home = (unsigned char *)getenv("HOME")) == NULL) - | ^ kbd.c:130:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 130 | "f vi-find-char", | ^~~~~~~~~~~~~~~~ @@ -872,40 +1007,11 @@ kbd.c:133:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 133 | "T vi-reverse-till-char", | ^~~~~~~~~~~~~~~~~~~~~~~~ -comm.c: In function 'drain_socket': kbd.c:133:3: note: (near initialization for 'vi_cmd_bindings[51]') kbd.c:134:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 134 | "; vi-repeat-find", | ^~~~~~~~~~~~~~~~~~ -comm.c:147:58: warning: passing argument 6 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types] - 147 | r = recvfrom(fd, buf, 200, 0, (struct sockaddr *)&s, &sz); - | ^~~ - | | - | size_t * {aka long unsigned int *} -In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:343, - from comm.c:16: -/usr/include/aarch64-linux-gnu/bits/socket2.h:62:56: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} - 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ -rc.c:198:11: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] - 198 | fgets(b, 300, stdin); - | ^ - | | - | unsigned char * -In file included from /usr/include/stdio.h:906: -/usr/include/aarch64-linux-gnu/bits/stdio2.h:209:25: note: expected 'char * restrict' but argument is of type 'unsigned char *' - 209 | fgets (char *__restrict __s, int __n, FILE *__restrict __stream) - | ~~~~~~~~~~~~~~~~~^~~ -comm.c: In function 'recv_msg': kbd.c:134:3: note: (near initialization for 'vi_cmd_bindings[52]') -comm.c:197:83: warning: passing argument 6 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types] - 197 | n = recvfrom(ofd, (char *)&oansw, sizeof(oansw), 0, (struct sockaddr *)&sa, &sz); - | ^~~ - | | - | size_t * {aka long unsigned int *} -/usr/include/aarch64-linux-gnu/bits/socket2.h:62:56: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} - 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ kbd.c:135:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 135 | ", vi-reverse-repeat-find", | ^~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -913,15 +1019,7 @@ kbd.c:136:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 136 | "~ vi-flip-case", | ^~~~~~~~~~~~~~~~ -comm.c:208:83: warning: passing argument 6 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types] - 208 | n = recvfrom(nfd, (char *)&nansw, sizeof(nansw), 0, (struct sockaddr *)&sa, &sz); - | ^~~ - | | - | size_t * {aka long unsigned int *} kbd.c:136:3: note: (near initialization for 'vi_cmd_bindings[54]') -/usr/include/aarch64-linux-gnu/bits/socket2.h:62:56: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} - 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ kbd.c:137:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 137 | "^t set-topic", | ^~~~~~~~~~~~~~ @@ -946,6 +1044,59 @@ 142 | "[D backward", | ^~~~~~~~~~~~~ kbd.c:142:3: note: (near initialization for 'vi_cmd_bindings[60]') +menu.c: In function 'menu_keyboard': +rc.c: In function 'read_rc': +menu.c:603:29: warning: pointer targets in passing argument 1 of 'putscreen' differ in signedness [-Wpointer-sign] + 603 | putscreen(&c, 1, 0); + | ^~ + | | + | unsigned char * +rc.c:180:13: warning: pointer targets in assignment from 'unsigned char *' to 'char *' differ in signedness [-Wpointer-sign] + 180 | if ((home = (unsigned char *)getenv("HOME")) == NULL) + | ^ +In file included from menu.c:17: +termcap.h:38:29: note: expected 'char *' but argument is of type 'unsigned char *' + 38 | extern void putscreen(char *s, int n, char attr); + | ~~~~~~^ +rc.c:198:11: warning: pointer targets in passing argument 1 of 'fgets' differ in signedness [-Wpointer-sign] + 198 | fgets(b, 300, stdin); + | ^ + | | + | unsigned char * +In file included from /usr/include/stdio.h:906: +/usr/include/aarch64-linux-gnu/bits/stdio2.h:209:25: note: expected 'char * restrict' but argument is of type 'unsigned char *' + 209 | fgets (char *__restrict __s, int __n, FILE *__restrict __stream) + | ~~~~~~~~~~~~~~~~~^~~ +menu.c: In function 'command_callback': +menu.c:735:20: warning: pointer targets in passing argument 1 of 'do_rc_line' differ in signedness [-Wpointer-sign] + 735 | r = do_rc_line(s); + | ^ + | | + | char * +In file included from menu.c:20: +rc.h:22:18: note: expected 'unsigned char *' but argument is of type 'char *' + 22 | char *do_rc_line(unsigned char *); + | ^~~~~~~~~~~~~~~ +menu.c: In function 'topic_callback': +srdp.c: In function 'srdp_select': +menu.c:756:14: warning: pointer targets in passing argument 1 of 'settopic' differ in signedness [-Wpointer-sign] + 756 | settopic(s); + | ^ + | | + | char * +In file included from menu.c:19: +screen.h:22:37: note: expected 'unsigned char *' but argument is of type 'char *' + 22 | extern void settopic(unsigned char *s); + | ~~~~~~~~~~~~~~~^ +srdp.c:714:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] + 714 | if (cansend(info) && (now.tv_sec>info->wakeup1.tv_sec || + | ^~ +rc.c:198:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] + 198 | fgets(b, 300, stdin); + | ^~~~~~~~~~~~~~~~~~~~ +srdp.c:718:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' + 718 | if ((info->flags&(SRDP_FL_SELRETURN|SRDP_FL_NOSELECT)) == + | ^~ kbd.c:143:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 143 | "[C forward", | ^~~~~~~~~~~~ @@ -953,35 +1104,6 @@ kbd.c:144:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 144 | "[A up", | ^~~~~~~ -comm.c: In function 'find_daemon': -comm.c:271:85: warning: passing argument 6 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types] - 271 | r = recvfrom(ofd, (char *)&oansw, sizeof(oansw), 0, (struct sockaddr *)&rs, &sz); - | ^~~ - | | - | size_t * {aka long unsigned int *} -/usr/include/aarch64-linux-gnu/bits/socket2.h:62:56: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} - 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ -comm.c:287:85: warning: passing argument 6 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types] - 287 | r = recvfrom(nfd, (char *)&nansw, sizeof(nansw), 0, (struct sockaddr *)&rs, &sz); - | ^~~ - | | - | size_t * {aka long unsigned int *} -/usr/include/aarch64-linux-gnu/bits/socket2.h:62:56: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} - 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ -rc.c:198:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] - 198 | fgets(b, 300, stdin); - | ^~~~~~~~~~~~~~~~~~~~ -comm.c: In function 'init_talkd': -comm.c:356:51: warning: passing argument 3 of 'getsockname' from incompatible pointer type [-Wincompatible-pointer-types] - 356 | if (getsockname(ofd, (struct sockaddr *)&osock, &len) < 0) - | ^~~~ - | | - | size_t * {aka long unsigned int *} -/usr/include/aarch64-linux-gnu/sys/socket.h:117:47: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} - 117 | socklen_t *__restrict __len) __THROW; - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ kbd.c:144:3: note: (near initialization for 'vi_cmd_bindings[62]') kbd.c:145:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 145 | "[B down", @@ -1003,11 +1125,6 @@ 153 | "^m new-line", | ^~~~~~~~~~~~~ kbd.c:153:3: note: (near initialization for 'vi_ins_bindings[3]') -comm.c:368:51: warning: passing argument 3 of 'getsockname' from incompatible pointer type [-Wincompatible-pointer-types] - 368 | if (getsockname(nfd, (struct sockaddr *)&nsock, &len) < 0) - | ^~~~ - | | - | size_t * {aka long unsigned int *} kbd.c:154:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 154 | "^j new-line", | ^~~~~~~~~~~~~ @@ -1016,9 +1133,6 @@ 155 | "^u delete-line", | ^~~~~~~~~~~~~~~~ kbd.c:155:3: note: (near initialization for 'vi_ins_bindings[5]') -/usr/include/aarch64-linux-gnu/sys/socket.h:117:47: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} - 117 | socklen_t *__restrict __len) __THROW; - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ kbd.c:156:3: warning: pointer targets in initialization of 'unsigned char *' from 'char *' differ in signedness [-Wpointer-sign] 156 | "^h backspace", | ^~~~~~~~~~~~~~ @@ -1078,7 +1192,6 @@ kbd.c:285:22: note: expected 'char *' but argument is of type 'unsigned char *' 285 | static void nb(char *s, int n) { | ~~~~~~^ -comm.c: In function 'init_comm': kbd.c:312:8: warning: pointer targets in passing argument 1 of 'nb' differ in signedness [-Wpointer-sign] 312 | nb(*s, 0); | ^~ @@ -1092,16 +1205,9 @@ | ^~ | | | unsigned char * -comm.c:583:12: warning: implicit declaration of function 'time' [-Wimplicit-function-declaration] - 583 | when = time(NULL) + 28; - | ^~~~ kbd.c:285:22: note: expected 'char *' but argument is of type 'unsigned char *' 285 | static void nb(char *s, int n) { | ~~~~~~^ -comm.c:34:1: note: 'time' is defined in header ''; did you forget to '#include '? - 33 | #include "comm.h" - +++ |+#include - 34 | kbd.c: In function 'keyboard': kbd.c:369:19: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 369 | if (strlen(b->sequence) == inseq) { @@ -1112,50 +1218,6 @@ /usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ -termcap.c: In function 'flush_term': -termcap.c:58:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] - 58 | write(TTYWRITE, termcapbuf, tcb); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -termcap.c: In function 'myputchar': -termcap.c:40:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] - 40 | write(TTYWRITE, termcapbuf, tcb); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -termcap.c: In function 'mywrite': -termcap.c:49:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] - 49 | write(TTYWRITE, termcapbuf, tcb); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -rc.c: In function 'resolve_alias': -rc.c:55:7: warning: '__builtin_strncpy' output may be truncated copying 254 bytes from a string of length 255 [-Wstringop-truncation] - 55 | strncpy(uh1, a->to, 255); - | ^ -srdp.c: In function 'srdp_stufftoread': -srdp.c:250:47: warning: passing argument 6 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types] - 250 | (struct sockaddr *)&from, &fromlen); - | ^~~~~~~~ - | | - | size_t * {aka long unsigned int *} -In file included from /usr/include/aarch64-linux-gnu/sys/socket.h:343, - from srdpdata.h:17, - from srdp.c:20: -/usr/include/aarch64-linux-gnu/bits/socket2.h:62:56: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} - 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ -srdp.c: In function 'srdp_open': -srdp.c:516:59: warning: passing argument 3 of 'getsockname' from incompatible pointer type [-Wincompatible-pointer-types] - 516 | if (getsockname(fd, (struct sockaddr *)&(info->myaddr), &length)<0) { - | ^~~~~~~ - | | - | size_t * {aka long unsigned int *} -/usr/include/aarch64-linux-gnu/sys/socket.h:117:47: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} - 117 | socklen_t *__restrict __len) __THROW; - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ -srdp.c: In function 'srdp_select': -srdp.c:714:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] - 714 | if (cansend(info) && (now.tv_sec>info->wakeup1.tv_sec || - | ^~ -srdp.c:718:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' - 718 | if ((info->flags&(SRDP_FL_SELRETURN|SRDP_FL_NOSELECT)) == - | ^~ srdp.c: In function 'srdp_close': srdp.c:882:53: warning: passing argument 6 of 'recvfrom' from incompatible pointer type [-Wincompatible-pointer-types] 882 | (struct sockaddr *)&from, &fromlen); @@ -1165,36 +1227,10 @@ /usr/include/aarch64-linux-gnu/bits/socket2.h:62:56: note: expected 'socklen_t * restrict' {aka 'unsigned int * restrict'} but argument is of type 'size_t *' {aka 'long unsigned int *'} 62 | __SOCKADDR_ARG __addr, socklen_t *__restrict __addr_len) | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ -menu.c: In function 'menu_keyboard': -menu.c:603:29: warning: pointer targets in passing argument 1 of 'putscreen' differ in signedness [-Wpointer-sign] - 603 | putscreen(&c, 1, 0); - | ^~ - | | - | unsigned char * -In file included from menu.c:17: -termcap.h:38:29: note: expected 'char *' but argument is of type 'unsigned char *' - 38 | extern void putscreen(char *s, int n, char attr); - | ~~~~~~^ -menu.c: In function 'command_callback': -menu.c:735:20: warning: pointer targets in passing argument 1 of 'do_rc_line' differ in signedness [-Wpointer-sign] - 735 | r = do_rc_line(s); - | ^ - | | - | char * -In file included from menu.c:20: -rc.h:22:18: note: expected 'unsigned char *' but argument is of type 'char *' - 22 | char *do_rc_line(unsigned char *); - | ^~~~~~~~~~~~~~~ -menu.c: In function 'topic_callback': -menu.c:756:14: warning: pointer targets in passing argument 1 of 'settopic' differ in signedness [-Wpointer-sign] - 756 | settopic(s); - | ^ - | | - | char * -In file included from menu.c:19: -screen.h:22:37: note: expected 'unsigned char *' but argument is of type 'char *' - 22 | extern void settopic(unsigned char *s); - | ~~~~~~~~~~~~~~~^ +rc.c: In function 'resolve_alias': +rc.c:55:7: warning: '__builtin_strncpy' output may be truncated copying 254 bytes from a string of length 255 [-Wstringop-truncation] + 55 | strncpy(uh1, a->to, 255); + | ^ In file included from /usr/include/string.h:535, from comm.c:21: In function 'strncpy', @@ -1295,12 +1331,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/1993147/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1993147/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/2712018 and its subdirectories -I: Current time: Fri Apr 26 23:03:30 -12 2024 -I: pbuilder-time-stamp: 1714215810 +I: removing directory /srv/workspace/pbuilder/1993147 and its subdirectories +I: Current time: Sat May 31 07:27:06 +14 2025 +I: pbuilder-time-stamp: 1748626026