[Hamlib-commits] Hamlib -- Ham radio control libraries branch master updated. 778edf7757966c6e8df10
Library to control radio transceivers and receivers
Brought to you by:
n0nb
|
From: n0nb <n0...@us...> - 2025-06-07 02:15:52
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Hamlib -- Ham radio control libraries".
The branch, master has been updated
via 778edf7757966c6e8df1089c8536f81fad64288b (commit)
via 4ce5763cb96444225e4ebe6d95c4420f110a375e (commit)
from 98d1d4f57b0d0a297dc3e082cb693dfdae74efe5 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 778edf7757966c6e8df1089c8536f81fad64288b
Merge: 98d1d4f57 4ce5763cb
Author: Nate Bargmann <n0...@n0...>
Date: Fri Jun 6 21:11:36 2025 -0500
Merge GitHub PR #1757
commit 4ce5763cb96444225e4ebe6d95c4420f110a375e
Author: Daniele Forsi IU5HKX <iu...@gm...>
Date: Fri Jun 6 19:05:38 2025 +0200
Fix exit statuses
Exit status 2 is for invalid command line options or arguments.
Exit status 2 is for errors returned by Hamlib.
diff --git a/tests/rigctlcom.c b/tests/rigctlcom.c
index a9d4e0142..09eb14a3b 100644
--- a/tests/rigctlcom.c
+++ b/tests/rigctlcom.c
@@ -413,7 +413,7 @@ int main(int argc, char *argv[])
if (argc == 1)
{
usage();
- exit(2);
+ exit(1);
}
my_rig = rig_init(my_model);
@@ -443,7 +443,7 @@ int main(int argc, char *argv[])
if (my_model > 5 && !rig_file)
{
fprintf(stderr, "-r rig com port not provided\n");
- exit(2);
+ exit(1);
}
if (rig_file)
@@ -454,7 +454,7 @@ int main(int argc, char *argv[])
if (!rig_file2)
{
fprintf(stderr, "-R com port not provided\n");
- exit(2);
+ exit(1);
}
strncpy(my_com.pathname, rig_file2, HAMLIB_FILPATHLEN - 1);
diff --git a/tests/rigctld.c b/tests/rigctld.c
index ae7fbf0cc..9ffb01a6f 100644
--- a/tests/rigctld.c
+++ b/tests/rigctld.c
@@ -783,7 +783,7 @@ int main(int argc, char *argv[])
else
{
fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(retcode));
- exit(2);
+ exit(1);
}
saved_result = result;
@@ -798,7 +798,7 @@ int main(int argc, char *argv[])
{
handle_error(RIG_DEBUG_ERR, "socket");
freeaddrinfo(saved_result); /* No longer needed */
- exit(2);
+ exit(1);
}
const int optval = 1;
diff --git a/tests/rotctld.c b/tests/rotctld.c
index 744dff685..d8a44d420 100644
--- a/tests/rotctld.c
+++ b/tests/rotctld.c
@@ -423,7 +423,7 @@ int main(int argc, char *argv[])
if (retcode != 0)
{
fprintf(stderr, "getaddrinfo: %s\n", gai_strerror(retcode));
- exit(2);
+ exit(1);
}
saved_result = result;
-----------------------------------------------------------------------
Summary of changes:
tests/rigctlcom.c | 6 +++---
tests/rigctld.c | 4 ++--
tests/rotctld.c | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
hooks/post-receive
--
Hamlib -- Ham radio control libraries
|