From 8150583541e4230c6b76dc38209b58694f6e6f99 Mon Sep 17 00:00:00 2001 From: George Baltz N3GB Date: Wed, 16 Apr 2025 03:33:51 -0400 Subject: [PATCH] Drop redundant token lookups. --- tests/ampctl.c | 2 +- tests/ampctld.c | 2 +- tests/rigctl.c | 2 +- tests/rigctld.c | 2 +- tests/rotctl.c | 2 +- tests/rotctld.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/ampctl.c b/tests/ampctl.c index 6a0cf29b3..04ed2cef5 100644 --- a/tests/ampctl.c +++ b/tests/ampctl.c @@ -315,7 +315,7 @@ int main(int argc, char *argv[]) continue; } - retcode = amp_set_conf(my_amp, amp_token_lookup(my_amp, mytoken), myvalue); + retcode = amp_set_conf(my_amp, lookup, myvalue); if (retcode != RIG_OK) { diff --git a/tests/ampctld.c b/tests/ampctld.c index 079eb068b..fda0bfa09 100644 --- a/tests/ampctld.c +++ b/tests/ampctld.c @@ -340,7 +340,7 @@ int main(int argc, char *argv[]) continue; } - retcode = amp_set_conf(my_amp, amp_token_lookup(my_amp, mytoken), myvalue); + retcode = amp_set_conf(my_amp, lookup, myvalue); if (retcode != RIG_OK) { diff --git a/tests/rigctl.c b/tests/rigctl.c index 35d1241b3..064e54f14 100644 --- a/tests/rigctl.c +++ b/tests/rigctl.c @@ -585,7 +585,7 @@ int main(int argc, char *argv[]) continue; } - retcode = rig_set_conf(my_rig, rig_token_lookup(my_rig, mytoken), myvalue); + retcode = rig_set_conf(my_rig, lookup, myvalue); if (retcode != RIG_OK) { diff --git a/tests/rigctld.c b/tests/rigctld.c index 8ee613cf1..f14effe7b 100644 --- a/tests/rigctld.c +++ b/tests/rigctld.c @@ -681,7 +681,7 @@ int main(int argc, char *argv[]) continue; } - retcode = rig_set_conf(my_rig, rig_token_lookup(my_rig, mytoken), myvalue); + retcode = rig_set_conf(my_rig, lookup, myvalue); if (retcode != RIG_OK) { diff --git a/tests/rotctl.c b/tests/rotctl.c index 873c9b96e..9b713d3ad 100644 --- a/tests/rotctl.c +++ b/tests/rotctl.c @@ -355,7 +355,7 @@ int main(int argc, char *argv[]) continue; } - retcode = rot_set_conf(my_rot, rot_token_lookup(my_rot, mytoken), myvalue); + retcode = rot_set_conf(my_rot, lookup, myvalue); if (retcode != RIG_OK) { diff --git a/tests/rotctld.c b/tests/rotctld.c index e68227acf..aa61d71a4 100644 --- a/tests/rotctld.c +++ b/tests/rotctld.c @@ -363,7 +363,7 @@ int main(int argc, char *argv[]) continue; } - retcode = rot_set_conf(my_rot, rot_token_lookup(my_rot, mytoken), myvalue); + retcode = rot_set_conf(my_rot, lookup, myvalue); if (retcode != RIG_OK) {