summaryrefslogtreecommitdiffstats
path: root/hdlcutil
Commit message (Collapse)AuthorAgeFilesLines
* hdrvcomm: Make functions hdrvc_sendmsg and hdrvc_recvmsg static.Ralf Baechle2017-02-061-2/+2
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove support for !defined(__GLIBC__) and __GLIBC__ != 2.Ralf Baechle2017-02-061-4/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* hdlcutil: Remove undocumented user mode.Ralf Baechle2017-02-061-204/+168
| | | | | | | | | | | | | | | | | | | The wrecking ball used was mostly this coccinelle script: @@ @@ - if (kernel_mode) { ... -} @@ @@ - if (!kernel_mode) { ... -} plus a bit of manual work for the remaining instances of kernel_mode. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* hdlcutil: Remove HDRVC_KERNEL ifdefery.Ralf Baechle2017-01-274-56/+0
| | | | | | HDRVC_KERNEL was always defined to on. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Use the right way to get the required feature set from glibc.Ralf Baechle2017-01-262-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | __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>
* sethdlc: Fix missleading indentation.Ralf Baechle2017-01-261-8/+7
| | | | | | | | | | | | sethdlc.c: In function ‘do_set_params’: sethdlc.c:333:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (set & 1) ^~ sethdlc.c:335:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ if (ret < 0) { ^~ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Add a git suffix to the version number used by all programs.Ralf Baechle2017-01-247-7/+14
| | | | | | | This uses a setlocalversion script derived from the kernel's scripts/setlocalversion. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Delete accidental remanent of old version number from previous commit.Ralf Baechle2017-01-231-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* hdlcutil/fl: Switch version number printed to ax25-tools version.Ralf Baechle2017-01-234-4/+12
| | | | | | | The version number has not been changed ever since ax25-tools 0.0.6 making the version useless for bug reporting. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* hdlcutil: Switch version number printed to ax25-tools version.Ralf Baechle2017-01-233-3/+9
| | | | | | | The version number has not been changed ever since ax25-tools 0.0.1 making the version useless for bug reporting. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* hdlcutil/usersmdiag.h: 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 hdrvcomm.o -MD -MP -MF .deps/hdrvcomm.Tpo -c -o hdrvcomm.o hdrvcomm.c hdrvcomm.c: In function ‘hdrvc_get_driver_name’: hdrvcomm.c:677:1: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign] strncpy(buf, msg.data.by, ret); ^ hdrvcomm.c:677:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ hdrvcomm.c: In function ‘hdrvc_get_mode_name’: hdrvcomm.c:712:1: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign] strncpy(buf, msg.data.by, ret); ^ hdrvcomm.c:712:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* hdlcutil/sethdlc.c: Fix signedness compiler warnings.Ralf Baechle2015-06-071-2/+2
| | | | | | | | | | | | | | gcc -DHAVE_CONFIG_H -I. -I.. -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/usr/local/var/ax25/"\" -g -O2 -Wall -MT sethdlc.o -MD -MP -MF .deps/sethdlc.Tpo -c -o sethdlc.o sethdlc.c sethdlc.c: In function ‘main’: sethdlc.c:539:34: warning: pointer targets in passing argument 1 of ‘hdrvc_recvpacket’ differ in signedness [-Wpointer-sign] while ((ret = hdrvc_recvpacket(pktbuf, sizeof(pktbuf))) > 1) ^ In file included from sethdlc.c:46:0: hdrvcomm.h:88:12: note: expected ‘char *’ but argument is of type ‘unsigned char *’ extern int hdrvc_recvpacket(char *pkt, int maxlen); ^ 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>
* Always have a space between if, for, switch, while and the following `('.Ralf Baechle2013-06-171-6/+6
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Use tabs for indentation, not spaces.Ralf Baechle2013-06-1712-261/+261
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove useless initializations to 0 or NULL.Ralf Baechle2013-06-174-4/+4
| | | | | | | 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>
* Nuke trailing whitespace.Ralf Baechle2013-06-1716-207/+207
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Nuke trailing blank lines.Ralf Baechle2013-06-174-14/+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-4/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Fix linking order.Ralf Baechle2013-06-101-2/+1
| | | | | | | This fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=671016 but using a smaller patch. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Fix warnings about passing of string constant as argument.Ralf Baechle2013-06-062-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -g -O2 -MT xfsmmixer_main.o -MD -MP - MF .deps/xfsmmixer_main.Tpo -c -o xfsmmixer_main.o xfsmmixer_main.cxx xfsmmixer_main.cxx: In function ‘int main(int, char**)’: xfsmmixer_main.cxx:318:31: warning: deprecated conversion from string constant t o ‘char*’ [-Wwrite-strings] [...] g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -g -O2 -MT xfhdlcchpar_main.o -MD -MP -MF .deps/xfhdlcchpar_main.Tpo -c -o xfhdlcchpar_main.o xfhdlcchpar_main.cxx xfhdlcchpar_main.cxx: In function ‘int main(int, char**)’: xfhdlcchpar_main.cxx:88:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] [...] g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -g -O2 -MT xfhdlcst_main.o -MD -MP -M F .deps/xfhdlcst_main.Tpo -c -o xfhdlcst_main.o xfhdlcst_main.cxx xfhdlcst_main.cxx: In function ‘int main(int, char**)’: xfhdlcst_main.cxx:84:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] [...] g++ -DHAVE_CONFIG_H -I. -I../.. -I./.. -g -O2 -MT xfsmdiag_main.o -MD -MP -M F .deps/xfsmdiag_main.Tpo -c -o xfsmdiag_main.o xfsmdiag_main.cxx xfsmdiag_main.cxx: In function ‘int main(int, char**)’: xfsmdiag_main.cxx:360:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Convert .cvsignore files to .gitignoreRalf Baechle2013-06-042-2/+2
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Fix build in a directory other than the source directory.Ralf Baechle2009-06-191-1/+1
|
* Further update of .cvsignore files for hdlcutil/fl.Ralf Baechle2009-06-191-2/+3
|
* Ignore a few more generated files.Ralf Baechle2009-06-192-0/+2
|
* Remove all generated files.Ralf Baechle2009-06-192-1098/+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.
* Delete 2001 vintage hdlcutil/fl/{xfhdlcchpar,xfhdlcst,xfsmmixer} binaries.Ralf Baechle2009-06-183-0/+0
| | | | | | These probably survived because building them requires libGL, fltk and libXi to be installed. If they're not installed a make distclean also won't try to delete the binaries.
* Fix type of length argument to sockset syscalls.Ralf Baechle2009-06-141-1/+1
| | | | | | | | 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.
* Fix for autoconf. Thanks to Tom <DL1JBE>Thomas Osterried2008-08-031-3/+3
|
* changed mail addressesThomas Osterried2008-04-2717-23/+23
|
* Convert to autoconf 2.59. Delete junk from past centuries.Ralf Baechle2007-01-222-583/+789
|
* q&d bugfix. but now compiles ;)Thomas Osterried2005-10-312-5/+3
|
* include <net/ethernet.h> or <linux/if_ether.h>Michael Taylor2004-12-121-0/+6
|
* /usr/include/linux/soundmodem.h not included with 2.6.x kernel, so include ↵Michael Taylor2004-12-122-1/+91
| | | | soundmodem.h here
* added netinet/in.h for htons prototypeMichael Taylor2004-12-121-1/+1
|
* replace asm/byteorder.h with public endian.hMichael Taylor2004-12-121-1/+1
|
* replace asm/byteorder.h with public header endian.hMichael Taylor2004-12-121-1/+1
|
* fix minor problemMichael Taylor2004-12-111-1/+3
|
* removedMichael Taylor2003-04-027-980/+0
|
* Removed MakefilesCraig Small2003-02-222-511/+6
|
* testCraig Small2003-02-222-0/+892
|
* added remaining sys/time.h includes for ppcCraig Small2002-06-191-0/+5
|
* removed some stuff that shouldnt be thereCraig Small2002-03-042-2/+2
|
* remove inline statements in hdrvcommCraig Small2001-08-271-2/+2
|
* last checking for 0.0.8ax25-tools-0.0.8Craig Small2001-05-162-50/+133
|
* synced to klaus codeCraig Small2001-05-109-0/+599
|
* Import ax25-tools 0.0.6 from tarballax25-tools-0.0.6Ralf Baechle2001-04-1124-286/+3356
|
* Import ax25-tools 0.0.4 from tarballax25-tools-0.0.4Ralf Baechle1999-08-104-6/+11
|
* Import ax25-tools 0.0.3 from tarballax25-tools-0.0.3Ralf Baechle1999-07-085-546/+7
|
* Import ax25-tools 0.0.2 from tarballax25-tools-0.0.2Ralf Baechle1999-06-078-0/+896
|