summaryrefslogtreecommitdiffstats
path: root/rose
Commit message (Collapse)AuthorAgeFilesLines
* Fixed speeling errors in man pages and programs.Thomas Osterried2023-05-131-1/+1
| | | | | | | Author: colint@debian.org Author: Dave Hibberd <d@vehibberd.com> Signed-off-by: Daniele Forsi <iu5hkx@gmail.com> Signed-off-by: Thomas Osterried <dl9sau@darc.de>
* Man pages: Update with date from last non-trivial change.Ralf Baechle2019-03-282-2/+2
| | | | | | | | | In some of these pages the content was changed relativly recently but the date in the man page itself was never updated so dates were off by decades. Update all man pages to last non-trival change recorded in git since imported. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* treewide: Kill assignments in if conditions.Ralf Baechle2017-07-314-21/+42
| | | | | | | | | | | | | | | | | | | | Somewhat hard to read and the code base already has many overlong lines. Found with below spatch file and some manual editing in ax25/access.c to restore a comment lost by spatch. @parens@ expression E, F, G; binary operator X; statement S; @@ - if ((E = F) X G) + E = F; + if (E X G) S Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsdwnlnk: Add cast to silence useless warning.Ralf Baechle2017-02-061-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsmemsiz: Fix warning and add error check to getuptime call.Ralf Baechle2017-02-061-1/+5
| | | | | | | | | rsmemsiz.c: In function ‘main’: rsmemsiz.c:139:11: warning: ‘uptime_secs’ may be used uninitialized in this function [-Wmaybe-uninitialized] updays = (int) uptime_secs / (60*60*24); ^~~~~~~~~~~~~~~~~ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsuplnk: Add cast to silence useless warning.Ralf Baechle2017-02-061-1/+1
| | | | | | | | | rsuplnk.c: In function ‘main’: rsuplnk.c:262:17: warning: overflow in implicit constant conversion [-Woverflow] buffer[0] = 0xF0; ^~~~ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsmemsiz: Rewrite the last instance of FILE_TO_BUF().Ralf Baechle2017-02-061-28/+25
| | | | | | | Expand the one remaining invocation to FILE_TO_BUF(), then fix the return type and attempt to close fd -1 and format nicely. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsmemsiz: Delete now unused macro SET_IF_DESIRED.Ralf Baechle2017-02-061-2/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsmemsiz: Use sysinfo to obtain uptime.Ralf Baechle2017-02-061-9/+9
| | | | | | | Now that uptime() is only used to obtain the load average it's trivial to replace. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsmemsiz: When parsing /proc/uptime, ignore idle time.Ralf Baechle2017-02-061-6/+5
| | | | | | We don't use this information anyway later on. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsmemsiz: Use standard libc function to get load average.Ralf Baechle2017-02-061-16/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsattach: Make several functions and variables static.Ralf Baechle2017-02-061-5/+5
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsdwnlnk: Make alarm_handler() static.Ralf Baechle2017-02-061-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsmemsiz: Mark several functions static.Ralf Baechle2017-02-061-3/+6
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsparms: Make several functions and variables static.Ralf Baechle2017-02-061-3/+4
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsuplnk: Make function alarm_handler static.Ralf Baechle2017-02-061-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsmemsiz: Move /proc filename defines to pathnames.h.Ralf Baechle2017-02-061-9/+7
| | | | 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>
* Use the right way to get the required feature set from glibc.Ralf Baechle2017-01-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __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>
* Add a git suffix to the version number used by all programs.Ralf Baechle2017-01-242-2/+4
| | | | | | | This uses a setlocalversion script derived from the kernel's scripts/setlocalversion. 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>
* rsparms: Fix harmless -Werror=format-security build error.Ralf Baechle2015-05-181-2/+2
| | | | | | | | | | | | | | | | | | | | | make[2]: Entering directory '/home/ralf/src/ax25/ax25-tools/rose' gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -MT rsparms.o -MD -MP -MF .deps/rsparms.Tpo -c -o rsparms.o rsparms.c rsparms.c: In function ‘nodes’: rsparms.c:71:3: error: format not a string literal and no format arguments [-Werror=format-security] fprintf(stderr, nodes_usage); ^ rsparms.c:117:3: error: format not a string literal and no format arguments [-Werror=format-security] fprintf(stderr, nodes_usage); ^ cc1: some warnings being treated as errors Makefile:462: recipe for target 'rsparms.o' failed make[2]: *** [rsparms.o] Error 1 make[2]: Leaving directory '/home/ralf/src/ax25/ax25-tools/rose' The string is a constant in the application code itself so no security issue Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ROSE: Add back installconf rule.Ralf Baechle2015-05-181-0/+1
| | | | | | | | | | | | | | Without this dummy rule, make installconf failes in the rose subdir with: [...] make[1]: Entering directory `/home/ralf/src/ax25/ax25-tools/rose' make[1]: *** No rule to make target `installconf'. Stop. make[1]: Leaving directory `/home/ralf/src/ax25/ax25-tools/rose' [...] This bug exists since 0.0.3 and predates the CVS history. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* automake: Replace use of deprecated automake macro INCLUDES.Ralf Baechle2015-05-171-2/+2
| | | | | | | | | | | | | | | | | This fixes the automake warnings: 6pack/Makefile.am:10: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') Makefile.am:9: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') ax25/Makefile.am:26: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') hdlcutil/Makefile.am:16: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') kiss/Makefile.am:11: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') netrom/Makefile.am:28: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') rose/Makefile.am:15: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') tcpip/Makefile.am:27: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') INCLUDES has been deprecated since automake 1.5. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Merge branch 'master' of git://git.linux-ax25.org/pub/scm/ralf/ax25-toolsRalf Baechle2015-05-029-116/+115
|\ | | | | | | | | Conflicts: ax25/axspawn.c
| * Reformat consistently. Strictly whitespace changes only.Ralf Baechle2013-06-174-67/+67
| | | | | | | | | | | | | | Indentation by tabs only. Move case labels in switches are on the same level as the switch keyword. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * Always have a space between if, for, switch, while and the following `('.Ralf Baechle2013-06-172-2/+2
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * Use tabs for indentation, not spaces.Ralf Baechle2013-06-171-4/+4
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * Nuke trailing whitespace.Ralf Baechle2013-06-178-41/+41
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * Nuke trailing blank lines.Ralf Baechle2013-06-171-1/+0
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
| * Use dist_ prefix in Makefile.am rather than EXTRA_DIST where possible.Ralf Baechle2013-06-171-2/+2
| | | | | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* | The current linux kernel has no limit anymore for the number of netromThomas Osterried2015-05-011-1/+2
|/ | | | | | and rose devices (previously 4 netrom, 6 rose). Thanks to Jaroslav, OK2JRQ for the patch
* ROSE: Fix warnings caused by bogus variable initializations.Ralf Baechle2013-06-061-4/+6
| | | | | | | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25 _LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -g -O2 -flto -MT rsparms.o -MD -MP -MF .deps/rsparms.Tpo -c -o rsparms.o rsparms.c rsparms.c: In function ‘printnb’: rsparms.c:38:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] rsparms.c:38:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] rsparms.c:39:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] rsparms.c:39:38: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] rsparms.c: In function ‘nodes’: rsparms.c:120:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Convert .cvsignore files to .gitignoreRalf Baechle2013-06-041-3/+3
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* fixed "bashism" complain. debian Bug#690626Thomas Osterried2012-10-281-5/+5
|
* rsparms: Fix spelling mistake in usage message.Ralf Baechle2011-07-151-1/+1
| | | | | The name of the option is -nodes, not -node. Really minor - the option parser on looks at the first two characters.
* Remove all references to rsctl.Ralf Baechle2011-07-152-2/+0
| | | | | This utility apparently was removed for ax25-utils 2.1.37 released in May 1997.
* Fix and make spelling cosistent.Ralf Baechle2011-07-141-2/+2
| | | | | digi-praters sounds like Astrian entertainment hightech but is plain wrong and digi-peater is an uncommon spelling.
* Remove use of backwards compatibility header name.Ralf Baechle2009-06-214-36/+0
| | | | | | Glibc as old as 2.2 provides working headers under the right name and if not libax25 would install headers under the right name so this has become redundant and ugly.
* Ignore a few more generated files.Ralf Baechle2009-06-191-0/+1
|
* Remove all generated files.Ralf Baechle2009-06-191-573/+0
| | | | | | | | | | | | | | Keeping generated files in CVS doesn't only tend to produce large and cluttered files it also may result in build problems due to timestamps in the wrong order. So dump everything, update .cvsignore to ignore these files and resolve all warnings generated by autoreconf. From now on users of a CVS checkout should run the command autoreconf --install --force after having done a CVS checkout. For this to succeed automake, autoconf and libtool will have to be installed.
* Fix type of length argument to sockset syscalls.Ralf Baechle2009-06-142-2/+4
| | | | | | | | Various socket syscalls receive a length argument that should be a socklen_t rsp. a ptr to a socklen_t but instead int rsp. ptr to int were being passed. While in theory this was a bug it's harmless as dangerously large values would not be used but the issue manifested itself in a significant number of compilation warnings.
* buffer is 512. statement was:Thomas Osterried2008-10-222-2/+2
| | | | | | if ((n = read(s, buffer + 2, 512)) == -1) in rsdwnlnk.c if ((n = read(STDIN_FILENO, buffer + 2, 512)) == -1) in rsuplnk.c This smashes the buffer two bytes behind..
* changed mail addressesThomas Osterried2008-04-271-1/+1
|
* Convert to autoconf 2.59. Delete junk from past centuries.Ralf Baechle2007-01-221-313/+412
|
* Removed MakefilesCraig Small2003-02-221-474/+0
|
* testCraig Small2003-02-222-6/+6
|
* added remaining sys/time.h includes for ppcCraig Small2002-06-191-0/+7
|
* removed some stuff that shouldnt be thereCraig Small2002-03-041-1/+1
|