From 96bb604b1216547e599d06b61f73cb39ae797c17 Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Thu, 6 Apr 2023 21:21:04 +0200 Subject: [PATCH] Fix typos --- NEWS | 2 +- doc/README.man-pages | 2 +- doc/hamlib.cfg.in | 2 +- extra/kylix/README.kylix | 4 ++-- extra/kylix/hamlib_rigapi.pas | 4 ++-- include/hamlib/rig.h | 6 +++--- rigs/jrc/jst145.c | 2 +- rigs/uniden/uniden_digital.c | 2 +- rigs/yaesu/newcat.c | 8 ++++---- src/amplifier.c | 2 +- src/rig.c | 10 +++++----- tests/ampctl_parse.c | 4 ++-- tests/testcookie.c | 6 +++--- 13 files changed, 27 insertions(+), 27 deletions(-) diff --git a/NEWS b/NEWS index 1d1c95e3e..1556473a0 100644 --- a/NEWS +++ b/NEWS @@ -21,7 +21,7 @@ Version 4.6 * Add rigctlsync utility to synchronize frequency from a rig to SDR# (or others) * Add SDR# rig for use with SDR#'s gpredict plugin -- can only get/set freq * Add Apex Shared Loop rotator -- unidirectional only so far - * Add client_version to rigctld so client can report it's version for future use/compatility/alternatives + * Add client_version to rigctld so client can report it's version for future use/compatibility/alternatives * Add --set-conf=tuner_control_pathname=hamlib_tuner_control (default) If file exists then it will be called with 0/1 (Off/On) argument with 'U TUNER 0' or 'U TUNER 1" diff --git a/doc/README.man-pages b/doc/README.man-pages index fe1c62d43..bac868bb5 100644 --- a/doc/README.man-pages +++ b/doc/README.man-pages @@ -159,7 +159,7 @@ PDF as blocks of constant width text and should be verbatim input or output in the shell, programs, or blocks of source code. Text intended to be typed at a shell or program prompt should be in bold and -program orshell output in normal weight. In some cases it will be necessary +program or shell output in normal weight. In some cases it will be necessary to use the "\fB...\fP" font formatting calls especially where backslash escapes ("\\") are required. diff --git a/doc/hamlib.cfg.in b/doc/hamlib.cfg.in index 569c6c14b..df1157178 100644 --- a/doc/hamlib.cfg.in +++ b/doc/hamlib.cfg.in @@ -17,7 +17,7 @@ MAN_EXTENSION = .3 # Set GENERATE_LATEX to YES to generate the needed files for the PDF manual # and run 'make doc'. Then 'cd latex ; make' to generate the PDF manual. # -# See section 1.3.1.2 in @top_srcdir@/README.developer for the needed LaTEX +# See section 1.3.1.2 in @top_srcdir@/README.developer for the needed LaTeX # packages. USE_PDFLATEX = YES PDF_HYPERLINKS = YES diff --git a/extra/kylix/README.kylix b/extra/kylix/README.kylix index 861faef1f..926ab389a 100644 --- a/extra/kylix/README.kylix +++ b/extra/kylix/README.kylix @@ -16,13 +16,13 @@ hamlib_rotapi.pas HamlibComponents.pas This file contain two components that encapsulate the rig and rotator - frontends. It is very simular to the C++ class. + frontends. It is very similar to the C++ class. A simple test program is included in the tests/ directory. It implements a selection dialog and a very simple Radio Control dialog. -This binding was develop with Borland Kylix Open Edition Ver 2.0. Open Edition +This binding was developed with Borland Kylix Open Edition Ver 2.0. Open Edition is freely downloadable from Borland's website for use with GPL projects. http://www.borland.com/kylix/ diff --git a/extra/kylix/hamlib_rigapi.pas b/extra/kylix/hamlib_rigapi.pas index 5d32d7dce..b9cec3ee3 100644 --- a/extra/kylix/hamlib_rigapi.pas +++ b/extra/kylix/hamlib_rigapi.pas @@ -327,7 +327,7 @@ const //#define RIG_IS_TOKEN_FRONTEND(t) ((t)&(1<<30)) {* - * strongly inspired from soundmedem. Thanks Thomas! + * strongly inspired from soundmodem. Thanks Thomas! *} RIG_CONF_STRING = 0; RIG_CONF_COMBO = 1; @@ -472,7 +472,7 @@ type const {* - * tranceive mode, ie. the rig notify the host of any event, + * transceive mode, ie. the rig notify the host of any event, * like freq changed, mode changed, etc. *} RIG_TRN_OFF = 0; diff --git a/include/hamlib/rig.h b/include/hamlib/rig.h index 842da28d5..b263bbfef 100644 --- a/include/hamlib/rig.h +++ b/include/hamlib/rig.h @@ -565,7 +565,7 @@ typedef unsigned int vfo_t; #define RIG_TARGETABLE_ANT (1<<10) #define RIG_TARGETABLE_ROOFING (1<<11) // roofing filter targetable by VFO #define RIG_TARGETABLE_SPECTRUM (1<<12) // spectrum scope targetable by VFO -#define RIG_TARGETABLE_BAND (1<<13) // Band select -- e.g. Yaeus BS command +#define RIG_TARGETABLE_BAND (1<<13) // Band select -- e.g. Yaesu BS command #define RIG_TARGETABLE_COMMON (RIG_TARGETABLE_RITXIT | RIG_TARGETABLE_PTT | RIG_TARGETABLE_MEM | RIG_TARGETABLE_BANK) #define RIG_TARGETABLE_ALL 0x7fffffff //! @endcond @@ -779,7 +779,7 @@ typedef long token_t; * * Current internal implementation * NUMERIC: val.f or val.i - * COMBO: val.i, starting from 0. Points to a table of strings or asci stored values. + * COMBO: val.i, starting from 0. Points to a table of strings or ASCII stored values. * STRING: val.s or val.cs * CHECKBUTTON: val.i 0/1 * BINARY: val.b @@ -2586,7 +2586,7 @@ struct rig_state { int lock_mode; /*!< flag that prevents mode changes if ~= 0 -- see set/get_lock_mode */ powerstat_t powerstat; /*!< power status */ char *tuner_control_pathname; /*!< Path to external tuner control program that get 0/1 (Off/On) argument */ - char client_version[32]; /*!cmd_str, "BS")) { RETURNFUNC(RIG_OK); } // if the first two chars match we are validated diff --git a/src/amplifier.c b/src/amplifier.c index 0dccadb3f..c0f164945 100644 --- a/src/amplifier.c +++ b/src/amplifier.c @@ -132,7 +132,7 @@ static int remove_opened_amp(const AMP *amp) #ifdef XXREMOVEDXX /** - * \brief Executess cfunc() on each #AMP handle. + * \brief Executes cfunc() on each #AMP handle. * * \param cfunc The function to be executed on each #AMP handle. * \param data Data pointer to be passed to cfunc() diff --git a/src/rig.c b/src/rig.c index d08616e46..13aeb5fee 100644 --- a/src/rig.c +++ b/src/rig.c @@ -843,7 +843,7 @@ int HAMLIB_API rig_open(RIG *rig) RETURNFUNC(-RIG_EINVAL); } - // rigctl/rigctld may have deprecated values -- backwards compatility + // rigctl/rigctld may have deprecated values -- backwards compatibility if (rs->rigport_deprecated.pathname[0] != 0) { strcpy(rs->rigport.pathname, rs->rigport_deprecated.pathname); @@ -4540,10 +4540,10 @@ int HAMLIB_API rig_set_split_mode(RIG *rig, __LINE__, rig_strvfo(tx_vfo), rig_strrmode(tx_mode)); } - // code below here should be dead code now -- but maybe we have VFO situatiuon we need to handle + // code below here should be dead code now -- but maybe we have VFO situation we need to handle if (caps->rig_model == RIG_MODEL_NETRIGCTL) { - // special handlingt for netrigctl to avoid set_vfo + // special handling for netrigctl to avoid set_vfo retcode = caps->set_split_mode(rig, vfo, tx_mode, tx_width); ELAPSED2; RETURNFUNC(retcode); @@ -4830,7 +4830,7 @@ int HAMLIB_API rig_set_split_freq_mode(RIG *rig, HAMLIB_TRACE; retcode = caps->set_split_freq_mode(rig, vfo, tx_freq, tx_mode, tx_width); -#if 0 // this verification seems to be causing bad behavior on some reigs +#if 0 // this verification seems to be causing bad behavior on some rigs // we query freq after set to ensure it really gets done do @@ -7456,7 +7456,7 @@ int HAMLIB_API rig_cookie(RIG *rig, enum cookie_e cookie_cmd, char *cookie, date_strget(cookie, cookie_len, 0); size_t len = strlen(cookie); // add on our random number to ensure uniqueness - // The cookie should never be longer then HAMLIB_COOKIE_SIZE + // The cookie should never be longer than HAMLIB_COOKIE_SIZE SNPRINTF(cookie + len, HAMLIB_COOKIE_SIZE - len, " %d\n", rand()); strcpy(cookie_save, cookie); time_last_used = time_curr; diff --git a/tests/ampctl_parse.c b/tests/ampctl_parse.c index 73ae8023d..55d2137ad 100644 --- a/tests/ampctl_parse.c +++ b/tests/ampctl_parse.c @@ -868,7 +868,7 @@ int ampctl_parse(AMP *my_amp, FILE *fin, FILE *fout, char *argv[], int argc) rp_getline("\nAmplifier command: "); - /* EOF (Ctl-D) received on empty input line, bail out gracefully. */ + /* EOF (Ctrl-D) received on empty input line, bail out gracefully. */ if (!input_line) { fprintf_flush(fout, "\n"); @@ -952,7 +952,7 @@ int ampctl_parse(AMP *my_amp, FILE *fin, FILE *fout, char *argv[], int argc) char cmd_name[MAXNAMSIZ]; /* if there is no terminating '\0' character in the source string, - * srncpy() doesn't add one even if the supplied length is less + * strncpy() doesn't add one even if the supplied length is less * than the destination array. Truncate the source string here. */ if (strlen(parsed_input[0] + 1) >= MAXNAMSIZ) diff --git a/tests/testcookie.c b/tests/testcookie.c index 5108e1792..106254803 100644 --- a/tests/testcookie.c +++ b/tests/testcookie.c @@ -28,9 +28,9 @@ static int test1() else {printf("Test#1c Failed\n"); return 1;} #if 0 - // after 1 second we should be able to get a coookie + // after 1 second we should be able to get a cookie // this means the cookie holder did not renew within 1 second - hl_usleep(1500 * 1000); // after 1 second we should be able to get a coookie + hl_usleep(1500 * 1000); // after 1 second we should be able to get a cookie retcode = rig_cookie(NULL, RIG_COOKIE_GET, cookie2, sizeof(cookie2)); @@ -91,7 +91,7 @@ static int test3_invalid_input() char cookie[HAMLIB_COOKIE_SIZE]; int n = 0; - /* Make sure any value smaller then HAMLIB_COOKIE_SIZE is rejected */ + /* Make sure any value smaller than HAMLIB_COOKIE_SIZE is rejected */ for (unsigned int i = 0; i < HAMLIB_COOKIE_SIZE; i++) { retcode = rig_cookie(NULL, RIG_COOKIE_GET, cookie, i);