summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* treewide: Update all references to the FSF's address.Ralf Baechle2019-04-1119-19/+38
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* COPYING: Update license from FSF source.Ralf Baechle2019-04-101-21/+20
| | | | | | | | | | The checked in version is an unchanged version of the file obtained from https://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt. Aside from minor whitespace changes it fixes the FSF's address which has changed many years ago and reflects the FSF renaming the Library GNU Public License to the GNU Lesser Public License. The actual licensing terms are unchanged. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Bump version to 0.0.10-rc5.ax25-tools-0.0.10-rc5Ralf Baechle2019-04-021-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ChangeLog: Update with changes since 0.0.10-rc4.Ralf Baechle2019-04-021-0/+11
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Remove deprecated Group tag from spec file.Ralf Baechle2019-04-021-2/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Drop useless %defattr directives.Ralf Baechle2019-04-021-2/+0
| | | | | | They only enforce what's already the default. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Drop useless %attr directives.Ralf Baechle2019-04-021-2/+2
| | | | | | | They only enforce what's already the default. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Suggested-by: Richard Shaw <hobbes1069@gmail.com>
* RPM: Move -docs subpackage back into the main and x subpackages.Ralf Baechle2019-04-021-15/+11
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Suggested-by: Richard Shaw <hobbes1069@gmail.com>
* axspawn: Fix transformation by bad cleanupRalf Baechle2019-03-281-3/+2
| | | | | | | | | 6afad7276402 ("Delete more assignments in if conditions.") has a manual edit and that promptly went wrong. Fixes: 6afad7276402 ("Delete more assignments in if conditions.") Reported-by: Thomas Osterried <ax25@x-berg.in-berlin.de> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Man pages: Update with date from last non-trivial change.Ralf Baechle2019-03-2831-31/+31
| | | | | | | | | In some of these pages the content was changed relativly recently but the date in the man page itself was never updated so dates were off by decades. Update all man pages to last non-trival change recorded in git since imported. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* axgetput: Rename README file to README.axgetput.Ralf Baechle2019-03-283-2/+2
| | | | | | | | The README file was conflicting with the README files in the root directory so only the of the files ended up getting installed on "make install" or when packaging. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Shuffle doc and license files to their proper locations.Ralf Baechle2019-03-281-5/+6
| | | | | | | Every subpackage gets a copy of LICENSE and the doc package a copy of all man pages and all other documentation files. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Don't package %{_docdir}/*Ralf Baechle2019-03-281-1/+0
| | | | | | | | Now that we no longer install doc files other than man pages on make install this only ended up packaging an empty directory which we don't want anyway. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Avoid installation of doc files during make install.Ralf Baechle2019-03-281-1/+1
| | | | | | | Automake has different ideas from rpm where doc files should live. This may cause duplicate doc files and even build breakage. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* README: Fix spelling of "kissattach".Ralf Baechle2019-03-281-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Kissattach: Document -6 option for spattach, too.Ralf Baechle2019-03-281-2/+2
| | | | | | | The option may be a no-op for spattach but as long as the code does accept it, it should be documented. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Kissattach: Document -i option in synopsis section of manpage.Ralf Baechle2019-03-281-2/+2
| | | | | | | The -i option may be deprecated but still it should be documented as long as it still exists in the code. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Cleanup X BuildReques: tags, depending fltk-devel does it all.Ralf Baechle2019-03-271-2/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* autoconf: Renovate checking for GUI libraries.Ralf Baechle2019-03-271-7/+2
| | | | | | | These days the fltk-config script does it all and so we can drop all the GL tests. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Add gcc to build requirements.Ralf Baechle2019-03-261-0/+1
| | | | | | This fixes mock builds. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Make the ax25-tools-docs package a noarch package.Ralf Baechle2019-03-261-0/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Package ax25/ax25.profile.Ralf Baechle2019-03-211-0/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Automake: distribute scm-version.h.in.Ralf Baechle2019-03-211-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Automake: distribute but don't install setlocalversion script.Ralf Baechle2019-03-211-0/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Add distribution version to rpm release tag.Ralf Baechle2019-03-211-1/+1
| | | | | | This is required by the Fedora versioning guidelines. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* RPM: Throw in a `.' between BASEVERSION and EXTRAVERSION.Ralf Baechle2019-03-211-1/+1
| | | | | | As required by Fedora versioning guidelines. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ax25getput: Distribute TIPS.txt.Ralf Baechle2019-03-201-0/+1
| | | | | | | While add it force the distribution of README and TODO in the same directory instead of relying on automake's default behaviour. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Treewide: Delete duplicate #includes.Ralf Baechle2017-08-084-4/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Make missing libutil fatal.Ralf Baechle2017-08-081-1/+1
| | | | | | | We could simply skip building the two programs that require libutil but since it's always available with glibc there's no point. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* net2kiss: Switch from private openpty() implementation to libutil.Ralf Baechle2017-08-082-48/+2
| | | | | | | | In particular the openpty() implementation was still using only the old BSD terminals so not working on modern distributions which ship their kernels with CONFIG_LEGACY_PTYS disabled. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ax25-tools don't need ncurses.Ralf Baechle2017-08-081-2/+0
| | | | | | So don't check for it. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* axgetput: Delete duplicate inclusion of <sys/types.h>Ralf Baechle2017-08-081-1/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* kissattach.8, spattach.8: Fix references to non-existing man page.Ralf Baechle2017-08-031-2/+2
| | | | | | There is no axparms(4) man page but axparms(8) would make sense. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* ax25.4: Fix reference to non-existing man page.Ralf Baechle2017-08-031-2/+2
| | | | | | There is no axparms(5) man page but axports(5) would make sense. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Delete more assignments in if conditions.Ralf Baechle2017-08-035-41/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on below coccinelle script with a bad transformation fixed up manually. @if1@ expression E, F, G; binary operator X; statement S; @@ - if ((E = F) X G) + E = F; + if (E X G) S @if2@ expression E, F, G; binary operator X; statement S; @@ - if (G X (E = F)) + E = F; + if (E X G) S @if3@ expression E, F; statement S; @@ - if (!(E = F)) + E = F; + if (!E) S @if4@ expression E, F; statement S; @@ - if ((E = F)) + E = F; + if (E) S Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* kissnetd: Fix swapped calloc arguments.Ralf Baechle2017-08-031-1/+1
| | | | | | Fortunately this is a harmless issue. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* treewide: Remove casts of a type to the same type.Ralf Baechle2017-08-031-1/+1
| | | | | | | | | | | | | This is using the following semantic patch: @identitycast@ type T; T *A; @@ - (T *) A + A Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* treewide: Remove useless casts from bind() pointer argument.Ralf Baechle2017-08-032-2/+2
| | | | | | | | | | | | | | | | | | | | | This is using the following semantic patch: @bind@ type T; expression A, C; struct sockaddr *B; @@ - bind(A, (struct sockaddr *) B, C) + bind(A, B, C) @bind_in@ type T; expression A, C; struct sockaddr_in *B; @@ - bind(A, (struct sockaddr *) B, C) + bind(A, B, C) Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* treewide: Remove useless casts of function return value to void.Ralf Baechle2017-08-034-17/+14
| | | | | | | | | | | | | | | | Arguably useful in documenting the return value is intentionally ignored I think it's just cluttering the screen. This is using the following semantic patch: @castvoid@ expression F; @@ - (void) F + F (...) Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* treewide: Remove useless casts from sendto() pointer argument.Ralf Baechle2017-08-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is using the following semantic patch: @send@ type T; expression A, B, C, D; @@ - send(A, (T *)B, C, D) + send(A, B, C, D) @sendto1@ type T; expression A, B, C, D, E, F; @@ - sendto(A, (T *)B, C, D, E, F) + sendto(A, B, C, D, E, F) @sendto2@ type T; expression A, B, C, D, F; struct sockaddr *E; @@ - sendto(A, B, C, D, (struct sockaddr *) E, F) + sendto(A, B, C, D, E, F) @sendmsg@ type T; expression A, B, C; @@ - sendmsg(A, (T *)B, C) + sendmsg(A, B, C) Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* treewide: Remove useless casts from memset pointer argument.Ralf Baechle2017-08-036-13/+13
| | | | | | | | | | | | | This is using the following semantic patch: @memset@ type T; expression A, B, C; @@ - memset((T *)A, B, C) + memset(A, B, C) Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* treewide: Remove useless casts from memcpy pointer arguments.Ralf Baechle2017-08-034-13/+18
| | | | | | | | | | | | | | | | | | | This is using the following semantic patch: @memcpy1@ type T; expression A, B, C; @@ - memcpy((T *)A, B, C) + memcpy(A, B, C) @memcpy2@ type T; expression A, B, C; @@ - memcpy(A, (T *)B, C) + memcpy(A, B, C) Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rip98d: Perform a crapectomy on hex2intrev().Ralf Baechle2017-08-031-46/+4
| | | | | | | | | | | | | hex2intrev is a hilariously complicated function which combine parsing a hexadecimal integer in network byte order and swapping the result to host byte order. Move the endianess swapping to the caller which allows to remove double endianess swapping. Now that hex2intrev no longer deals with byte order rename it to hex2int and replace its implementation with a simple invocation of strtoul. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rip98r: Use unsigned int to store IPv4 addresses and masks.Ralf Baechle2017-08-031-2/+2
| | | | | | Unsigned long is wasteful on 64 bit. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rip98d: Replace naive mask2bits and bits2mask implementations.Ralf Baechle2017-08-032-53/+10
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rip98d: Change bits2mask's return value from unsigned long to unsigned int.Ralf Baechle2017-08-012-2/+2
| | | | | | An IPv4 mask fit into an unsigned int. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rip98d: Change mask2bits's argument from unsigned long to unsigned int.Ralf Baechle2017-08-012-2/+2
| | | | | | An IPv4 address or mask fits into an unsigned int. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* treewide: Kill assignments in if conditions.Ralf Baechle2017-07-3142-219/+439
| | | | | | | | | | | | | | | | | | | | 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>
* axwrapper: Compute nfds argument of select() instead of using a constant.Ralf Baechle2017-07-261-1/+10
| | | | | | | In particular this remove reliance on how file descriptors are assigned and ensures we don't pass an unnecessarily high nfds argument to select. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* axwrapper: Remove unused code resulting in warning.Ralf Baechle2017-07-261-7/+0
| | | | | | | | | | | | | | | | | gcc -g -O2 -Wall -o axspawn axspawn.o access.o md5.o -lax25 -lutil gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -DAX25_SYSCONFDIR=\""/usr/local/etc/ax25/"\" -DAX25_LOCALSTATEDIR=\""/us r/local/var/ax25/"\" -g -O2 -Wall -MT axwrapper.o -MD -MP -MF .deps/axwrapper.Tpo -c -o axwrapper.o axwrapper.c axwrapper.c:49:13: warning: ‘sigchld_handler’ defined but not used [-Wunused-function] static void sigchld_handler(int sig) ^~~~~~~~~~~~~~~ Since 71918b7d4e95 ("axwrapper: Mark functions sigchld_handler and convert_{cr_lf,lf_cr} static.") made sigchld_handler() static gcc was warning about the function being unused. No point in keeping this around; SIGCHLD is perfectly fine. Fixes: 71918b7d4e95 ("axwrapper: Mark functions sigchld_handler and convert_{cr_lf,lf_cr} static.") Signed-off-by: Ralf Baechle <ralf@linux-mips.org>