=> "/opt/local/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-trunk-x86_64/games/koth", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for koth-0.8.0nb7 --- ./stamp-h.in --- cd . && autoheader WARNING: 'autoheader' is missing on your system. You should only need it if you modified 'acconfig.h' or 'configure.in'. You might want to install the Autoconf and GNU m4 packages. Grab them from any GNU archive site. --- stamp-h --- cd . && CONFIG_FILES= CONFIG_HEADERS=config.h /usr/bin/bash ./config.status creating config.h config.h is unchanged --- config.h --- --- all-recursive-am --- /opt/local/bin/bmake all-recursive --- all-recursive --- Making all in src --- all-recursive --- Making all in baseimages Making all in weapons --- weapongfx.o --- --- simplegfx.o --- --- dirtgfx.o --- --- weapongfx.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c weapongfx.c --- simplegfx.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c simplegfx.c --- dirtgfx.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c dirtgfx.c --- napalmgfx.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c napalmgfx.c --- blackholegfx.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c blackholegfx.c --- lasergfx.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c lasergfx.c --- weapon.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c weapon.c --- basic.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c basic.c --- dirt.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c dirt.c --- dirtvaporizer.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c dirtvaporizer.c --- roller.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c roller.c --- supernuke.o --- --- cluster.o --- --- supernuke.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c supernuke.c --- cluster.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c cluster.c --- mirv.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c mirv.c --- simple.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c simple.c --- tacnuke.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c tacnuke.c --- large.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c large.c --- funkybomb.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c funkybomb.c --- dfa.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c dfa.c --- tunnel.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c tunnel.c --- napalm.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c napalm.c --- blackhole.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c blackhole.c --- laser.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c laser.c --- dirtcurtain.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c dirtcurtain.c --- depthcharge.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c depthcharge.c --- libkothweapongfx.a --- rm -f libkothweapongfx.a ar cru libkothweapongfx.a weapongfx.o simplegfx.o dirtgfx.o napalmgfx.o blackholegfx.o lasergfx.o ranlib libkothweapongfx.a --- libkothweapons.a --- rm -f libkothweapons.a ar cru libkothweapons.a weapon.o basic.o dirt.o dirtvaporizer.o roller.o supernuke.o cluster.o mirv.o simple.o tacnuke.o large.o funkybomb.o dfa.o tunnel.o napalm.o blackhole.o laser.o dirtcurtain.o depthcharge.o ranlib libkothweapons.a Making all in . --- tcpcore.o --- --- relay.o --- --- player.o --- --- tcpcore.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c tcpcore.c --- relay.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c relay.c --- player.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c player.c --- packets.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c packets.c packets.c: In function 'pktPack': packets.c:39:11: warning: pointer targets in assignment from 'char *' to 'ubyte_pkt *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 39 | for(p = fmt; *p; p++) | ^ packets.c:59:20: warning: pointer targets in assignment from 'char *' to 'ubyte_pkt *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 59 | st = va_arg(args, char *); | ^ packets.c: In function 'pktUnpack': packets.c:85:11: warning: pointer targets in assignment from 'char *' to 'ubyte_pkt *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 85 | for(p = fmt; *p; p++) | ^ --- terrain.o --- --- ballistics.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c ballistics.c --- terrain.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c terrain.c --- cfgfile.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c cfgfile.c --- log.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c log.c --- demo.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c demo.c --- conversions.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c conversions.c --- kclient.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c kclient.c --- gfx.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c gfx.c --- kclient.o --- kclient.c: In function 'clBuyWeapon': kclient.c:115:14: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 115 | strcpy(bw.weapontype, (char *) elem); | ~~^~~~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} In file included from /usr/include/string.h:35, from kclient.c:21: /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ kclient.c:116:48: warning: pointer targets in passing argument 1 of 'pktPackBuyWeapon' differ in signedness [-Wpointer-sign] 116 | rlSend(relay, svrid, buf, pktPackBuyWeapon(buf, &bw)); | ^~~ | | | char * In file included from kclient.c:34: packets.h:186:34: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 186 | int pktPackBuyWeapon(ubyte_pkt * buf, struct BuyWeapon_pkt *pkt); | ~~~~~~~~~~~~^~~ kclient.c: In function 'clSellWeapon': kclient.c:132:14: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 132 | strcpy(bw.weapontype, (char *) elem); | ~~^~~~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ kclient.c:133:48: warning: pointer targets in passing argument 1 of 'pktPackBuyWeapon' differ in signedness [-Wpointer-sign] 133 | rlSend(relay, svrid, buf, pktPackBuyWeapon(buf, &bw)); | ^~~ | | | char * packets.h:186:34: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 186 | int pktPackBuyWeapon(ubyte_pkt * buf, struct BuyWeapon_pkt *pkt); | ~~~~~~~~~~~~^~~ kclient.c: In function 'clFireWeapon': kclient.c:150:15: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 150 | strcpy(sht.shottype, ((Weapon_wep *) gm_curitem->info)->name); | ~~~^~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ kclient.c:151:46: warning: pointer targets in passing argument 1 of 'pktPackFireCmd' differ in signedness [-Wpointer-sign] 151 | rlSend(relay, svrid, buf, pktPackFireCmd(buf, &sht)); | ^~~ | | | char * packets.h:180:32: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 180 | int pktPackFireCmd(ubyte_pkt * buf, struct FireCmd_pkt *pkt); | ~~~~~~~~~~~~^~~ kclient.c: In function 'clInitialize': kclient.c:530:35: warning: pointer targets in passing argument 1 of 'pktPackChangeReady' differ in signedness [-Wpointer-sign] 530 | pktPackChangeReady(buf, &cr)); | ^~~ | | | char * packets.h:183:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 183 | int pktPackChangeReady(ubyte_pkt * buf, struct ChangeReady_pkt *pkt); | ~~~~~~~~~~~~^~~ kclient.c: In function 'clPregame': kclient.c:628:59: warning: pointer targets in passing argument 1 of 'pktPackChangeReady' differ in signedness [-Wpointer-sign] 628 | pktPackChangeReady(buf, &cr)); | ^~~ | | | char * packets.h:183:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 183 | int pktPackChangeReady(ubyte_pkt * buf, struct ChangeReady_pkt *pkt); | ~~~~~~~~~~~~^~~ kclient.c:648:59: warning: pointer targets in passing argument 1 of 'pktPackChangeReady' differ in signedness [-Wpointer-sign] 648 | pktPackChangeReady(buf, &cr)); | ^~~ | | | char * packets.h:183:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 183 | int pktPackChangeReady(ubyte_pkt * buf, struct ChangeReady_pkt *pkt); | ~~~~~~~~~~~~^~~ kclient.c: In function 'clPlaygame': kclient.c:1005:28: warning: variable 'prvang' set but not used [-Wunused-but-set-variable] 1005 | int i, tl = 0, fl = 0, prvang; | ^~~~~~ kclient.c: In function 'clPostgame': kclient.c:1642:59: warning: pointer targets in passing argument 1 of 'pktPackChangeReady' differ in signedness [-Wpointer-sign] 1642 | pktPackChangeReady(buf, &cr)); | ^~~ | | | char * packets.h:183:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 183 | int pktPackChangeReady(ubyte_pkt * buf, struct ChangeReady_pkt *pkt); | ~~~~~~~~~~~~^~~ kclient.c:1662:59: warning: pointer targets in passing argument 1 of 'pktPackChangeReady' differ in signedness [-Wpointer-sign] 1662 | pktPackChangeReady(buf, &cr)); | ^~~ | | | char * packets.h:183:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 183 | int pktPackChangeReady(ubyte_pkt * buf, struct ChangeReady_pkt *pkt); | ~~~~~~~~~~~~^~~ --- clihandlers.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c clihandlers.c clihandlers.c: In function 'chSetGameMode': clihandlers.c:58:32: warning: pointer targets in passing argument 2 of 'pktUnpackSetGameMode' differ in signedness [-Wpointer-sign] 58 | pktUnpackSetGameMode(&sgm, pkt); | ^~~ | | | char * In file included from clihandlers.c:37: packets.h:160:67: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 160 | int pktUnpackSetGameMode(struct SetGameMode_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chSetGameType': clihandlers.c:67:32: warning: pointer targets in passing argument 2 of 'pktUnpackSetGameMode' differ in signedness [-Wpointer-sign] 67 | pktUnpackSetGameMode(&sgm, pkt); | ^~~ | | | char * packets.h:160:67: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 160 | int pktUnpackSetGameMode(struct SetGameMode_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chGetMyID': clihandlers.c:76:29: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 76 | pktUnpackPlayerID(&pid, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chNewPlayer': clihandlers.c:86:32: warning: pointer targets in passing argument 2 of 'pktUnpackNewPlayer' differ in signedness [-Wpointer-sign] 86 | pktUnpackNewPlayer(&nppkt, pkt); | ^~~ | | | char * packets.h:169:63: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 169 | int pktUnpackNewPlayer(struct NewPlayer_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c:93:28: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] 93 | pl->name = strdup(nppkt.name); | ~~~~~^~~~~ | | | ubyte_pkt * {aka unsigned char *} In file included from clihandlers.c:20: /usr/include/string.h:142:21: note: expected 'const char *' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 142 | extern char *strdup(const char *); | ^~~~~~~~~~~~ clihandlers.c: In function 'chRemovePlayer': clihandlers.c:107:29: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 107 | pktUnpackPlayerID(&pid, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chUpdateTerrain': clihandlers.c:149:36: warning: pointer targets in passing argument 2 of 'pktUnpackUpdateTerrain' differ in signedness [-Wpointer-sign] 149 | pktUnpackUpdateTerrain(&inpkt, pkt); | ^~~ | | | char * packets.h:190:71: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 190 | int pktUnpackUpdateTerrain(struct UpdateTerrain_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chNewTerrain': clihandlers.c:177:31: warning: pointer targets in passing argument 2 of 'pktUnpackTerrainInfo' differ in signedness [-Wpointer-sign] 177 | pktUnpackTerrainInfo(&ti, pkt); | ^~~ | | | char * packets.h:193:67: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 193 | int pktUnpackTerrainInfo(struct TerrainInfo_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chMessage': clihandlers.c:201:34: warning: pointer targets in passing argument 2 of 'pktUnpackMessage' differ in signedness [-Wpointer-sign] 201 | pktUnpackMessage(&mspkt, pkt); | ^~~ | | | char * packets.h:175:59: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 175 | int pktUnpackMessage(struct Message_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c:203:21: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 203 | strcpy(mcpkt.message, mspkt.message); | ~~~~~^~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} In file included from /usr/include/string.h:35: /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ clihandlers.c:203:36: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign] 203 | strcpy(mcpkt.message, mspkt.message); | ~~~~~^~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} /usr/include/iso/string_iso.h:75:43: note: expected 'const char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ clihandlers.c:206:41: warning: pointer targets in passing argument 2 of 'pktUnpackColoredMessage' differ in signedness [-Wpointer-sign] 206 | pktUnpackColoredMessage(&mcpkt, pkt); | ^~~ | | | char * packets.h:196:73: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 196 | int pktUnpackColoredMessage(struct ColoredMessage_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chSetName': clihandlers.c:239:30: warning: pointer targets in passing argument 2 of 'pktUnpackSetName' differ in signedness [-Wpointer-sign] 239 | pktUnpackSetName(&snpkt, pkt); | ^~~ | | | char * packets.h:166:59: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 166 | int pktUnpackSetName(struct SetName_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c:246:30: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] 246 | pcur->name = strdup(snpkt.name); | ~~~~~^~~~~ | | | ubyte_pkt * {aka unsigned char *} /usr/include/string.h:142:21: note: expected 'const char *' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 142 | extern char *strdup(const char *); | ^~~~~~~~~~~~ clihandlers.c: In function 'chSetTank': clihandlers.c:265:30: warning: pointer targets in passing argument 2 of 'pktUnpackSetTank' differ in signedness [-Wpointer-sign] 265 | pktUnpackSetTank(&stpkt, pkt); | ^~~ | | | char * packets.h:178:59: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 178 | int pktUnpackSetTank(struct SetTank_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chShotFired': clihandlers.c:320:28: warning: pointer targets in passing argument 2 of 'pktUnpackFireCmd' differ in signedness [-Wpointer-sign] 320 | pktUnpackFireCmd(&sht, pkt); | ^~~ | | | char * packets.h:181:59: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 181 | int pktUnpackFireCmd(struct FireCmd_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c:322:29: warning: pointer targets in passing argument 1 of 'wepLookupWeapon' differ in signedness [-Wpointer-sign] 322 | wp = wepLookupWeapon(sht.shottype); | ~~~^~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} In file included from player.h:26, from gfx.h:25, from clihandlers.c:33: weapons/weapon.h:93:35: note: expected 'char *' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 93 | Weapon_wep *wepLookupWeapon(char *name); | ~~~~~~^~~~ clihandlers.c: In function 'chSetReadiness': clihandlers.c:364:34: warning: pointer targets in passing argument 2 of 'pktUnpackChangeReady' differ in signedness [-Wpointer-sign] 364 | pktUnpackChangeReady(&chpkt, pkt); | ^~~ | | | char * packets.h:184:67: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 184 | int pktUnpackChangeReady(struct ChangeReady_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chActivateShots': clihandlers.c:379:29: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 379 | pktUnpackPlayerID(&gen, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chBuyWeapon': clihandlers.c:387:29: warning: pointer targets in passing argument 2 of 'pktUnpackBuyWeapon' differ in signedness [-Wpointer-sign] 387 | pktUnpackBuyWeapon(&bw, pkt); | ^~~ | | | char * packets.h:187:63: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 187 | int pktUnpackBuyWeapon(struct BuyWeapon_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c:390:32: warning: pointer targets in passing argument 2 of 'plBuyWeapon' differ in signedness [-Wpointer-sign] 390 | plBuyWeapon(gm_myid, bw.weapontype, bw.count, clFireWeapon); | ~~^~~~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} player.h:106:31: note: expected 'char *' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 106 | int plBuyWeapon(int id, char *wpn, int count, void (*activate) (void *)); | ~~~~~~^~~ clihandlers.c: In function 'chSellWeapon': clihandlers.c:399:29: warning: pointer targets in passing argument 2 of 'pktUnpackBuyWeapon' differ in signedness [-Wpointer-sign] 399 | pktUnpackBuyWeapon(&bw, pkt); | ^~~ | | | char * packets.h:187:63: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 187 | int pktUnpackBuyWeapon(struct BuyWeapon_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c:402:33: warning: pointer targets in passing argument 2 of 'plSellWeapon' differ in signedness [-Wpointer-sign] 402 | plSellWeapon(gm_myid, bw.weapontype, bw.count); | ~~^~~~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} player.h:115:32: note: expected 'char *' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 115 | int plSellWeapon(int id, char *wpn, int count); | ~~~~~~^~~ clihandlers.c: In function 'chSetMoney': clihandlers.c:412:29: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 412 | pktUnpackPlayerID(&pid, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chCheckProtocolVersion': clihandlers.c:432:29: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 432 | pktUnpackPlayerID(&pid, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chUpdateScore': clihandlers.c:449:28: warning: pointer targets in passing argument 2 of 'pktUnpackScore' differ in signedness [-Wpointer-sign] 449 | pktUnpackScore(&scpkt, pkt); | ^~~ | | | char * packets.h:202:55: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 202 | int pktUnpackScore(struct Score_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chUpdateRound': clihandlers.c:461:31: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 461 | pktUnpackPlayerID(&nrpkt, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chUpdateTotalRounds': clihandlers.c:470:31: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 470 | pktUnpackPlayerID(&nrpkt, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chSetWindSpeed': clihandlers.c:478:29: warning: pointer targets in passing argument 2 of 'pktUnpackWindSpeed' differ in signedness [-Wpointer-sign] 478 | pktUnpackWindSpeed(&ws, pkt); | ^~~ | | | char * packets.h:199:62: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 199 | int pktUnpackWindSpeed(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chSetWallType': clihandlers.c:487:28: warning: pointer targets in passing argument 2 of 'pktUnpackWallType' differ in signedness [-Wpointer-sign] 487 | pktUnpackWallType(&ws, pkt); | ^~~ | | | char * packets.h:205:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 205 | int pktUnpackWallType(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chUpdateFireInfo': clihandlers.c:503:31: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 503 | pktUnpackPlayerID(&nrpkt, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ clihandlers.c: In function 'chTankColor': clihandlers.c:524:29: warning: pointer targets in passing argument 2 of 'pktUnpackTankColor' differ in signedness [-Wpointer-sign] 524 | pktUnpackTankColor(&tc, pkt); | ^~~ | | | char * packets.h:172:63: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 172 | int pktUnpackTankColor(struct TankColor_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ --- text.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c text.c --- sky.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c sky.c --- kserver.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c kserver.c --- svrhandlers.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c svrhandlers.c --- kserver.o --- kserver.c: In function 'svEndRound': kserver.c:102:54: warning: pointer targets in passing argument 1 of 'pktPackScore' differ in signedness [-Wpointer-sign] 102 | rlBroadcast(relay, &bcast, buf, pktPackScore(buf, &scpkt)); | ^~~ | | | char * In file included from kserver.c:41: packets.h:201:30: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 201 | int pktPackScore(ubyte_pkt * buf, struct Score_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c:110:56: warning: pointer targets in passing argument 1 of 'pktPackSetGameMode' differ in signedness [-Wpointer-sign] 110 | rlBroadcast(relay, &bcast, buf, pktPackSetGameMode(buf, &gmpkt)); | ^~~ | | | char * packets.h:159:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 159 | int pktPackSetGameMode(ubyte_pkt * buf, struct SetGameMode_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c: In function 'svPregame': kserver.c:301:65: warning: pointer targets in passing argument 1 of 'pktPackPlayerID' differ in signedness [-Wpointer-sign] 301 | rlBroadcast(relay, &bcast, buf, pktPackPlayerID(buf, &nrpkt)); | ^~~ | | | char * packets.h:162:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 162 | int pktPackPlayerID(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c: In function 'svSendWind': kserver.c:339:51: warning: pointer targets in passing argument 1 of 'pktPackWindSpeed' differ in signedness [-Wpointer-sign] 339 | rlBroadcast(relay, who, buf, pktPackWindSpeed(buf, &pid)); | ^~~ | | | char * packets.h:198:34: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 198 | int pktPackWindSpeed(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c: In function 'svPlaygame': kserver.c:391:56: warning: pointer targets in passing argument 1 of 'pktPackSetGameMode' differ in signedness [-Wpointer-sign] 391 | rlBroadcast(relay, &bcast, buf, pktPackSetGameMode(buf, &gmpkt)); | ^~~ | | | char * packets.h:159:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 159 | int pktPackSetGameMode(ubyte_pkt * buf, struct SetGameMode_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c:402:56: warning: pointer targets in passing argument 1 of 'pktPackTerrainInfo' differ in signedness [-Wpointer-sign] 402 | rlBroadcast(relay, &bcast, buf, pktPackTerrainInfo(buf, &ti)); | ^~~ | | | char * packets.h:192:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 192 | int pktPackTerrainInfo(ubyte_pkt * buf, struct TerrainInfo_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c:410:60: warning: pointer targets in passing argument 1 of 'pktPackChangeReady' differ in signedness [-Wpointer-sign] 410 | rlBroadcast(relay, &bcast, buf, pktPackChangeReady(buf, &cr)); | ^~~ | | | char * packets.h:183:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 183 | int pktPackChangeReady(ubyte_pkt * buf, struct ChangeReady_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c:466:56: warning: pointer targets in passing argument 1 of 'pktPackSetTank' differ in signedness [-Wpointer-sign] 466 | rlBroadcast(relay, &bcast, buf, pktPackSetTank(buf, &st)); | ^~~ | | | char * packets.h:177:32: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 177 | int pktPackSetTank(ubyte_pkt * buf, struct SetTank_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c:512:53: warning: pointer targets in passing argument 1 of 'pktPackWallType' differ in signedness [-Wpointer-sign] 512 | rlBroadcast(relay, &bcast, buf, pktPackWallType(buf, &pid)); | ^~~ | | | char * packets.h:204:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 204 | int pktPackWallType(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c:523:61: warning: pointer targets in passing argument 1 of 'pktPackPlayerID' differ in signedness [-Wpointer-sign] 523 | rlBroadcast(relay, &bcast, buf, pktPackPlayerID(buf, &pid)); | ^~~ | | | char * packets.h:162:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 162 | int pktPackPlayerID(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c:571:61: warning: pointer targets in passing argument 1 of 'pktPackPlayerID' differ in signedness [-Wpointer-sign] 571 | rlBroadcast(relay, &bcast, buf, pktPackPlayerID(buf, &pid)); | ^~~ | | | char * packets.h:162:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 162 | int pktPackPlayerID(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c:582:65: warning: pointer targets in passing argument 1 of 'pktPackPlayerID' differ in signedness [-Wpointer-sign] 582 | rlBroadcast(relay, &bcast, buf, pktPackPlayerID(buf, &pid)); | ^~~ | | | char * packets.h:162:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 162 | int pktPackPlayerID(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c:612:31: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] 612 | && pcur->tankcolor != observer_color != 0) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ kserver.c:615:54: warning: pointer targets in passing argument 1 of 'pktPackPlayerID' differ in signedness [-Wpointer-sign] 615 | rlSend(relay, pcur->id, buf, pktPackPlayerID(buf, &pid)); | ^~~ | | | char * packets.h:162:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 162 | int pktPackPlayerID(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c:625:57: warning: pointer targets in passing argument 1 of 'pktPackPlayerID' differ in signedness [-Wpointer-sign] 625 | rlBroadcast(relay, &bcast, buf, pktPackPlayerID(buf, &pid)); | ^~~ | | | char * packets.h:162:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 162 | int pktPackPlayerID(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c: In function 'svPostgame': kserver.c:779:62: warning: pointer targets in passing argument 1 of 'pktPackPlayerID' differ in signedness [-Wpointer-sign] 779 | rlSend(relay, pcur->id, buf, pktPackPlayerID(buf, &pid)); | ^~~ | | | char * packets.h:162:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 162 | int pktPackPlayerID(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c:792:62: warning: pointer targets in passing argument 1 of 'pktPackScore' differ in signedness [-Wpointer-sign] 792 | rlBroadcast(relay, &bcast, buf, pktPackScore(buf, &scpkt)); | ^~~ | | | char * packets.h:201:30: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 201 | int pktPackScore(ubyte_pkt * buf, struct Score_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c:797:68: warning: pointer targets in passing argument 1 of 'pktPackChangeReady' differ in signedness [-Wpointer-sign] 797 | rlBroadcast(relay, &bcast, buf, pktPackChangeReady(buf, &cr)); | ^~~ | | | char * packets.h:183:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 183 | int pktPackChangeReady(ubyte_pkt * buf, struct ChangeReady_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c:814:68: warning: pointer targets in passing argument 1 of 'pktPackChangeReady' differ in signedness [-Wpointer-sign] 814 | rlBroadcast(relay, &bcast, buf, pktPackChangeReady(buf, &cr)); | ^~~ | | | char * packets.h:183:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 183 | int pktPackChangeReady(ubyte_pkt * buf, struct ChangeReady_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c:825:53: warning: pointer targets in passing argument 1 of 'pktPackPlayerID' differ in signedness [-Wpointer-sign] 825 | rlBroadcast(relay, &bcast, buf, pktPackPlayerID(buf, &nrpkt)); | ^~~ | | | char * packets.h:162:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 162 | int pktPackPlayerID(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ kserver.c:830:56: warning: pointer targets in passing argument 1 of 'pktPackSetGameMode' differ in signedness [-Wpointer-sign] 830 | rlBroadcast(relay, &bcast, buf, pktPackSetGameMode(buf, &gmpkt)); | ^~~ | | | char * packets.h:159:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 159 | int pktPackSetGameMode(ubyte_pkt * buf, struct SetGameMode_pkt *pkt); | ~~~~~~~~~~~~^~~ --- svrhandlers.o --- svrhandlers.c: In function 'shNewPlayer': svrhandlers.c:60:41: warning: pointer targets in passing argument 1 of 'pktPackPlayerID' differ in signedness [-Wpointer-sign] 60 | rlSend(rl, id, buf, pktPackPlayerID(buf, &urpkt)); | ^~~ | | | char * In file included from svrhandlers.c:32: packets.h:162:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 162 | int pktPackPlayerID(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:83:29: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 83 | strcpy(nppkt.name, pcur->name); | ~~~~~^~~~~ | | | ubyte_pkt * {aka unsigned char *} In file included from /usr/include/string.h:35, from svrhandlers.c:21: /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ svrhandlers.c:86:50: warning: pointer targets in passing argument 1 of 'pktPackNewPlayer' differ in signedness [-Wpointer-sign] 86 | rlSend(rl, id, buf, pktPackNewPlayer(buf, &nppkt)); | ^~~ | | | char * packets.h:168:34: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 168 | int pktPackNewPlayer(ubyte_pkt * buf, struct NewPlayer_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:96:21: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 96 | strcpy(nppkt.name, pl_end->name); | ~~~~~^~~~~ | | | ubyte_pkt * {aka unsigned char *} /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ svrhandlers.c:100:47: warning: pointer targets in passing argument 1 of 'pktPackNewPlayer' differ in signedness [-Wpointer-sign] 100 | rlBroadcast(rl, &x, buf, pktPackNewPlayer(buf, &nppkt)); | ^~~ | | | char * packets.h:168:34: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 168 | int pktPackNewPlayer(ubyte_pkt * buf, struct NewPlayer_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:106:44: warning: pointer targets in passing argument 1 of 'pktPackSetGameMode' differ in signedness [-Wpointer-sign] 106 | rlSend(rl, id, buf, pktPackSetGameMode(buf, &gmpkt)); | ^~~ | | | char * packets.h:159:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 159 | int pktPackSetGameMode(ubyte_pkt * buf, struct SetGameMode_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:112:44: warning: pointer targets in passing argument 1 of 'pktPackSetGameMode' differ in signedness [-Wpointer-sign] 112 | rlSend(rl, id, buf, pktPackSetGameMode(buf, &gmpkt)); | ^~~ | | | char * packets.h:159:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 159 | int pktPackSetGameMode(ubyte_pkt * buf, struct SetGameMode_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:118:41: warning: pointer targets in passing argument 1 of 'pktPackPlayerID' differ in signedness [-Wpointer-sign] 118 | rlSend(rl, id, buf, pktPackPlayerID(buf, &urpkt)); | ^~~ | | | char * packets.h:162:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 162 | int pktPackPlayerID(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:124:41: warning: pointer targets in passing argument 1 of 'pktPackPlayerID' differ in signedness [-Wpointer-sign] 124 | rlSend(rl, id, buf, pktPackPlayerID(buf, &urpkt)); | ^~~ | | | char * packets.h:162:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 162 | int pktPackPlayerID(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:130:41: warning: pointer targets in passing argument 1 of 'pktPackPlayerID' differ in signedness [-Wpointer-sign] 130 | rlSend(rl, id, buf, pktPackPlayerID(buf, &nrpkt)); | ^~~ | | | char * packets.h:162:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 162 | int pktPackPlayerID(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:134:41: warning: pointer targets in passing argument 1 of 'pktPackPlayerID' differ in signedness [-Wpointer-sign] 134 | rlSend(rl, id, buf, pktPackPlayerID(buf, &nrpkt)); | ^~~ | | | char * packets.h:162:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 162 | int pktPackPlayerID(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:148:48: warning: pointer targets in passing argument 1 of 'pktPackTerrainInfo' differ in signedness [-Wpointer-sign] 148 | rlSend(rl, id, buf, pktPackTerrainInfo(buf, &ti)); | ^~~ | | | char * packets.h:192:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 192 | int pktPackTerrainInfo(ubyte_pkt * buf, struct TerrainInfo_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:154:45: warning: pointer targets in passing argument 1 of 'pktPackWallType' differ in signedness [-Wpointer-sign] 154 | rlSend(rl, id, buf, pktPackWallType(buf, &urpkt)); | ^~~ | | | char * packets.h:204:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 204 | int pktPackWallType(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:172:52: warning: pointer targets in passing argument 1 of 'pktPackSetTank' differ in signedness [-Wpointer-sign] 172 | rlSend(rl, id, buf, pktPackSetTank(buf, &stpkt)); | ^~~ | | | char * packets.h:177:32: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 177 | int pktPackSetTank(ubyte_pkt * buf, struct SetTank_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c: In function 'shMessage': svrhandlers.c:187:33: warning: pointer targets in passing argument 2 of 'pktUnpackMessage' differ in signedness [-Wpointer-sign] 187 | pktUnpackMessage(&incoming, pkt); | ^~~ | | | char * packets.h:175:59: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 175 | int pktUnpackMessage(struct Message_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ svrhandlers.c:194:33: warning: pointer targets in passing argument 2 of 'strncmp' differ in signedness [-Wpointer-sign] 194 | if(!strncmp("/me ", incoming.message, 4) && strlen(incoming.message) > 4) | ~~~~~~~~^~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} /usr/include/iso/string_iso.h:81:34: note: expected 'const char *' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 81 | extern int strncmp(const char *, const char *, size_t); | ^~~~~~~~~~~~ svrhandlers.c:194:64: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 194 | if(!strncmp("/me ", incoming.message, 4) && strlen(incoming.message) > 4) | ~~~~~~~~^~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} /usr/include/iso/string_iso.h:79:22: note: expected 'const char *' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 79 | extern size_t strlen(const char *); | ^~~~~~~~~~~~ svrhandlers.c:195:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 195 | sprintf(outgoing.message, "* %s %s", p->name, incoming.message + 4); | ~~~~~~~~^~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} In file included from /usr/include/stdio.h:83, from svrhandlers.c:20: /usr/include/iso/stdio_iso.h:212:25: note: expected 'char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 212 | extern int sprintf(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, ...); | ^ svrhandlers.c:197:25: warning: pointer targets in passing argument 1 of 'sprintf' differ in signedness [-Wpointer-sign] 197 | sprintf(outgoing.message, "<%s> %s", p->name, incoming.message); | ~~~~~~~~^~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} /usr/include/iso/stdio_iso.h:212:25: note: expected 'char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 212 | extern int sprintf(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, ...); | ^ svrhandlers.c:199:52: warning: pointer targets in passing argument 1 of 'pktPackColoredMessage' differ in signedness [-Wpointer-sign] 199 | rlBroadcast(rl, &x, buf, pktPackColoredMessage(buf, &outgoing)); | ^~~ | | | char * packets.h:195:39: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 195 | int pktPackColoredMessage(ubyte_pkt * buf, struct ColoredMessage_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c: In function 'shSendTerrain': svrhandlers.c:235:50: warning: pointer targets in passing argument 1 of 'pktPackUpdateTerrain' differ in signedness [-Wpointer-sign] 235 | rlSend(rl, id, buf, pktPackUpdateTerrain(buf, &outpkt)); | ^~~ | | | char * packets.h:189:38: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 189 | int pktPackUpdateTerrain(ubyte_pkt * buf, struct UpdateTerrain_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c: In function 'shSetReady': svrhandlers.c:253:31: warning: pointer targets in passing argument 2 of 'pktUnpackChangeReady' differ in signedness [-Wpointer-sign] 253 | pktUnpackChangeReady(&cr, pkt); | ^~~ | | | char * packets.h:184:67: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 184 | int pktUnpackChangeReady(struct ChangeReady_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ svrhandlers.c:340:57: warning: pointer targets in passing argument 1 of 'pktPackChangeReady' differ in signedness [-Wpointer-sign] 340 | rlBroadcast(rl, &toall, str, pktPackChangeReady(str, &cr)); | ^~~ | | | char * packets.h:183:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 183 | int pktPackChangeReady(ubyte_pkt * buf, struct ChangeReady_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:372:55: warning: pointer targets in passing argument 1 of 'pktPackTankColor' differ in signedness [-Wpointer-sign] 372 | rlBroadcast(rl, &toall, str, pktPackTankColor(str, &tc)); | ^~~ | | | char * packets.h:171:34: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 171 | int pktPackTankColor(ubyte_pkt * buf, struct TankColor_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c: In function 'shSetName': svrhandlers.c:391:30: warning: pointer targets in passing argument 2 of 'pktUnpackMessage' differ in signedness [-Wpointer-sign] 391 | pktUnpackMessage(&inpkt, pkt); | ^~~ | | | char * packets.h:175:59: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 175 | int pktUnpackMessage(struct Message_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ svrhandlers.c:395:19: warning: pointer targets in initialization of 'char *' from 'ubyte_pkt *' {aka 'unsigned char *'} differ in signedness [-Wpointer-sign] 395 | char *n = inpkt.message; | ^~~~~ svrhandlers.c:426:34: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] 426 | pcur->name = strdup(inpkt.message); | ~~~~~^~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} /usr/include/string.h:142:21: note: expected 'const char *' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 142 | extern char *strdup(const char *); | ^~~~~~~~~~~~ svrhandlers.c:446:17: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 446 | strcpy(snpkt.name, pcur->name); | ~~~~~^~~~~ | | | ubyte_pkt * {aka unsigned char *} /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ svrhandlers.c:447:49: warning: pointer targets in passing argument 1 of 'pktPackSetName' differ in signedness [-Wpointer-sign] 447 | rlBroadcast(rl, &bcast, str, pktPackSetName(str, &snpkt)); | ^~~ | | | char * packets.h:165:32: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 165 | int pktPackSetName(ubyte_pkt * buf, struct SetName_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:477:55: warning: pointer targets in passing argument 1 of 'pktPackTankColor' differ in signedness [-Wpointer-sign] 477 | rlBroadcast(rl, &bcast, str, pktPackTankColor(str, &tc)); | ^~~ | | | char * packets.h:171:34: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 171 | int pktPackTankColor(ubyte_pkt * buf, struct TankColor_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:484:57: warning: pointer targets in passing argument 1 of 'pktPackChangeReady' differ in signedness [-Wpointer-sign] 484 | rlBroadcast(rl, &bcast, str, pktPackChangeReady(str, &cr)); | ^~~ | | | char * packets.h:183:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 183 | int pktPackChangeReady(ubyte_pkt * buf, struct ChangeReady_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c: In function 'shFireCommand': svrhandlers.c:516:27: warning: pointer targets in passing argument 2 of 'pktUnpackFireCmd' differ in signedness [-Wpointer-sign] 516 | pktUnpackFireCmd(&fc, pkt); | ^~~ | | | char * packets.h:181:59: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 181 | int pktUnpackFireCmd(struct FireCmd_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ svrhandlers.c:528:28: warning: pointer targets in passing argument 1 of 'wepLookupWeapon' differ in signedness [-Wpointer-sign] 528 | wp = wepLookupWeapon(fc.shottype); | ~~^~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} In file included from player.h:26, from svrhandlers.c:28: weapons/weapon.h:93:35: note: expected 'char *' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 93 | Weapon_wep *wepLookupWeapon(char *name); | ~~~~~~^~~~ svrhandlers.c:543:18: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 543 | strcpy(sf.shottype, fc.shottype); | ~~^~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ svrhandlers.c:543:31: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign] 543 | strcpy(sf.shottype, fc.shottype); | ~~^~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} /usr/include/iso/string_iso.h:75:43: note: expected 'const char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ svrhandlers.c:553:53: warning: pointer targets in passing argument 1 of 'pktPackFireCmd' differ in signedness [-Wpointer-sign] 553 | rlBroadcast(rl, &toall, buf, pktPackFireCmd(buf, &sf)); | ^~~ | | | char * packets.h:180:32: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 180 | int pktPackFireCmd(ubyte_pkt * buf, struct FireCmd_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c: In function 'shBuyWeapon': svrhandlers.c:588:29: warning: pointer targets in passing argument 2 of 'pktUnpackBuyWeapon' differ in signedness [-Wpointer-sign] 588 | pktUnpackBuyWeapon(&bw, pkt); | ^~~ | | | char * packets.h:187:63: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 187 | int pktUnpackBuyWeapon(struct BuyWeapon_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ svrhandlers.c:590:31: warning: pointer targets in passing argument 2 of 'plBuyWeapon' differ in signedness [-Wpointer-sign] 590 | if((r = plBuyWeapon(id, bw.weapontype, bw.count, NULL)) == 0) | ~~^~~~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} player.h:106:31: note: expected 'char *' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 106 | int plBuyWeapon(int id, char *wpn, int count, void (*activate) (void *)); | ~~~~~~^~~ svrhandlers.c:596:45: warning: pointer targets in passing argument 1 of 'pktPackPlayerID' differ in signedness [-Wpointer-sign] 596 | rlSend(rl, id, buf, pktPackPlayerID(buf, &money)); | ^~~ | | | char * packets.h:162:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 162 | int pktPackPlayerID(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:601:26: warning: pointer targets in passing argument 1 of 'pktPackBuyWeapon' differ in signedness [-Wpointer-sign] 601 | pktPackBuyWeapon(pkt, &bw); | ^~~ | | | char * packets.h:186:34: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 186 | int pktPackBuyWeapon(ubyte_pkt * buf, struct BuyWeapon_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c: In function 'shSellWeapon': svrhandlers.c:631:29: warning: pointer targets in passing argument 2 of 'pktUnpackBuyWeapon' differ in signedness [-Wpointer-sign] 631 | pktUnpackBuyWeapon(&bw, pkt); | ^~~ | | | char * packets.h:187:63: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 187 | int pktUnpackBuyWeapon(struct BuyWeapon_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ svrhandlers.c:633:27: warning: pointer targets in passing argument 2 of 'plSellWeapon' differ in signedness [-Wpointer-sign] 633 | if(plSellWeapon(id, bw.weapontype, bw.count) == 0) | ~~^~~~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} player.h:115:32: note: expected 'char *' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 115 | int plSellWeapon(int id, char *wpn, int count); | ~~~~~~^~~ svrhandlers.c:640:45: warning: pointer targets in passing argument 1 of 'pktPackPlayerID' differ in signedness [-Wpointer-sign] 640 | rlSend(rl, id, buf, pktPackPlayerID(buf, &money)); | ^~~ | | | char * packets.h:162:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 162 | int pktPackPlayerID(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:645:26: warning: pointer targets in passing argument 1 of 'pktPackBuyWeapon' differ in signedness [-Wpointer-sign] 645 | pktPackBuyWeapon(pkt, &bw); | ^~~ | | | char * packets.h:186:34: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 186 | int pktPackBuyWeapon(ubyte_pkt * buf, struct BuyWeapon_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c: In function 'shResync': svrhandlers.c:669:48: warning: pointer targets in passing argument 1 of 'pktPackTerrainInfo' differ in signedness [-Wpointer-sign] 669 | rlSend(rl, id, buf, pktPackTerrainInfo(buf, &ti)); | ^~~ | | | char * packets.h:192:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 192 | int pktPackTerrainInfo(ubyte_pkt * buf, struct TerrainInfo_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c:682:52: warning: pointer targets in passing argument 1 of 'pktPackSetTank' differ in signedness [-Wpointer-sign] 682 | rlSend(rl, id, buf, pktPackSetTank(buf, &stpkt)); | ^~~ | | | char * packets.h:177:32: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 177 | int pktPackSetTank(ubyte_pkt * buf, struct SetTank_pkt *pkt); | ~~~~~~~~~~~~^~~ svrhandlers.c: In function 'shTheyLeft': svrhandlers.c:738:50: warning: pointer targets in passing argument 1 of 'pktPackPlayerID' differ in signedness [-Wpointer-sign] 738 | rlBroadcast(rl, &toall, buf, pktPackPlayerID(buf, &pid)); | ^~~ | | | char * packets.h:162:33: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 162 | int pktPackPlayerID(ubyte_pkt * buf, struct PlayerID_pkt *pkt); | ~~~~~~~~~~~~^~~ --- ai-moron.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c ai-moron.c ai-moron.c: In function 'aiPregame': ai-moron.c:289:31: warning: pointer targets in passing argument 1 of 'pktPackChangeReady' differ in signedness [-Wpointer-sign] 289 | pktPackChangeReady(buf, &cr)); | ^~~ | | | char * In file included from ai-moron.c:31: packets.h:183:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 183 | int pktPackChangeReady(ubyte_pkt * buf, struct ChangeReady_pkt *pkt); | ~~~~~~~~~~~~^~~ ai-moron.c: In function 'aiPlaygame': ai-moron.c:322:15: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 322 | strcpy(sht.shottype, ((Weapon_wep *) gm_curitem->info)->name); | ~~~^~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} In file included from /usr/include/string.h:35, from ai-moron.c:20: /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ ai-moron.c:323:46: warning: pointer targets in passing argument 1 of 'pktPackFireCmd' differ in signedness [-Wpointer-sign] 323 | rlSend(relay, svrid, buf, pktPackFireCmd(buf, &sht)); | ^~~ | | | char * packets.h:180:32: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 180 | int pktPackFireCmd(ubyte_pkt * buf, struct FireCmd_pkt *pkt); | ~~~~~~~~~~~~^~~ ai-moron.c:340:23: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 340 | strcpy(sht.shottype, ((Weapon_wep *) gm_curitem->info)->name); | ~~~^~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ ai-moron.c:341:54: warning: pointer targets in passing argument 1 of 'pktPackFireCmd' differ in signedness [-Wpointer-sign] 341 | rlSend(relay, svrid, buf, pktPackFireCmd(buf, &sht)); | ^~~ | | | char * packets.h:180:32: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 180 | int pktPackFireCmd(ubyte_pkt * buf, struct FireCmd_pkt *pkt); | ~~~~~~~~~~~~^~~ ai-moron.c: In function 'aiPostgame': ai-moron.c:404:31: warning: pointer targets in passing argument 1 of 'pktPackChangeReady' differ in signedness [-Wpointer-sign] 404 | pktPackChangeReady(buf, &cr)); | ^~~ | | | char * packets.h:183:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 183 | int pktPackChangeReady(ubyte_pkt * buf, struct ChangeReady_pkt *pkt); | ~~~~~~~~~~~~^~~ --- svrhandlers.o --- svrhandlers.c: In function 'shSetName': svrhandlers.c:412:25: warning: '%s' directive writing up to 255 bytes into a region of size 246 [-Wformat-overflow=] 412 | sprintf(str, "MSServer: %s has joined the game", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 413 | inpkt.message) + 1); | ~~~~~~~~~~~~~~ svrhandlers.c:412:25: note: 'sprintf' output between 31 and 286 bytes into a destination of size 256 svrhandlers.c:401:21: warning: '%s' directive writing up to 255 bytes into a region of size 219 [-Wformat-overflow=] 401 | sprintf(str, | ^~~~~~~~~~~~ 402 | "MSServer: %s has changed their name to %s", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 403 | pcur->name, n) + 1); | ~~~~~~~~~~~~~~ svrhandlers.c:401:21: note: 'sprintf' output 38 or more bytes (assuming 293) into a destination of size 256 --- aihandlers.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c aihandlers.c --- rnd.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c rnd.c --- ai-clever.o --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -DPKG_SYSCONFDIR="\"/opt/local/etc\"" -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -c ai-clever.c --- aihandlers.o --- aihandlers.c: In function 'aihSetGameMode': aihandlers.c:47:32: warning: pointer targets in passing argument 2 of 'pktUnpackSetGameMode' differ in signedness [-Wpointer-sign] 47 | pktUnpackSetGameMode(&sgm, pkt); | ^~~ | | | char * In file included from aihandlers.c:35: packets.h:160:67: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 160 | int pktUnpackSetGameMode(struct SetGameMode_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aiSetGameType': aihandlers.c:56:32: warning: pointer targets in passing argument 2 of 'pktUnpackSetGameMode' differ in signedness [-Wpointer-sign] 56 | pktUnpackSetGameMode(&sgm, pkt); | ^~~ | | | char * packets.h:160:67: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 160 | int pktUnpackSetGameMode(struct SetGameMode_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aihGetMyID': aihandlers.c:65:29: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 65 | pktUnpackPlayerID(&pid, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aihNewPlayer': aihandlers.c:75:32: warning: pointer targets in passing argument 2 of 'pktUnpackNewPlayer' differ in signedness [-Wpointer-sign] 75 | pktUnpackNewPlayer(&nppkt, pkt); | ^~~ | | | char * packets.h:169:63: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 169 | int pktUnpackNewPlayer(struct NewPlayer_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c:82:28: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] 82 | pl->name = strdup(nppkt.name); | ~~~~~^~~~~ | | | ubyte_pkt * {aka unsigned char *} In file included from aihandlers.c:21: /usr/include/string.h:142:21: note: expected 'const char *' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 142 | extern char *strdup(const char *); | ^~~~~~~~~~~~ aihandlers.c: In function 'aihRemovePlayer': aihandlers.c:94:29: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 94 | pktUnpackPlayerID(&pid, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aihUpdateTerrain': aihandlers.c:127:36: warning: pointer targets in passing argument 2 of 'pktUnpackUpdateTerrain' differ in signedness [-Wpointer-sign] 127 | pktUnpackUpdateTerrain(&inpkt, pkt); | ^~~ | | | char * packets.h:190:71: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 190 | int pktUnpackUpdateTerrain(struct UpdateTerrain_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aihNewTerrain': aihandlers.c:144:31: warning: pointer targets in passing argument 2 of 'pktUnpackTerrainInfo' differ in signedness [-Wpointer-sign] 144 | pktUnpackTerrainInfo(&ti, pkt); | ^~~ | | | char * packets.h:193:67: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 193 | int pktUnpackTerrainInfo(struct TerrainInfo_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aihMessage': aihandlers.c:164:34: warning: pointer targets in passing argument 2 of 'pktUnpackMessage' differ in signedness [-Wpointer-sign] 164 | pktUnpackMessage(&mspkt, pkt); | ^~~ | | | char * packets.h:175:59: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 175 | int pktUnpackMessage(struct Message_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c:166:21: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 166 | strcpy(mcpkt.message, mspkt.message); | ~~~~~^~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} In file included from /usr/include/string.h:35: /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ aihandlers.c:166:36: warning: pointer targets in passing argument 2 of 'strcpy' differ in signedness [-Wpointer-sign] 166 | strcpy(mcpkt.message, mspkt.message); | ~~~~~^~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} /usr/include/iso/string_iso.h:75:43: note: expected 'const char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ aihandlers.c:169:41: warning: pointer targets in passing argument 2 of 'pktUnpackColoredMessage' differ in signedness [-Wpointer-sign] 169 | pktUnpackColoredMessage(&mcpkt, pkt); | ^~~ | | | char * packets.h:196:73: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 196 | int pktUnpackColoredMessage(struct ColoredMessage_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aihSetName': aihandlers.c:178:30: warning: pointer targets in passing argument 2 of 'pktUnpackSetName' differ in signedness [-Wpointer-sign] 178 | pktUnpackSetName(&snpkt, pkt); | ^~~ | | | char * packets.h:166:59: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 166 | int pktUnpackSetName(struct SetName_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c:184:30: warning: pointer targets in passing argument 1 of 'strdup' differ in signedness [-Wpointer-sign] 184 | pcur->name = strdup(snpkt.name); | ~~~~~^~~~~ | | | ubyte_pkt * {aka unsigned char *} /usr/include/string.h:142:21: note: expected 'const char *' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 142 | extern char *strdup(const char *); | ^~~~~~~~~~~~ aihandlers.c: In function 'aihSetTank': aihandlers.c:200:30: warning: pointer targets in passing argument 2 of 'pktUnpackSetTank' differ in signedness [-Wpointer-sign] 200 | pktUnpackSetTank(&stpkt, pkt); | ^~~ | | | char * packets.h:178:59: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 178 | int pktUnpackSetTank(struct SetTank_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aihShotFired': aihandlers.c:231:28: warning: pointer targets in passing argument 2 of 'pktUnpackFireCmd' differ in signedness [-Wpointer-sign] 231 | pktUnpackFireCmd(&sht, pkt); | ^~~ | | | char * packets.h:181:59: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 181 | int pktUnpackFireCmd(struct FireCmd_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c:233:29: warning: pointer targets in passing argument 1 of 'wepLookupWeapon' differ in signedness [-Wpointer-sign] 233 | wp = wepLookupWeapon(sht.shottype); | ~~~^~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} In file included from player.h:26, from gfx.h:25, from aihandlers.c:32: weapons/weapon.h:93:35: note: expected 'char *' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 93 | Weapon_wep *wepLookupWeapon(char *name); | ~~~~~~^~~~ aihandlers.c: In function 'aihSetReadiness': aihandlers.c:267:34: warning: pointer targets in passing argument 2 of 'pktUnpackChangeReady' differ in signedness [-Wpointer-sign] 267 | pktUnpackChangeReady(&chpkt, pkt); | ^~~ | | | char * packets.h:184:67: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 184 | int pktUnpackChangeReady(struct ChangeReady_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aihActivateShots': aihandlers.c:282:29: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 282 | pktUnpackPlayerID(&gen, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aihBuyWeapon': aihandlers.c:290:29: warning: pointer targets in passing argument 2 of 'pktUnpackBuyWeapon' differ in signedness [-Wpointer-sign] 290 | pktUnpackBuyWeapon(&bw, pkt); | ^~~ | | | char * packets.h:187:63: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 187 | int pktUnpackBuyWeapon(struct BuyWeapon_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c:293:32: warning: pointer targets in passing argument 2 of 'plBuyWeapon' differ in signedness [-Wpointer-sign] 293 | plBuyWeapon(gm_myid, bw.weapontype, bw.count, NULL); | ~~^~~~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} player.h:106:31: note: expected 'char *' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 106 | int plBuyWeapon(int id, char *wpn, int count, void (*activate) (void *)); | ~~~~~~^~~ aihandlers.c: In function 'aihSellWeapon': aihandlers.c:302:29: warning: pointer targets in passing argument 2 of 'pktUnpackBuyWeapon' differ in signedness [-Wpointer-sign] 302 | pktUnpackBuyWeapon(&bw, pkt); | ^~~ | | | char * packets.h:187:63: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 187 | int pktUnpackBuyWeapon(struct BuyWeapon_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c:305:33: warning: pointer targets in passing argument 2 of 'plSellWeapon' differ in signedness [-Wpointer-sign] 305 | plSellWeapon(gm_myid, bw.weapontype, bw.count); | ~~^~~~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} player.h:115:32: note: expected 'char *' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 115 | int plSellWeapon(int id, char *wpn, int count); | ~~~~~~^~~ aihandlers.c: In function 'aihSetMoney': aihandlers.c:314:29: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 314 | pktUnpackPlayerID(&pid, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aihCheckProtocolVersion': aihandlers.c:323:29: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 323 | pktUnpackPlayerID(&pid, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aiUpdateScore': aihandlers.c:340:28: warning: pointer targets in passing argument 2 of 'pktUnpackScore' differ in signedness [-Wpointer-sign] 340 | pktUnpackScore(&scpkt, pkt); | ^~~ | | | char * packets.h:202:55: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 202 | int pktUnpackScore(struct Score_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aiUpdateRound': aihandlers.c:352:31: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 352 | pktUnpackPlayerID(&nrpkt, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aiUpdateTotalRounds': aihandlers.c:361:31: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 361 | pktUnpackPlayerID(&nrpkt, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aiSetWindSpeed': aihandlers.c:371:29: warning: pointer targets in passing argument 2 of 'pktUnpackWindSpeed' differ in signedness [-Wpointer-sign] 371 | pktUnpackWindSpeed(&ws, pkt); | ^~~ | | | char * packets.h:199:62: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 199 | int pktUnpackWindSpeed(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aiSetWallType': aihandlers.c:379:28: warning: pointer targets in passing argument 2 of 'pktUnpackWallType' differ in signedness [-Wpointer-sign] 379 | pktUnpackWallType(&ws, pkt); | ^~~ | | | char * packets.h:205:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 205 | int pktUnpackWallType(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ aihandlers.c: In function 'aiUpdateFireInfo': aihandlers.c:394:31: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 394 | pktUnpackPlayerID(&nrpkt, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ --- ai-clever.o --- ai-clever.c: In function 'clvSetReadiness': ai-clever.c:428:34: warning: pointer targets in passing argument 2 of 'pktUnpackChangeReady' differ in signedness [-Wpointer-sign] 428 | pktUnpackChangeReady(&chpkt, pkt); | ^~~ | | | char * In file included from ai-clever.c:44: packets.h:184:67: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 184 | int pktUnpackChangeReady(struct ChangeReady_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ ai-clever.c: In function 'clvRemovePlayer': ai-clever.c:449:29: warning: pointer targets in passing argument 2 of 'pktUnpackPlayerID' differ in signedness [-Wpointer-sign] 449 | pktUnpackPlayerID(&pid, pkt); | ^~~ | | | char * packets.h:163:61: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 163 | int pktUnpackPlayerID(struct PlayerID_pkt *pkt, ubyte_pkt * buf); | ~~~~~~~~~~~~^~~ ai-clever.c: In function 'clvBuyWeapons': ai-clever.c:639:14: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 639 | strcpy(bw.weapontype, weap->name); | ~~^~~~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} In file included from /usr/include/string.h:35, from ai-clever.c:31: /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ ai-clever.c:640:48: warning: pointer targets in passing argument 1 of 'pktPackBuyWeapon' differ in signedness [-Wpointer-sign] 640 | rlSend(relay, svrid, buf, pktPackBuyWeapon(buf, &bw)); | ^~~ | | | char * packets.h:186:34: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 186 | int pktPackBuyWeapon(ubyte_pkt * buf, struct BuyWeapon_pkt *pkt); | ~~~~~~~~~~~~^~~ ai-clever.c: In function 'clvPregame': ai-clever.c:694:31: warning: pointer targets in passing argument 1 of 'pktPackChangeReady' differ in signedness [-Wpointer-sign] 694 | pktPackChangeReady(buf, &cr)); | ^~~ | | | char * packets.h:183:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 183 | int pktPackChangeReady(ubyte_pkt * buf, struct ChangeReady_pkt *pkt); | ~~~~~~~~~~~~^~~ ai-clever.c: In function 'clvFireShot': ai-clever.c:934:15: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 934 | strcpy(sht.shottype, ((Weapon_wep *) gm_curitem->info)->name); | ~~~^~~~~~~~~ | | | ubyte_pkt * {aka unsigned char *} /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'ubyte_pkt *' {aka 'unsigned char *'} 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ ai-clever.c:935:46: warning: pointer targets in passing argument 1 of 'pktPackFireCmd' differ in signedness [-Wpointer-sign] 935 | rlSend(relay, svrid, buf, pktPackFireCmd(buf, &sht)); | ^~~ | | | char * packets.h:180:32: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 180 | int pktPackFireCmd(ubyte_pkt * buf, struct FireCmd_pkt *pkt); | ~~~~~~~~~~~~^~~ ai-clever.c: In function 'clvPostgame': ai-clever.c:1041:31: warning: pointer targets in passing argument 1 of 'pktPackChangeReady' differ in signedness [-Wpointer-sign] 1041 | pktPackChangeReady(buf, &cr)); | ^~~ | | | char * packets.h:183:36: note: expected 'ubyte_pkt *' {aka 'unsigned char *'} but argument is of type 'char *' 183 | int pktPackChangeReady(ubyte_pkt * buf, struct ChangeReady_pkt *pkt); | ~~~~~~~~~~~~^~~ --- koth --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -L/opt/local/lib -Wl,-R/opt/local/lib -pthread -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -o koth tcpcore.o relay.o player.o packets.o terrain.o ballistics.o cfgfile.o log.o demo.o conversions.o kclient.o gfx.o clihandlers.o text.o sky.o -Lweapons -lkothweapons -lkothweapongfx -lggi -lm -lnsl -lsocket -lpthread -lrt --- koths --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -L/opt/local/lib -Wl,-R/opt/local/lib -pthread -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -o koths tcpcore.o relay.o player.o packets.o terrain.o ballistics.o cfgfile.o log.o demo.o conversions.o kserver.o svrhandlers.o -Lweapons -lkothweapons -lm -lnsl -lsocket -lpthread -lrt --- kmoron-ai --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -L/opt/local/lib -Wl,-R/opt/local/lib -pthread -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -o kmoron-ai tcpcore.o relay.o player.o packets.o terrain.o ballistics.o cfgfile.o log.o demo.o conversions.o ai-moron.o aihandlers.o rnd.o -Lweapons -lkothweapons -lm -lnsl -lsocket -lpthread -lrt --- kclever-ai --- gcc -g -O2 -Wall -Wimplicit -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -pthread -I/opt/local/include -I/opt/local/include/ncurses -I/usr/include -L/opt/local/lib -Wl,-R/opt/local/lib -pthread -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 -o kclever-ai tcpcore.o relay.o player.o packets.o terrain.o ballistics.o cfgfile.o log.o demo.o conversions.o ai-clever.o aihandlers.o rnd.o -Lweapons -lkothweapons -lm -lnsl -lsocket -lpthread -lrt Making all in doc Making all in . --- config.h ---