summaryrefslogtreecommitdiffstats
path: root/rose/rsparms.c
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Add a git suffix to the version number used by all programs.Ralf Baechle2017-01-241-1/+2
| | | | | | | This uses a setlocalversion script derived from the kernel's scripts/setlocalversion. 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>
* Always have a space between if, for, switch, while and the following `('.Ralf Baechle2013-06-171-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Nuke trailing whitespace.Ralf Baechle2013-06-171-4/+4
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* 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>
* 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 use of backwards compatibility header name.Ralf Baechle2009-06-211-8/+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.
* Import ax25-tools 0.0.2 from tarballax25-tools-0.0.2Ralf Baechle1999-06-071-2/+10
|
* Import ax25-tools 0.0.1 from tarballax25-tools-0.0.1Ralf Baechle1999-04-211-0/+256