From 1e00e4e8db42e40268420005164d5b332279c7f7 Mon Sep 17 00:00:00 2001 From: Daniele Forsi Date: Sun, 11 Oct 2020 18:03:50 +0200 Subject: [PATCH] Fix typos Command line: codespell --write-changes --summary --skip=*.m4 --ignore-words-list="develope,get's,quitt,setts,som,ue,vektor,objext,ans --- doc/man7/hamlib-primer.7 | 2 +- lib/termios.c | 8 ++++---- lib/win32termios.h | 2 +- rigs/yaesu/newcat.c | 2 +- tests/rigctl_parse.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/man7/hamlib-primer.7 b/doc/man7/hamlib-primer.7 index b15a7205b..02a4e90f0 100644 --- a/doc/man7/hamlib-primer.7 +++ b/doc/man7/hamlib-primer.7 @@ -544,7 +544,7 @@ as root from the top-level directory. .IP .BR Note : The shell session is shown to show the change in prompt from a normal user -account to the root accout. +account to the root account. . .PP The diff --git a/lib/termios.c b/lib/termios.c index 887b2ff66..268ff2266 100644 --- a/lib/termios.c +++ b/lib/termios.c @@ -1255,7 +1255,7 @@ static struct termios_list *add_port(const char *filename) strncpy(port->filename, filename, sizeof(port->filename) - 1); - /* didnt free well? strdup( filename ); */ + /* didn't free well? strdup( filename ); */ if (! port->filename) { goto fail; @@ -2562,7 +2562,7 @@ int tcgetattr(int fd, struct termios *s_termios) /* ECHONL: ICANON only: echo newline even with no ECHO */ /* ECHOCTL: if ECHO, then control-A are printed as '^A' */ /* ISIG: recognize INTR, QUIT & SUSP */ - /* IEXTEN: implmentation defined */ + /* IEXTEN: implementation defined */ /* NOFLSH: dont clear i/o queues on INTR, QUIT or SUSP */ /* TOSTOP: background process generate SIGTTOU */ /* ALTWERASE: alt-w erase distance */ @@ -2893,7 +2893,7 @@ int tcsendbreak(int fd, int duration) tcdrain() accept: file descriptor - perform: wait for ouput to be written. + perform: wait for output to be written. return: 0 on success, -1 otherwise exceptions: None win32api: FlushFileBuffers @@ -3492,7 +3492,7 @@ int win32_serial_ioctl(int fd, int request, ...) index->event_flag = old_flag; *arg = 1; index->tx_happened = 0; - report("ioctl: ouput empty\n"); + report("ioctl: output empty\n"); } else { diff --git a/lib/win32termios.h b/lib/win32termios.h index 2c81ec9bc..a6279bef0 100644 --- a/lib/win32termios.h +++ b/lib/win32termios.h @@ -108,7 +108,7 @@ struct serial_icounter_struct { int dsr; /* data set ready count */ int rng; /* ring count */ int dcd; /* carrier detect count */ - int rx; /* recieved byte count */ + int rx; /* received byte count */ int tx; /* transmitted byte count */ int frame; /* frame error count */ int overrun; /* hardware overrun error count */ diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 8cde6cd1e..806ef4c3d 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -5824,7 +5824,7 @@ int newcat_set_rx_bandwidth(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) else { w = 23; } // 4000Hz } // end switch(mode) - // set roofing filter to allow for requested bandwith + // set roofing filter to allow for requested bandwidth // widths of 3 and 5 are optional so won't do them if (width <= 600) { roof_width = 4; } else if (width <= 3000) { roof_width = 2; } diff --git a/tests/rigctl_parse.c b/tests/rigctl_parse.c index b7c7eb438..6f2a62ef3 100644 --- a/tests/rigctl_parse.c +++ b/tests/rigctl_parse.c @@ -4010,7 +4010,7 @@ declare_proto_rig(dump_state) fprintf(fout, "%d\n", rig->caps->rig_model); #if 0 // deprecated -- not one rig uses this fprintf(fout, "%d\n", rs->itu_region); -#else // need to print something to maintain backward compatbility +#else // need to print something to maintain backward compatibility fprintf(fout, "%d\n", 0); #endif