| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This uses a setlocalversion script derived from the kernel's
scripts/setlocalversion.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|\
| |
| |
| |
| | |
Conflicts:
ax25/axspawn.c
|
| |
| |
| |
| |
| |
| |
| | |
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>
|
| |
| |
| |
| | |
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
| |
| |
| |
| | |
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
| |
| |
| |
| | |
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
| |
| |
| |
| | |
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
| |
| |
| |
| | |
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
|/
|
|
|
|
| |
and rose devices (previously 4 netrom, 6 rose).
Thanks to Jaroslav, OK2JRQ for the patch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
|
| |
|
|
|
|
|
| |
The name of the option is -nodes, not -node. Really minor - the option
parser on looks at the first two characters.
|
|
|
|
|
| |
This utility apparently was removed for ax25-utils 2.1.37 released
in May 1997.
|
|
|
|
|
| |
digi-praters sounds like Astrian entertainment hightech but is plain wrong
and digi-peater is an uncommon spelling.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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..
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|