summaryrefslogtreecommitdiffstats
path: root/hdlcutil/hdrvcomm.c
Commit message (Collapse)AuthorAgeFilesLines
* treewide: Kill assignments in if conditions.Ralf Baechle2017-07-311-6/+13
| | | | | | | | | | | | | | | | | | | | Somewhat hard to read and the code base already has many overlong lines. Found with below spatch file and some manual editing in ax25/access.c to restore a comment lost by spatch. @parens@ expression E, F, G; binary operator X; statement S; @@ - if ((E = F) X G) + E = F; + if (E X G) S Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* 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-271-32/+0
| | | | | | HDRVC_KERNEL was always defined to on. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Use tabs for indentation, not spaces.Ralf Baechle2013-06-171-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Remove useless initializations to 0 or NULL.Ralf Baechle2013-06-171-1/+1
| | | | | | | 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-171-25/+25
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Fix warnings about passing of string constant as argument.Ralf Baechle2013-06-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* 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.
* changed mail addressesThomas Osterried2008-04-271-1/+1
|
* include <net/ethernet.h> or <linux/if_ether.h>Michael Taylor2004-12-121-0/+6
|
* 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
|
* remove inline statements in hdrvcommCraig Small2001-08-271-2/+2
|
* Import ax25-tools 0.0.6 from tarballax25-tools-0.0.6Ralf Baechle2001-04-111-51/+95
|
* Import ax25-tools 0.0.4 from tarballax25-tools-0.0.4Ralf Baechle1999-08-101-1/+5
|
* Import ax25-tools 0.0.1 from tarballax25-tools-0.0.1Ralf Baechle1999-04-211-0/+663