Skip to content

Fix spelling errors in user-visible text and in code comments #353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix errors in strings
Errors found with codespell.
  • Loading branch information
dforsi committed Sep 19, 2021
commit d10ccb6cc0e0d3d2496eeed423a0973d12a9f704
2 changes: 1 addition & 1 deletion src/agwlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ static void * tnc_listen_thread (void *arg)
s_tnc_sock = dwsock_connect (s_tnc_host, s_tnc_port, "TNC", 0, 0, tncaddr);

if (s_tnc_sock != -1) {
dw_printf ("Succesfully reattached to network TNC.\n");
dw_printf ("Successfully reattached to network TNC.\n");

// Might need to run TNC initialization again.
// For example, a server would register its callsigns.
Expand Down
2 changes: 1 addition & 1 deletion src/atest.c
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ int main (int argc, char *argv[])
dw_printf ("%d packets decoded in %.3f seconds. %.1f x realtime\n", packets_decoded_total, elapsed, total_filetime/elapsed);
if (d_o_opt) {
dw_printf ("DCD count = %d\n", dcd_count);
dw_printf ("DCD missing erors = %d\n", dcd_missing_errors);
dw_printf ("DCD missing errors = %d\n", dcd_missing_errors);
}

if (error_if_less_than != -1 && packets_decoded_total < error_if_less_than) {
Expand Down
4 changes: 2 additions & 2 deletions src/ax25_link.c
Original file line number Diff line number Diff line change
Expand Up @@ -2993,7 +2993,7 @@ dw_printf ("%s:%d, %d srej exceptions, V(R)=%d, N(S)=%d\n", __func__, __LINE__,
if (first == AX25MODULO(S->vr - 1, S->modulo, __FILE__, __func__, __LINE__)) {
// Oops! Went too far. This I frame was already processed.
text_color_set(DW_COLOR_ERROR);
dw_printf ("INTERNAL ERROR calulating what to put in SREJ, %s line %d\n", __func__, __LINE__);
dw_printf ("INTERNAL ERROR calculating what to put in SREJ, %s line %d\n", __func__, __LINE__);
dw_printf ("V(R)=%d, N(S)=%d, SREJ exception=%d, first=%d, ask_resend_count=%d\n", S->vr, ns, selective_reject_exception(S), first, ask_resend_count);
int k;
for (k=0; k<128; k++) {
Expand Down Expand Up @@ -3146,7 +3146,7 @@ static void send_srej_frames (ax25_dlsm_t *S, int *resend, int count, int allow_
if (s_debug_retry) {
text_color_set(DW_COLOR_INFO);
dw_printf ("%s line %d\n", __func__, __LINE__);
//dw_printf ("state=%d, count=%d, k=%d, V(R)=%d, SREJ exeception=%d\n", S->state, count, S->k_maxframe, S->vr, selective_reject_exception(S));
//dw_printf ("state=%d, count=%d, k=%d, V(R)=%d, SREJ exception=%d\n", S->state, count, S->k_maxframe, S->vr, selective_reject_exception(S));
dw_printf ("state=%d, count=%d, k=%d, V(R)=%d\n", S->state, count, S->k_maxframe, S->vr);

dw_printf ("resend[]=");
Expand Down
2 changes: 1 addition & 1 deletion src/decode_aprs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1566,7 +1566,7 @@ static void aprs_message (decode_aprs_t *A, unsigned char *info, int ilen, int q
telemetry_unit_label_message (addressee, p->message+5);
}
else if (strncmp(p->message,"EQNS.",5) == 0) {
snprintf (A->g_msg_type, sizeof(A->g_msg_type), "Telemetry Equation Coefficents Message for \"%s\"", addressee);
snprintf (A->g_msg_type, sizeof(A->g_msg_type), "Telemetry Equation Coefficients Message for \"%s\"", addressee);
A->g_message_subtype = message_subtype_telem_eqns;
telemetry_coefficents_message (addressee, p->message+5, quiet);
}
Expand Down
4 changes: 2 additions & 2 deletions src/demod.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,8 @@ int demod_init (struct audio_s *pa)

text_color_set(DW_COLOR_ERROR);
dw_printf ("Two incompatible versions of 2400 bps QPSK are now available.\n");
dw_printf ("For compatbility with direwolf <= 1.5, use 'V26A' modem option in config file.\n");
dw_printf ("For compatbility MFJ-2400 use 'V26B' modem option in config file.\n");
dw_printf ("For compatibility with direwolf <= 1.5, use 'V26A' modem option in config file.\n");
dw_printf ("For compatibility MFJ-2400 use 'V26B' modem option in config file.\n");
dw_printf ("Command line options -j and -J can be used for channel 0.\n");
dw_printf ("For more information, read the Dire Wolf User Guide and\n");
dw_printf ("2400-4800-PSK-for-APRS-Packet-Radio.pdf.\n");
Expand Down
4 changes: 2 additions & 2 deletions src/kissutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ static void usage(void)
dw_printf (" a serial port. e.g. /dev/ttyAMA0 or COM3.\n");
dw_printf (" -s Serial port speed, default 9600.\n");
dw_printf (" -v Verbose. Show the KISS frame contents.\n");
dw_printf (" -f Transmit files directory. Processs and delete files here.\n");
dw_printf (" -f Transmit files directory. Process and delete files here.\n");
dw_printf (" -o Receive output queue directory. Store received frames here.\n");
dw_printf (" -T Precede received frames with 'strftime' format time stamp.\n");
usage2();
Expand All @@ -929,7 +929,7 @@ static void usage2 (void)
dw_printf ("Input, starting with upper case letter or digit, is assumed\n");
dw_printf ("to be an AX.25 frame in the usual TNC2 monitoring format.\n");
dw_printf ("\n");
dw_printf ("Input, starting with a lower case letter is a commmand.\n");
dw_printf ("Input, starting with a lower case letter is a command.\n");
dw_printf ("Whitespace, as shown in examples, is optional.\n");
dw_printf ("\n");
dw_printf (" letter meaning example\n");
Expand Down
2 changes: 1 addition & 1 deletion src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ static void debug_print (fromto_t fromto, int client, struct agwpe_s *pmsg, int

if (msg_len < 36) {
text_color_set (DW_COLOR_ERROR);
dw_printf ("AGWPE message length, %d, is shorter than minumum 36.\n", msg_len);
dw_printf ("AGWPE message length, %d, is shorter than minimum 36.\n", msg_len);
}
if (msg_len != netle2host(pmsg->data_len_NETLE) + 36) {
text_color_set (DW_COLOR_ERROR);
Expand Down
4 changes: 2 additions & 2 deletions src/telemetry.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ void telemetry_coefficents_message (char *station, char *msg, int quiet)
else {
if ( ! quiet) {
text_color_set(DW_COLOR_ERROR);
dw_printf ("Equation coefficent position A%d%c is empty.\n", n/3+1, n%3+'a');
dw_printf ("Equation coefficient position A%d%c is empty.\n", n/3+1, n%3+'a');
dw_printf ("Some applications might not handle this correctly.\n");
}
}
Expand All @@ -782,7 +782,7 @@ void telemetry_coefficents_message (char *station, char *msg, int quiet)
if (n != T_NUM_ANALOG * 3) {
if ( ! quiet) {
text_color_set(DW_COLOR_ERROR);
dw_printf ("Found %d equation coefficents when 15 were expected.\n", n);
dw_printf ("Found %d equation coefficients when 15 were expected.\n", n);
dw_printf ("Some applications might not handle this correctly.\n");
}
}
Expand Down