summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* hdlcutil: Remove HDRVC_KERNEL ifdefery.Ralf Baechle2017-01-274-56/+0
| | | | | | HDRVC_KERNEL was always defined to on. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsparms: Fix signedness warning.Ralf Baechle2017-01-261-1/+1
| | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -O2 -Wall -pedantic -MT rsparms.o -MD -MP -MF .deps/rsparms.Tpo -c -o rsparms.o rsparms.c rsparms.c: In function ‘nodes’: rsparms.c:126:23: warning: format ‘%hd’ expects argument of type ‘short int *’, but argument 3 has type ‘short unsigned int *’ [-Wformat=] if (sscanf(mask, "%hd", &rs_node.mask) != 1) { ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rip98d: Fix warning.Ralf Baechle2017-01-261-1/+2
| | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -O2 -Wall -pedantic -MT rip98d.o -MD -MP -MF .deps/rip98d.Tpo -c -o rip98d.o rip98d.c rip98d.c: In function ‘read_routes’: rip98d.c:189:33: warning: format ‘%X’ expects argument of type ‘unsigned int *’, but argument 6 has type ‘int *’ [-Wformat=] n = sscanf(buffer, "%s %s %s %X %d %d %d %s %d %d\n", ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* axspawn: Sort out pointer signedness mess.Ralf Baechle2017-01-261-3/+4
| | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -O2 -Wall -pedantic -MT axspawn.o -MD -MP -MF .deps/axspawn.Tpo -c -o axspawn.o axspawn.c axspawn.c: In function ‘encstathuf’: axspawn.c:555:15: warning: overflow in implicit constant conversion [-Woverflow] dest[0] = 255; ^~~ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* mcsh: Fix warning about format string.Ralf Baechle2017-01-261-2/+2
| | | | | | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -O2 -Wall -pedantic -MT mcs2h.o -MD -MP -MF .deps/mcs2h.Tpo -c -o mcs2h.o mcs2h.c mcs2h.c: In function ‘in2hex’: mcs2h.c:13:16: warning: format ‘%x’ expects argument of type ‘unsigned int *’, but argument 3 has type ‘int *’ [-Wformat=] sscanf(str, "%x", &val); ^ mcs2h.c: In function ‘in4hex’: mcs2h.c:41:16: warning: format ‘%x’ expects argument of type ‘unsigned int *’, but argument 3 has type ‘int *’ [-Wformat=] sscanf(str, "%x", &val); ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* yamcfg: Fix warning about format string.Ralf Baechle2017-01-261-1/+1
| | | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -O2 -Wall -pedantic -MT yamcfg.o -MD -MP -MF .deps/yamcfg.Tpo -c -o yamcfg.o yamc fg.c yamcfg.c: In function ‘in2hex’: yamcfg.c:83:17: warning: format ‘%x’ expects argument of type ‘unsigned int *’, but argument 3 has type ‘int *’ [-Wformat=] sscanf (str, "%x", &val); ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Use the right way to get the required feature set from glibc.Ralf Baechle2017-01-2618-14/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __USE_XOPEN doesn't work to get ptsname() etc. from libc. This is Linux-specific software so convert to _GNU_SOURCE. make[2]: Entering directory '/home/ralf/src/ax25/ax25-tools/kiss' gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -O 2 -Wall -pedantic -MT kissattach.o -MD -MP -MF .deps/kissattach.Tpo -c -o kissattach.o kissattach.c kissattach.c: In function ‘main’: kissattach.c:312:18: warning: implicit declaration of function ‘ptsname’ [-Wimplicit-function-declaration] if ((namepts = ptsname(fd)) == NULL) { ^~~~~~~ kissattach.c:312:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion] if ((namepts = ptsname(fd)) == NULL) { ^ kissattach.c:317:7: warning: implicit declaration of function ‘unlockpt’ [-Wimplicit-function-declaration] if (unlockpt(fd) == -1) { ^~~~~~~~ [...] gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -O2 -Wall -pedantic -MT kissnetd.o -MD -MP -MF .deps/kissnetd.Tpo -c -o kissnetd.o kissnetd.c kissnetd.c: In function ‘ReopenPort’: kissnetd.c:134:16: warning: implicit declaration of function ‘ptsname’ [-Wimplicit-function-declaration] if ((npts = ptsname(PortList[PortNumber]->Fd)) == NULL) { ^~~~~~~ kissnetd.c:134:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion] if ((npts = ptsname(PortList[PortNumber]->Fd)) == NULL) { ^ kissnetd.c:143:8: warning: implicit declaration of function ‘unlockpt’ [-Wimplicit-function-declaration] if (unlockpt(PortList[PortNumber]->Fd) == -1) { ^~~~~~~~ [...] gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -O2 -Wall -pedantic -MT mkiss.o -MD -MP -MF .deps/mkiss.Tpo -c -o mkiss.o mkiss.c mkiss.c: In function ‘poll’: mkiss.c:68:15: warning: overflow in implicit constant conversion [-Woverflow] #define FEND 0300 /* Frame End (0xC0) */ ^ mkiss.c:149:14: note: in expansion of macro ‘FEND’ buffer[0] = FEND; ^~~~ mkiss.c:68:15: warning: overflow in implicit constant conversion [-Woverflow] #define FEND 0300 /* Frame End (0xC0) */ ^ mkiss.c:151:14: note: in expansion of macro ‘FEND’ buffer[2] = FEND; ^~~~ mkiss.c: In function ‘main’: mkiss.c:568:16: warning: implicit declaration of function ‘ptsname’ [-Wimplicit-function-declaration] if ((npts = ptsname(pty[i]->fd)) == NULL) { ^~~~~~~ mkiss.c:568:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion] if ((npts = ptsname(pty[i]->fd)) == NULL) { ^ mkiss.c:578:8: warning: implicit declaration of function ‘unlockpt’ [-Wimplicit-function-declaration] if (unlockpt(pty[i]->fd) == -1) { ^~~~~~~~ mkiss.c:672:33: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=] syslog(LOG_ERR, "tty->fd: %m"); ^ mkiss.c:698:38: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=] syslog(LOG_ERR, "pty[%d]->fd: %m\n", i); [...] ^ gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -O2 -Wall -pedantic -MT net2kiss.o -MD -MP -MF .deps/net2kiss.Tpo -c -o net2kiss.o net2kiss.c net2kiss.c: In function ‘main’: net2kiss.c:630:18: warning: implicit declaration of function ‘ptsname’ [-Wimplicit-function-declaration] if ((namepts = ptsname(fdpty)) == NULL) { ^~~~~~~ net2kiss.c:630:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion] if ((namepts = ptsname(fdpty)) == NULL) { ^ net2kiss.c:635:7: warning: implicit declaration of function ‘unlockpt’ [-Wimplicit-function-declaration] if (unlockpt(fdpty) == -1) { ^~~~~~~~ [...] gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -O2 -Wall -pedantic -MT m6pack.o -MD -MP -MF .deps/m6pack.Tpo -c -o m6pack.o m6pack.c m6pack.c: In function ‘main’: m6pack.c:537:16: warning: implicit declaration of function ‘ptsname’ [-Wimplicit-function-declaration] if ((npts = ptsname(pty[i]->fd)) == NULL) { ^~~~~~~ m6pack.c:537:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion] if ((npts = ptsname(pty[i]->fd)) == NULL) { ^ m6pack.c:545:8: warning: implicit declaration of function ‘unlockpt’ [-Wimplicit-function-declaration] if (unlockpt(pty[i]->fd) == -1) { ^~~~~~~~ m6pack.c:626:33: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=] syslog(LOG_ERR, "tty->fd: %m"); ^ m6pack.c:658:29: warning: ISO C does not support the ‘%m’ gnu_printf format [-Wformat=] "pty[%d]->fd: %m\n",i); ^ [...] Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* sethdlc: Fix missleading indentation.Ralf Baechle2017-01-261-8/+7
| | | | | | | | | | | | sethdlc.c: In function ‘do_set_params’: sethdlc.c:333:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (set & 1) ^~ sethdlc.c:335:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ if (ret < 0) { ^~ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* beacon: Fix confusing indentation.Ralf Baechle2017-01-261-1/+4
| | | | | | | | | | | | beacon.c: In function ‘main’: beacon.c:146:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (addr != NULL) free(addr); addr = NULL; ^~ beacon.c:146:32: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ if (addr != NULL) free(addr); addr = NULL; ^~~~ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* beacon: Fix confusing indentation.Ralf Baechle2017-01-261-1/+4
| | | | | | | | | | | | beacon.c: In function ‘main’: beacon.c:128:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (addr != NULL) free(addr); addr = NULL; ^~ beacon.c:128:32: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ if (addr != NULL) free(addr); addr = NULL; ^~~~ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* axspawn: Fix missleading indentation.Ralf Baechle2017-01-261-1/+1
| | | | | | | | | | | axspawn.c:1777:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (pw->pw_dir && *(pw->pw_dir)) ^~ axspawn.c:1779:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ ret = chdir(p); ^~~ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Don't fail when trying to remove a non-existing scm-version.h.tmp file.Ralf Baechle2017-01-261-1/+1
| | | | | | | | This happens when the newly generated scm-version.h.tmp differs from an already existing scm-version.h or no scm-version.h exists yet, thus the scm-version.h.tmp was moved over to scm-version.h. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Add a git suffix to the version number used by all programs.Ralf Baechle2017-01-2430-36/+67
| | | | | | | This uses a setlocalversion script derived from the kernel's scripts/setlocalversion. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Provide scm version define.Ralf Baechle2017-01-234-0/+104
| | | | | | | This can be used by code to provide a more exact definition than a release version. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* mheardd: Delete duplicate inclusion of <config.h>.Ralf Baechle2017-01-231-1/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Delete accidental remanent of old version number from previous commit.Ralf Baechle2017-01-231-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* hdlcutil/fl: Switch version number printed to ax25-tools version.Ralf Baechle2017-01-234-4/+12
| | | | | | | The version number has not been changed ever since ax25-tools 0.0.6 making the version useless for bug reporting. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* hdlcutil: Switch version number printed to ax25-tools version.Ralf Baechle2017-01-233-3/+9
| | | | | | | The version number has not been changed ever since ax25-tools 0.0.1 making the version useless for bug reporting. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* kissnet: Switch version number printed to ax25-tools version.Ralf Baechle2017-01-221-3/+7
| | | | | | | | | | The version number has not been changed ever since ax25-tools 0.0.1 making the version useless for bug reporting. Make sure the banner printed by kissnetd stays properly formatted even if the version string's length changes. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ttylinkd: Switch version number printed to ax25-tools version.Ralf Baechle2017-01-221-1/+1
| | | | | | | The version number has not been changed ever since ax25-tools 0.0.1 making the version useless for bug reporting. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* axparms: Fix name of bpqether proc file in man page.Ralf Baechle2017-01-191-1/+1
| | | | | | | As far as I can track this back in history /proc/net/ax25_bpqether has never been correct. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Makefile.am: axwapper.8 was not in the list of the man pages to be installed.Thomas Osterried2016-11-161-2/+2
| | | | Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>
* got rid of ctime() and using localtime()/strftime().Thomas Osterried2016-07-181-29/+21
| | | | | | Has nicer time representation, too. Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>
* fix for segfault issue:Thomas Osterried2016-07-181-22/+60
| | | | | | | | | | | | | | | port record data can be garbled. We cannot trust the data. i.e., ctime() returns NULL at time_t 2^33 (72057594037927936). char lh[] was size 30. This is not enough for year > 999999999. also assure that pr->entry.type is < sizeof(types), and in 'case 4:', only up to 8 digipeaters are copied. Thanks to Guido Trentalancia <iz6rdb@trentalancia.net> for the patch. Also changed printf to %u (because mheard's struct has unsigned int values) and enhanced formating (%8 instead of %5). Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>
* beacon with new option -H: -> beacon intervals relative to the hour.Thomas Osterried2016-07-042-8/+33
| | | | | | Idea by Folkert van Heusden <mail@vanheusden.com>. Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>
* beacon: new option -f: do not fork.Thomas Osterried2016-07-042-5/+14
| | | | | | patch submitted by Folkert van Heusden <mail@vanheusden.com>. Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>
* added "-d a" option to mheard:Thomas Osterried2016-07-041-2/+5
| | | | | | | Display the data from c and s combined in one view. Requires wide screen. by Folkert van Heusden <mail@vanheusden.com> Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>
* added "-d a" option to mheard:Thomas Osterried2016-07-041-8/+63
| | | | | | | Display the data from c and s combined in one view. Requires wide screen. Patch by Folkert van Heusden <mail@vanheusden.com> Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>
* Fixed regression in axgetput (bget/bput crc was calculated wrong)Thomas Osterried2016-02-122-27/+31
| | | | Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>
* Fix spelling of "subsequent".Ralf Baechle2015-07-161-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove all references to axassociate(8) and axsetcall(8).Ralf Baechle2015-07-162-9/+3
| | | | | | | These programs were removed around 20 years ago and today the references only clutter the man pages. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* axparms: Accept numeric user ID.Ralf Baechle2015-06-193-7/+23
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ax25/ax25d.c: Fix warning about set but unused variable.Ralf Baechle2015-06-071-12/+0
| | | | | | This is from dead code setting the no-op socket option AX25_IAMDIGI. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* netrom/netromr.c: Fix warning about set but unused variable.Ralf Baechle2015-06-071-2/+2
| | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -g -O2 -Wall -MT netromr.o -MD -MP -MF .deps/netromr.Tpo -c -o netromr.o netromr.c netromr.c: In function ‘receive_nodes’: netromr.c:143:8: warning: variable ‘addr’ set but not used [-Wunused-but-set-variable] char *addr, *callsign, *device; ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* netrom/netromt.c: Fix warning about set but unused variable.Ralf Baechle2015-06-071-3/+3
| | | | | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -g -O2 -Wall -MT netromt.o -MD -MP -MF .deps/netromt.Tpo -c -o netromt.o netromt.c netromt.c: In function ‘build_others’: netromt.c:102:13: warning: variable ‘number’ set but not used [-Wunused-but-set-variable] int which, number, quality, neigh_no, obs_count; ^ netromt.c:102:6: warning: variable ‘which’ set but not used [-Wunused-but-set-variable] int which, number, quality, neigh_no, obs_count; ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* yamdrv/mcs2h.c: Fix warning about set but unused variable.Ralf Baechle2015-06-071-2/+1
| | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -Wall -MT mcs2h.o -MD -MP -MF .deps/mcs2h.Tpo -c -o mcs2h.o mcs2h.c mcs2h.c: In function ‘main’: mcs2h.c:48:10: warning: variable ‘add’ set but not used [-Wunused-but-set-variable] int nb, add, type, i; ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rose/rsuplnk.c: Fix signedness compiler warnings.Ralf Baechle2015-06-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -g -O2 -Wall -MT rsuplnk.o -MD -MP -MF .deps/rsuplnk.Tpo -c -o rsuplnk.o rsuplnk.c rsuplnk.c: In function ‘main’: rsuplnk.c:85:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((addr = rs_config_get_addr(argv[1])) == NULL) { ^ rsuplnk.c:91:16: warning: pointer targets in passing argument 1 of ‘rose_aton’ differ in signedness [-Wpointer-sign] if (rose_aton(addr, rosebind.srose_addr.rose_addr) == -1) { ^ In file included from rsuplnk.c:17:0: /usr/include/netax25/axlib.h:84:12: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern int rose_aton(const char *, char *); ^ rsuplnk.c:104:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] addr = ax25_ntoa(&ax25peer.fsa_digipeater[n]); ^ rsuplnk.c:106:6: warning: pointer targets in passing argument 1 of ‘__builtin_strspn’ differ in signedness [-Wpointer-sign] if (strspn(addr, "0123456789-") == strlen(addr)) { ^ rsuplnk.c:106:6: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ rsuplnk.c:106:6: warning: pointer targets in passing argument 1 of ‘__strspn_c1’ differ in signedness [-Wpointer-sign] if (strspn(addr, "0123456789-") == strlen(addr)) { ^ In file included from /usr/include/string.h:634:0, from rsuplnk.c:2: /usr/include/bits/string2.h:1023:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ __strspn_c1 (const char *__s, int __accept) ^ rsuplnk.c:106:6: warning: pointer targets in passing argument 1 of ‘__strspn_c2’ differ in signedness [-Wpointer-sign] if (strspn(addr, "0123456789-") == strlen(addr)) { ^ In file included from /usr/include/string.h:634:0, from rsuplnk.c:2: /usr/include/bits/string2.h:1035:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ __strspn_c2 (const char *__s, int __accept1, int __accept2) ^ rsuplnk.c:106:6: warning: pointer targets in passing argument 1 of ‘__strspn_c3’ differ in signedness [-Wpointer-sign] if (strspn(addr, "0123456789-") == strlen(addr)) { ^ In file included from /usr/include/string.h:634:0, from rsuplnk.c:2: /usr/include/bits/string2.h:1047:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ __strspn_c3 (const char *__s, int __accept1, int __accept2, int __accept3) ^ rsuplnk.c:106:6: warning: pointer targets in passing argument 1 of ‘__builtin_strspn’ differ in signedness [-Wpointer-sign] if (strspn(addr, "0123456789-") == strlen(addr)) { ^ rsuplnk.c:106:6: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ rsuplnk.c:106:6: warning: pointer targets in passing argument 1 of ‘__builtin_strspn’ differ in signedness [-Wpointer-sign] if (strspn(addr, "0123456789-") == strlen(addr)) { ^ rsuplnk.c:106:6: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ rsuplnk.c:106:44: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] if (strspn(addr, "0123456789-") == strlen(addr)) { ^ In file included from rsuplnk.c:2:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ rsuplnk.c:107:12: warning: pointer targets in passing argument 1 of ‘__builtin_strchr’ differ in signedness [-Wpointer-sign] if ((p = strchr(addr, '-')) != NULL) ^ rsuplnk.c:107:12: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ rsuplnk.c:107:11: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((p = strchr(addr, '-')) != NULL) ^ rsuplnk.c:109:19: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] switch (strlen(addr)) { ^ In file included from rsuplnk.c:2:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ rsuplnk.c:128:10: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(buffer, "*** No ROSE address given\r"); ^ In file included from rsuplnk.c:2:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ rsuplnk.c:129:38: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] write(STDOUT_FILENO, buffer, strlen(buffer)); ^ In file included from rsuplnk.c:2:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ rsuplnk.c:195:10: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(buffer, "*** Connection in progress\r"); ^ In file included from rsuplnk.c:2:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ rsuplnk.c:196:38: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] write(STDOUT_FILENO, buffer, strlen(buffer)); ^ In file included from rsuplnk.c:2:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ rsuplnk.c:212:11: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(buffer, "*** Disconnected - 0100 - Number Busy\r"); ^ In file included from rsuplnk.c:2:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ rsuplnk.c:215:11: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(buffer, "*** Disconnected - 0D00 - Not Obtainable\r"); ^ In file included from rsuplnk.c:2:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ rsuplnk.c:218:11: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(buffer, "*** Disconnected - 3900 - Ship Absent\r"); ^ In file included from rsuplnk.c:2:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ rsuplnk.c:221:12: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(buffer, "*** Disconnected - %d - %s\r", errno, strerror(errno)); ^ In file included from rsuplnk.c:1:0: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern int sprintf (char *__restrict __s, ^ rsuplnk.c:228:39: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] write(STDOUT_FILENO, buffer, strlen(buffer)); ^ In file included from rsuplnk.c:2:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ rsuplnk.c:241:10: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(buffer, "*** Connected\r"); ^ In file included from rsuplnk.c:2:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ rsuplnk.c:242:38: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] write(STDOUT_FILENO, buffer, strlen(buffer)); ^ In file included from rsuplnk.c:2:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ rsuplnk.c:257:12: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(buffer, "\r*** Disconnected - 0000 - DTE Originated\r"); ^ In file included from rsuplnk.c:2:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ rsuplnk.c:258:40: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] write(STDOUT_FILENO, buffer, strlen(buffer)); ^ In file included from rsuplnk.c:2:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rose/rsdwnlnk.c: Fix signedness compiler warnings.Ralf Baechle2015-06-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -g -O2 -Wall -MT rsdwnlnk.o -MD -MP -MF .deps/rsdwnlnk.Tpo -c -o rsdwnlnk.o rsdwnlnk.c rsdwnlnk.c: In function ‘main’: rsdwnlnk.c:81:12: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] if ((addr = ax25_config_get_addr(argv[1])) == NULL) { ^ rsdwnlnk.c:87:22: warning: pointer targets in passing argument 1 of ‘ax25_aton_entry’ differ in signedness [-Wpointer-sign] if (ax25_aton_entry(addr, axbind.fsa_digipeater[0].ax25_call) == -1) { ^ In file included from rsdwnlnk.c:17:0: /usr/include/netax25/axlib.h:58:12: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern int ax25_aton_entry(const char *, char *); ^ rsdwnlnk.c:109:8: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] addr = rose_ntoa(&rosepeer.srose_addr); ^ rsdwnlnk.c:111:23: warning: pointer targets in passing argument 1 of ‘ax25_aton_entry’ differ in signedness [-Wpointer-sign] if (ax25_aton_entry(addr, axconnect.fsa_digipeater[n].ax25_call) == -1) { ^ In file included from rsdwnlnk.c:17:0: /usr/include/netax25/axlib.h:58:12: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern int ax25_aton_entry(const char *, char *); ^ rsdwnlnk.c:123:7: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] addr = rose_ntoa(&rosepeer.srose_addr); ^ rsdwnlnk.c:124:22: warning: pointer targets in passing argument 1 of ‘ax25_aton_entry’ differ in signedness [-Wpointer-sign] if (ax25_aton_entry(addr + 4, axconnect.fsa_digipeater[n].ax25_call) == -1) { ^ In file included from rsdwnlnk.c:17:0: /usr/include/netax25/axlib.h:58:12: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern int ax25_aton_entry(const char *, char *); ^ rsdwnlnk.c:202:11: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(buffer, "*** Connection refused\r"); ^ In file included from rsdwnlnk.c:2:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ rsdwnlnk.c:205:11: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(buffer, "*** No known route\r"); ^ In file included from rsdwnlnk.c:2:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ rsdwnlnk.c:208:11: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(buffer, "*** Connection timed out\r"); ^ In file included from rsdwnlnk.c:2:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ rsdwnlnk.c:211:12: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness [-Wpointer-sign] sprintf(buffer, "ERROR: cannot connect to AX.25 callsign, %s\r", strerror(errno)); ^ In file included from rsdwnlnk.c:1:0: /usr/include/stdio.h:364:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern int sprintf (char *__restrict __s, ^ rsdwnlnk.c:217:38: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] write(STDOUT_FILENO, buffer, strlen(buffer)); ^ In file included from rsdwnlnk.c:2:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ rsdwnlnk.c:229:9: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(buffer, "*** Connected\r"); ^ In file included from rsdwnlnk.c:2:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ rsdwnlnk.c:230:37: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] write(STDOUT_FILENO, buffer, strlen(buffer)); ^ In file included from rsdwnlnk.c:2:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* netrom/nrsdrv.c: Fix signedness compiler warnings.Ralf Baechle2015-06-071-1/+1
| | | | | | | | | | | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -g -O2 -Wall -MT nrsdrv.o -MD -MP -MF .deps/nrsdrv.Tpo -c -o nrsdrv.o nrsdrv.c nrsdrv.c: In function ‘main’: nrsdrv.c:438:15: warning: pointer targets in passing argument 1 of ‘kiss_unesc’ differ in signedness [-Wpointer-sign] kiss_unesc(buffer, n); ^ nrsdrv.c:246:13: note: expected ‘unsigned char *’ but argument is of type ‘char *’ static void kiss_unesc(unsigned char *buffer, int len) ^ nrsdrv.c:449:14: warning: pointer targets in passing argument 1 of ‘nrs_unesc’ differ in signedness [-Wpointer-sign] nrs_unesc(buffer, n); ^ nrsdrv.c:192:13: note: expected ‘unsigned char *’ but argument is of type ‘char *’ static void nrs_unesc(unsigned char *buffer, int len) ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* netrom/netromt.c: Fix signedness compiler warnings.Ralf Baechle2015-06-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -g -O2 -Wall -MT netromt.o -MD -MP -MF .deps/netromt.Tpo -c -o netromt.o netromt.c netromt.c: In function ‘build_header’: netromt.c:30:9: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(message + 1, nr_config_get_alias(NULL)); ^ In file included from netromt.c:4:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ netromt.c:31:12: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] strncat(message + 1, " ", MNEMONIC_LEN - strlen(message + 1)); ^ In file included from netromt.c:4:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ netromt.c:31:1: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness [-Wpointer-sign] strncat(message + 1, " ", MNEMONIC_LEN - strlen(message + 1)); ^ netromt.c:31:1: note: expected ‘char *’ but argument is of type ‘unsigned char *’ netromt.c: In function ‘build_mine’: netromt.c:66:49: warning: pointer targets in passing argument 2 of ‘ax25_aton_entry’ differ in signedness [-Wpointer-sign] if (ax25_aton_entry(nr_config_get_addr(port), message + len) == -1) { ^ In file included from netromt.c:19:0: /usr/include/netax25/axlib.h:58:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’ extern int ax25_aton_entry(const char *, char *); ^ netromt.c:74:10: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(message + len, nr_config_get_alias(port)); ^ In file included from netromt.c:4:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ netromt.c:75:13: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] strncat(message + len, " ", MNEMONIC_LEN - strlen(message + len)); ^ In file included from netromt.c:4:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ netromt.c:75:2: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness [-Wpointer-sign] strncat(message + len, " ", MNEMONIC_LEN - strlen(message + len)); ^ netromt.c:75:2: note: expected ‘char *’ but argument is of type ‘unsigned char *’ netromt.c:78:44: warning: pointer targets in passing argument 2 of ‘ax25_aton_entry’ differ in signedness [-Wpointer-sign] ax25_aton_entry(nr_config_get_addr(NULL), message + len); ^ In file included from netromt.c:19:0: /usr/include/netax25/axlib.h:58:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’ extern int ax25_aton_entry(const char *, char *); ^ netromt.c: In function ‘build_others’: netromt.c:156:34: warning: pointer targets in passing argument 2 of ‘ax25_aton_entry’ differ in signedness [-Wpointer-sign] if (ax25_aton_entry(callsign, message + len) == -1) { ^ In file included from netromt.c:19:0: /usr/include/netax25/axlib.h:58:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’ extern int ax25_aton_entry(const char *, char *); ^ netromt.c:163:11: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(message + len, mnemonic); ^ In file included from netromt.c:4:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ netromt.c:164:14: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] strncat(message + len, " ", MNEMONIC_LEN - strlen(message + len)); ^ In file included from netromt.c:4:0: /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern size_t strlen (const char *__s) ^ netromt.c:164:3: warning: pointer targets in passing argument 1 of ‘__builtin_strncat’ differ in signedness [-Wpointer-sign] strncat(message + len, " ", MNEMONIC_LEN - strlen(message + len)); ^ netromt.c:164:3: note: expected ‘char *’ but argument is of type ‘unsigned char *’ netromt.c:167:35: warning: pointer targets in passing argument 2 of ‘ax25_aton_entry’ differ in signedness [-Wpointer-sign] if (ax25_aton_entry(neighbour, message + len) == -1) { ^ In file included from netromt.c:19:0: /usr/include/netax25/axlib.h:58:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’ extern int ax25_aton_entry(const char *, char *); ^ [...] Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* hdlcutil/usersmdiag.h: Fix signedness compiler warnings.Ralf Baechle2015-06-071-1/+1
| | | | | | | | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -g -O2 -Wall -MT hdrvcomm.o -MD -MP -MF .deps/hdrvcomm.Tpo -c -o hdrvcomm.o hdrvcomm.c hdrvcomm.c: In function ‘hdrvc_get_driver_name’: hdrvcomm.c:677:1: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign] strncpy(buf, msg.data.by, ret); ^ hdrvcomm.c:677:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ hdrvcomm.c: In function ‘hdrvc_get_mode_name’: hdrvcomm.c:712:1: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign] strncpy(buf, msg.data.by, ret); ^ hdrvcomm.c:712:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* hdlcutil/sethdlc.c: Fix signedness compiler warnings.Ralf Baechle2015-06-071-2/+2
| | | | | | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -g -O2 -Wall -MT sethdlc.o -MD -MP -MF .deps/sethdlc.Tpo -c -o sethdlc.o sethdlc.c sethdlc.c: In function ‘main’: sethdlc.c:539:34: warning: pointer targets in passing argument 1 of ‘hdrvc_recvpacket’ differ in signedness [-Wpointer-sign] while ((ret = hdrvc_recvpacket(pktbuf, sizeof(pktbuf))) > 1) ^ In file included from sethdlc.c:46:0: hdrvcomm.h:88:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’ extern int hdrvc_recvpacket(char *pkt, int maxlen); ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ax25/mheardd.c: Fix signedness compiler warnings.Ralf Baechle2015-06-071-4/+7
| | | | | | | | | | | | | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -g -O2 -Wall -MT mheardd.o -MD -MP -MF .deps/mheardd.Tpo -c -o mheardd.o mheardd.c mheardd.c: In function ‘main’: mheardd.c:259:22: warning: pointer targets in passing argument 1 of ‘ax25_validate’ differ in signedness [-Wpointer-sign] if (!ax25_validate(data + 0) || !ax25_validate(data + AXLEN)) { ^ In file included from mheardd.c:31:0: /usr/include/netax25/axlib.h:116:12: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern int ax25_validate(const char *); ^ mheardd.c:259:50: warning: pointer targets in passing argument 1 of ‘ax25_validate’ differ in signedness [-Wpointer-sign] if (!ax25_validate(data + 0) || !ax25_validate(data + AXLEN)) { ^ In file included from mheardd.c:31:0: /usr/include/netax25/axlib.h:116:12: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ extern int ax25_validate(const char *); ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ax25/axwrapper.c: Fix signedness compiler warnings.Ralf Baechle2015-06-071-1/+2
| | | | | | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -g -O2 -Wall -MT axwrapper.o -MD -MP -MF .deps/axwrapper.Tpo -c -o axwrapper.o axwrapper.c axwrapper.c: In function ‘main’: axwrapper.c:105:17: warning: pointer targets in passing argument 2 of ‘setvbuf’ differ in signedness [-Wpointer-sign] setvbuf(stdout, stdoutbuf, _IOFBF, paclen); ^ In file included from axwrapper.c:36:0: /usr/include/stdio.h:336:12: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf, ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ax25/axspawn.c: Fix signedness compiler warnings.Ralf Baechle2015-06-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -g -O2 -Wall -MT axspawn.o -MD -MP -MF .deps/axspawn.Tpo -c -o axspawn.o axspawn.c axspawn.c: In function ‘decstathuf’: axspawn.c:595:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] srcptr = src; ^ axspawn.c:596:10: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] destptr = dest; ^ axspawn.c: In function ‘read_ax25’: axspawn.c:675:19: warning: pointer targets in passing argument 1 of ‘decstathuf’ differ in signedness [-Wpointer-sign] if (!decstathuf(s, decomp, len, &declen)) { ^ axspawn.c:584:5: note: expected ‘char *’ but argument is of type ‘unsigned char *’ int decstathuf(char *src, char *dest, int srclen, int *destlen) ^ axspawn.c:677:11: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(s, decomp); ^ In file included from axspawn.c:149:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ axspawn.c:690:31: warning: pointer targets in passing argument 1 of ‘Strncasecmp’ differ in signedness [-Wpointer-sign] if (!huffman && !Strncasecmp(s, "//COMP ON\n", 10)) { ^ axspawn.c:498:5: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ int Strncasecmp(const char *s1, const char *s2, int n) ^ axspawn.c:704:10: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(s,"\n"); ^ In file included from axspawn.c:149:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ axspawn.c:708:30: warning: pointer targets in passing argument 1 of ‘Strncasecmp’ differ in signedness [-Wpointer-sign] if (huffman && !Strncasecmp(s, "//COMP OFF\n", 11)) { ^ axspawn.c:498:5: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ int Strncasecmp(const char *s1, const char *s2, int n) ^ axspawn.c:727:10: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] strcpy(s,"\n"); ^ In file included from axspawn.c:149:0: /usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’ extern char *strcpy (char *__restrict __dest, const char *__restrict __src) ^ axspawn.c: In function ‘new_user’: axspawn.c:1101:5: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] q = strchr(p, '/'); ^ axspawn.c:1145:5: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] p = q; ^ axspawn.c: In function ‘main’: axspawn.c:1557:17: warning: pointer targets in passing argument 1 of ‘read_ax25’ differ in signedness [-Wpointer-sign] if (read_ax25(buf, sizeof(buf)) < 0) ^ axspawn.c:662:5: note: expected ‘unsigned char *’ but argument is of type ‘char *’ int read_ax25(unsigned char *s, int size) ^ axspawn.c:1571:24: warning: pointer targets in passing argument 1 of ‘read_ax25’ differ in signedness [-Wpointer-sign] if ((cnt = read_ax25(buf, sizeof(buf)-1)) < 0) ^ axspawn.c:662:5: note: expected ‘unsigned char *’ but argument is of type ‘char *’ int read_ax25(unsigned char *s, int size) ^ axspawn.c:1655:19: warning: pointer targets in passing argument 1 of ‘read_ax25’ differ in signedness [-Wpointer-sign] cnt = read_ax25(buf, sizeof(buf)-1); ^ axspawn.c:662:5: note: expected ‘unsigned char *’ but argument is of type ‘char *’ int read_ax25(unsigned char *s, int size) ^ axspawn.c:1930:22: warning: pointer targets in passing argument 1 of ‘read_ax25’ differ in signedness [-Wpointer-sign] cnt = read_ax25(buf, sizeof(buf)); ^ axspawn.c:662:5: note: expected ‘unsigned char *’ but argument is of type ‘char *’ int read_ax25(unsigned char *s, int size) ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ax25/access.c: Fix signedness compiler warnings.Ralf Baechle2015-06-071-1/+1
| | | | | | | | | | | | | | cc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -g -O2 -Wall -MT access.o -MD -MP -MF .deps/access.Tpo -c -o access.o access.c access.c: In function ‘calc_md5_pw’: access.c:194:23: warning: pointer targets in passing argument 2 of ‘MD5Update’ differ in signedness [-Wpointer-sign] MD5Update(&context, buffer+i, n); ^ In file included from access.c:13:0: md5.h:60:6: note: expected ‘unsigned char *’ but argument is of type ‘char *’ void MD5Update(MD5_CTX *mdContext, unsigned char *inBuf, unsigned int inLen); ^ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Update ChangeLog.Ralf Baechle2015-06-061-1/+4
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Fix path of node binary in ax25d.conf.Ralf Baechle2015-06-051-5/+5
| | | | | | | | 1905bd6c7e1123adccfd24803fea67227228d38c (Substitute proper paths in ax25d.conf.) accidently dropped the filename, that is node, from the path of the node binary. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove generated file ax25/ax25d.conf.Ralf Baechle2015-06-051-49/+0
| | | | | | | | Since 1905bd6c7e1123adccfd24803fea67227228d38c (Substitute proper paths in ax25d.conf.) ax25/ax25d.conf is a generated file and should have been deleted. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* configure.ac: Don't substitute AX25IO_LIB.Ralf Baechle2015-05-291-1/+0
| | | | | | Nothing is using it. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>