summaryrefslogtreecommitdiffstats
path: root/rsconfig.c
Commit message (Collapse)AuthorAgeFilesLines
* axconfig.c, nrconfig.c, roseconfig.c: Fix GCC 11 warnings.Ralf Baechle2021-07-291-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | GCC 11's overyealously throws below warnings. Fixed by giving GCC a hint that the string actually is short enough to fit. libtool: compile: gcc -DHAVE_CONFIG_H -I. -DAX25_SYSCONFDIR=\"/usr/local/etc/ax25/\" -DAX25_LOCALSTATEDIR=\"/usr/local/var/ax25/\" -g -O2 -Wall -MT axconfig.lo -MD -MP -MF .deps/axconfig.Tpo -c axconfig.c -fPIC -DPIC -o .libs/axconfig.o axconfig.c: In function ‘ax25_config_load_ports’: axconfig.c:315:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 255 [-Wstringop-truncation] 315 | strncpy(ifr.ifr_name, s, IFNAMSIZ-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [...] libtool: compile: gcc -DHAVE_CONFIG_H -I. -DAX25_SYSCONFDIR=\"/usr/local/etc/ax25/\" -DAX25_LOCALSTATEDIR=\"/usr/local/var/ax25/\" -g -O2 -Wall -MT nrconfig.lo -MD -MP -MF .deps/nrconfig.Tpo -c nrconfig.c -fPIC -DPIC -o .libs/nrconfig.o nrconfig.c: In function ‘nr_config_load_ports’: nrconfig.c:294:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 255 [-Wstringop-truncation] 294 | strncpy(ifr.ifr_name, s, IFNAMSIZ-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [...] libtool: compile: gcc -DHAVE_CONFIG_H -I. -DAX25_SYSCONFDIR=\"/usr/local/etc/ax25/\" -DAX25_LOCALSTATEDIR=\"/usr/local/var/ax25/\" -g -O2 -Wall -MT rsconfig.lo -MD -MP -MF .deps/rsconfig.Tpo -c rsconfig.c -fPIC -DPIC -o .libs/rsconfig.o rsconfig.c: In function ‘rs_config_load_ports’: rsconfig.c:240:25: warning: ‘strncpy’ output may be truncated copying 15 bytes from a string of length 255 [-Wstringop-truncation] 240 | strncpy(ifr.ifr_name, s, IFNAMSIZ-1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Reformat consistently. Strictly whitespace changes only.Ralf Baechle2013-06-171-72/+72
| | | | | | | 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-171-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Use tabs for indentation, not spaces.Ralf Baechle2013-06-171-16/+16
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove useless initializations to 0 or NULL.Ralf Baechle2013-06-171-2/+2
| | | | | | They only inflate the .data section of the binary. Initializations to FALSE are still left to do. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Delete useless definition of _LINUX_STRING_H_.Ralf Baechle2013-06-171-2/+0
| | | | | | | Originally this appeared to have been an attempt to avoid the inclusion of the kernels's <linux/string.h>. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Nuke trailing whitespace.Ralf Baechle2013-06-171-8/+8
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Move all header files to be installed to new subdirectory netax25.Ralf Baechle2009-06-201-10/+2
|
* nrconfig.c: call comparison fix.Thomas Osterried2009-04-091-22/+36
| | | | | axconfig.c, nrconfig.c and rsconfig.c: assurances against null pointer deferences.
* From Matti Aarnio (oh2mqk@sral.fi):Ralf Baechle2008-04-021-66/+96
| | | | | | | | | | | | | | | | * axconfig.c: Find all running network ports, and compare them against the /etc/ax25/axports file. * nrconfig.c: Find all running network ports, and compare them against the /etc/ax25/nrports file. * rsconfig.c: Find all running network ports, and compare them against the /etc/ax25/rsports file. * Update man pages
* Fix pile of warnings about differing signedness. One of them looksRalf Baechle2007-01-231-1/+1
| | | | like a real buglet for some architectures.
* Added better error messages in libax25, eg to print out the namesHamish Moffatt2001-09-111-4/+4
| | | | of missing files etc.
* Import ax25-lib 0.0.3 from tarballax25-lib-0.0.3Ralf Baechle1999-04-301-0/+2
|
* Import ax25-lib 0.0.2 from tarballax25-lib-0.0.2Ralf Baechle1999-04-211-4/+12
|
* Import ax25-lib 0.0.1 from tarballax25-lib-0.0.1Ralf Baechle1999-04-101-0/+273