Wykres commitów

1423 Commity (39a1a367e1f45b80df63ec527fec7a462ee98012)

Autor SHA1 Wiadomość Data
George Baltz N3GB 39a1a367e1 Get rid of a few more style infractions.
Update NEWS.
2025-06-08 03:42:33 -04:00
Daniele Forsi IU5HKX 10180a6dc2 Fix sign of error return values
All RIG_E* constants should be negated when returned or compared.

Fixed with:
perl -pe 's/return RIG_E/return -RIG_E/' -i $(grep -lEr "return RIG_E" --include=*.{c,h})
perl -pe 's/= RIG_E/= -RIG_E/g' -i $(grep -lEr "= RIG_E" --include=*.{c,h})
2025-06-07 12:07:44 +02:00
Daniele Forsi IU5HKX 72bde6e131 Fix sign of error return values
All RIG_E* constants should be negated when returned or compared.
Change the usages of RIG_IS_SOFT_ERRCODE() for consistency.
2025-06-07 10:54:34 +02:00
Daniele Forsi IU5HKX 4ce5763cb9 Fix exit statuses
Exit status 2 is for invalid command line options or arguments.
Exit status 2 is for errors returned by Hamlib.
2025-06-06 23:58:02 +02:00
Nate Bargmann c92fee947a
Merge GitHub PR #1709 2025-06-05 21:42:20 -05:00
George Baltz N3GB 7d28822273 Add '#include "cache.h"' to all files that reference cache structure.
Issue #1420
2025-06-03 12:07:27 -04:00
Nate Bargmann 9570d9963b
Merge GitHub PR #1742 2025-05-22 18:17:59 -05:00
Daniele Forsi IU5HKX 4109d606b5 Fix typos 2025-05-22 21:55:10 +02:00
Daniele Forsi IU5HKX b03dea99b5 Allow to give the command lines options --list or --version 2025-05-14 19:41:34 +02:00
Daniele Forsi IU5HKX 55cae893f0 Fix definition of -B/--mapa2b command line option
It doesn't accept an argument.
2025-05-14 19:41:34 +02:00
Daniele Forsi IU5HKX e34ae180a2 Remove unused definition of -z command line option 2025-05-14 19:41:34 +02:00
Daniele Forsi IU5HKX dc3a71da1b Document existing option to read commands from stdin 2025-05-14 19:41:34 +02:00
Daniele Forsi IU5HKX 57e5dba438 Make usage texts more similar 2025-05-14 19:41:34 +02:00
Daniele Forsi IU5HKX 5c05881e0e Add rules to build dependencies of libhamlib.la in other directories
This makes it possible to run "make -C src/" or "make -C tests/ rigctl"
or "make -C bindings/ check" (and so on) in a clean tree, but it doesn't
rebuild those targets if libhamlib.la is changed; for this run make from
the top directory as usual, to rebuild all SUBDIRS if needed.
2025-05-08 23:51:47 +02:00
Nate Bargmann 9aed2637a6
Merge pull request #1708 from GeoBaltz/fix27
Minor fixes/cleanups for 4.6.3
2025-04-21 17:27:29 -05:00
Nate Bargmann 8f641b2b6a
Merge pull request #1707 from dforsi/fix/manpage
Fix/manpage
2025-04-21 17:22:59 -05:00
Daniele Forsi IU5HKX 20b92ea115 Remove dead code
The code removed could never be executed because getopt()/getopt_long()
detect a missing argument only if it is at the end of the command line
and return '?' which is handled by the default case of the switch which
prints an error message to stderr.
2025-04-21 22:37:37 +02:00
Daniele Forsi IU5HKX cee0fcb2cb Add -b, --bind-all to --help text 2025-04-21 22:21:10 +02:00
Daniele Forsi IU5HKX 7f717d520d Add that passwords aren't implemented 2025-04-21 20:25:09 +02:00
Daniele Forsi IU5HKX cd82f08ec5 Add missing command line short option -b for --bind-all 2025-04-21 20:25:09 +02:00
Daniele Forsi IU5HKX 2c0067d510 Remove unused command line short options -M and -N
The long options --multicast-addr and --multicast-port were
removed in commit c8c8869a.
2025-04-21 20:25:09 +02:00
Daniele Forsi IU5HKX faae6b5405 Add missing arguments to command line options 2025-04-21 20:25:09 +02:00
George Baltz N3GB 1f707ab31e Make local functions static. 2025-04-20 21:28:57 -04:00
George Baltz N3GB 8150583541 Drop redundant token lookups. 2025-04-20 21:28:57 -04:00
Daniele Forsi IU5HKX b141c14270 Make help strings more similar
Fixes text indent and verbs.
2025-04-19 23:57:26 +02:00
Daniele Forsi IU5HKX cfc5c821a0 Delete a generated file when doing make clean 2025-04-16 19:48:56 +02:00
Michael Black W9MDB f3a932bf50 Revert "Remove setting debug in rotctl.c"
This reverts commit eb9bf6fb84.
2025-02-06 22:33:54 -06:00
Michael Black W9MDB eb9bf6fb84 Remove setting debug in rotctl.c 2025-02-06 22:27:46 -06:00
Michael Black W9MDB 7d535564bd Fix rig_list_foreach in testmW2power.c
https://github.com/Hamlib/Hamlib/issues/1647
2024-12-29 10:44:32 -06:00
Michael Black W9MDB ac8a8b2027 Fix rig_list_foreach in hamlibmodels.c
https://github.com/Hamlib/Hamlib/issues/1647
2024-12-29 10:33:33 -06:00
Michael Black W9MDB 728d0a5432 Fix listrigs.s rig_list_foreach
https://github.com/Hamlib/Hamlib/issues/1647
2024-12-29 08:56:53 -06:00
Michael Black W9MDB 601dd1361c Fix testrigopen.c rig_list_foreach
https://github.com/Hamlib/Hamlib/issues/1647
2024-12-29 08:51:47 -06:00
Michael Black W9MDB f2a9f091d0 Change rig_list_foreach back to using const argument -- was breaking many C++ application builds
https://github.com/Hamlib/Hamlib/issues/1647
2024-12-29 08:42:24 -06:00
Michael Black W9MDB 57c145d5d1 Remove skip_init default
Was causing segfault on rigctl -m 2041 -r /dev/pts/4 M CW 250 b 73
2024-12-25 22:43:20 -06:00
Michael Black W9MDB 8edf99fc18 Change skipinit so skip-init for consistency
And now ignores the skip-init on the non-interactive rigctl
2024-12-25 16:36:37 -06:00
Michael Black W9MDB 9ac7f92d1e Update some documentation 2024-12-25 15:59:40 -06:00
Michael Black W9MDB e0a805ebc3 Make skip_init automatic when rigctl has commands on the line 2024-12-24 23:19:02 -06:00
Michael Black W9MDB 750adb40b5 Fix cleartext warning in rigctl_parse.c 2024-12-22 11:30:04 -06:00
Michael Black W9MDB b763761d9e Fix cleartext warning in rigctl_parse.c and rotctl_parse.c 2024-12-22 11:26:18 -06:00
Michael Black W9MDB d302b8fabd Fix sscanf in rigctl_parse.c 2024-12-22 11:14:14 -06:00
Michael Black W9MDB fe45fa2dfc Fix sscanf compare in rigctl_parse.c 2024-12-22 10:38:07 -06:00
Michael Black W9MDB 57c5047c3e Hopefully fix codeql warning about cleartext storage of sensitive information 2024-12-22 10:32:59 -06:00
Michael Black W9MDB 89383a553a Fix buffer overrun in ampctl.c 2024-12-22 10:31:17 -06:00
Michael Black W9MDB 2b23051c6d Remove display of password from debug
https://github.com/Hamlib/Hamlib/security/code-scanning/15
2024-12-21 15:19:25 -06:00
Michael Black W9MDB e6be427c51 Fix buffer overflow in ampctld.c 2024-12-21 14:42:46 -06:00
Michael Black W9MDB 72424ac144 Fix buffer overflow in rigctl.c
https://github.com/Hamlib/Hamlib/security/code-scanning/3212
2024-12-21 14:41:58 -06:00
Michael Black W9MDB 12c453ccd3 Fix buffer overflow in rigctlcom.c
https://github.com/Hamlib/Hamlib/security/code-scanning/3213
2024-12-21 14:41:25 -06:00
Michael Black W9MDB 6cf93934a7 Fix buffer overflow in rigctld.c
https://github.com/Hamlib/Hamlib/security/code-scanning/3214
2024-12-21 14:40:46 -06:00
Michael Black W9MDB 9624f06be9 Fix buffer overflow in rigctlsync.c
https://github.com/Hamlib/Hamlib/security/code-scanning/3215
2024-12-21 14:40:02 -06:00
Michael Black W9MDB 0690fbc0c5 Fix buffer overflow in rigctltcp.c 2024-12-21 14:39:33 -06:00