summaryrefslogtreecommitdiffstats
path: root/axutils.c
Commit message (Collapse)AuthorAgeFilesLines
* axutils.c: Fix warning.Ralf Baechle2015-05-071-1/+2
| | | | | | | | | | | | | | libtool: compile: gcc -DHAVE_CONFIG_H -I. -DAX25_SYSCONFDIR=\"/usr/local/etc/ax 25/\" -DAX25_LOCALSTATEDIR=\"/usr/local/var/ax25/\" -g -O2 -Wall -MT axutils.lo -MD -MP -MF .deps/axutils.Tpo -c axutils.c -fPIC -DPIC -o .libs/axutils.o axutils.c: In function 'rose_aton': axutils.c:169:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=] printf("axutils: invalid rose address '%s' length = %d\n", addr, strlen(addr)); ^ Fixed by using a %z conversion which is a construct introduced for C99. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Reformat consistently. Strictly whitespace changes only.Ralf Baechle2013-06-171-1/+1
| | | | | | | 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>
* Use tabs for indentation, not spaces.Ralf Baechle2013-06-171-3/+3
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Nuke trailing whitespace.Ralf Baechle2013-06-171-19/+19
| | | | 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>
* cosmetic changesThomas Osterried2011-01-161-7/+6
|
* fix in ax25_aton() and in ax25_aton_arglist() - very old bug:Thomas Osterried2010-09-161-2/+2
| | | | | | | | | | | | | Stored only 7 of max 8 (AX25_MAX_DIGIS) digipeaters from ascii string to the struct full_sockaddr_ax25 *fsap. Why? int n = 0; do { ... } while (n < AX25_MAX_DIGIS && *bp); Everyone should say "oh yes, n = 0; -> do ... while n < MAX_DIGIS". But: in the loop n is increased by one. Thus only 7 of 8 arguments hav been copied. do { ... } while (n <= AX25_MAX_DIGIS && *bp); fixes this issue.
* ax25_ntoa: Don't emit SSID suffix if the SSID is zero.Ralf Baechle2009-09-101-6/+9
| | | | From: Matti Aarnio OH2MQK <matti.aarnio@zmailer.org>
* Move all header files to be installed to new subdirectory netax25.Ralf Baechle2009-06-201-10/+1
|
* Fix pile of warnings about differing signedness. One of them looksRalf Baechle2007-01-231-3/+6
| | | | like a real buglet for some architectures.
* Fix warning about lost const pointer attribute.Ralf Baechle2007-01-231-1/+1
|
* Import libax25 0.0.5 from tarballlibax25-0.0.5Ralf Baechle1999-07-081-2/+2
|
* Import ax25-lib 0.0.3 from tarballax25-lib-0.0.3Ralf Baechle1999-04-301-8/+8
|
* Import ax25-lib 0.0.2 from tarballax25-lib-0.0.2Ralf Baechle1999-04-211-11/+21
|
* Import ax25-lib 0.0.1 from tarballax25-lib-0.0.1Ralf Baechle1999-04-101-0/+321