From 14ccc06ebada83f80d00c9ec4b15e261fd41b634 Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Mon, 11 Nov 2019 14:21:07 +0100 Subject: [PATCH] Fix spelling in various files codespell parameters: codespell -q 3 --skip="*.in,*.sh,*.m4,config,configure,autom4te.cache" Signed-off-by: Yegor Yefremov --- README.md | 2 +- bcmserver.c | 2 +- can-j1939-kickstart.md | 6 +++--- can-j1939.md | 4 ++-- canbusload.c | 2 +- candump.c | 2 +- cangw.c | 2 +- canplayer.c | 2 +- isotprecv.c | 2 +- isotpserver.c | 4 ++-- isotpsniffer.c | 2 +- jspy.c | 2 +- lib.h | 2 +- slcanpty.c | 2 +- 14 files changed, 18 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index b4e0514..55910c1 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ subsystem (aka SocketCAN): * [cannelloni](https://github.com/mguentner/cannelloni) : UDP/SCTP based SocketCAN tunnel #### CAN in-kernel gateway configuration -* cangw : CAN gateway userpace tool for netlink configuration +* cangw : CAN gateway userspace tool for netlink configuration #### CAN bus measurement and testing * canbusload : calculate and display the CAN busload diff --git a/bcmserver.c b/bcmserver.c index 66bfb81..a8a3369 100644 --- a/bcmserver.c +++ b/bcmserver.c @@ -2,7 +2,7 @@ /* * tst-bcm-server.c * - * Test programm that implements a socket server which understands ASCII + * Test program that implements a socket server which understands ASCII * messages for simple broadcast manager frame send commands. * * < interface command ival_s ival_us can_id can_dlc [data]* > diff --git a/can-j1939-kickstart.md b/can-j1939-kickstart.md index 27e43c4..8f338e1 100644 --- a/can-j1939-kickstart.md +++ b/can-j1939-kickstart.md @@ -115,7 +115,7 @@ The destination field may be set during sendto(). emits **19234080#0123456789ABCDEF** . The destination CAN iface __must__ always match the source CAN iface. -Specifing one during bind is therefore sufficient. +Specifying one during bind is therefore sufficient. ./testj1939 -s can0:,0x12300 :0x40 @@ -133,7 +133,7 @@ For broadcasted transmissions emits **1B21FF80#0123456789ABCDEF** rather than 1923FF80#012345678ABCDEF -Desitination specific transmissions +Destination specific transmissions ./testj1939 -s can0:0x80,0x12300 :0x40,0x32100 @@ -169,7 +169,7 @@ emits: 18EBFF80#02EF0123456789AB 18EBFF80#03CDEF01234567FF -The fragments for broadcasted *Transport Protocol* are seperated +The fragments for broadcasted *Transport Protocol* are separated __50ms__ from each other. Destination specific *Transport Protocol* applies flow control and may emit CAN packets much faster. diff --git a/can-j1939.md b/can-j1939.md index 84a159e..4b97085 100644 --- a/can-j1939.md +++ b/can-j1939.md @@ -19,7 +19,7 @@ See [Wikipedia:socketcan](http://en.wikipedia.org/wiki/Socketcan) * CAN id is composed of * 0..8: SA (source address) * 9..26: - * PDU1: PGN+DA (destionation address) + * PDU1: PGN+DA (destination address) * PDU2: PGN * 27..29: PRIO @@ -61,7 +61,7 @@ will emit a single CAN frame. send(sock, data, 9, 0); -will use fragementation, emitting 1+ CAN frames. +will use fragmentation, emitting 1+ CAN frames. # Using J1939 diff --git a/canbusload.c b/canbusload.c index a94ed34..f5f130b 100644 --- a/canbusload.c +++ b/canbusload.c @@ -103,7 +103,7 @@ void print_usage(char *prg) fprintf(stderr, "Up to %d CAN interfaces with mandatory bitrate can be specified on the \n", MAXSOCK); fprintf(stderr, "commandline in the form: @\n\n"); fprintf(stderr, "The bitrate is mandatory as it is needed to know the CAN bus bitrate to\n"); - fprintf(stderr, "calcultate the bus load percentage based on the received CAN frames.\n"); + fprintf(stderr, "calculate the bus load percentage based on the received CAN frames.\n"); fprintf(stderr, "Due to the bitstuffing estimation the calculated busload may exceed 100%%.\n"); fprintf(stderr, "For each given interface the data is presented in one line which contains:\n\n"); fprintf(stderr, "(interface) (received CAN frames) (used bits total) (used bits for payload)\n"); diff --git a/candump.c b/candump.c index f3b0e03..f2ff03b 100644 --- a/candump.c +++ b/candump.c @@ -130,7 +130,7 @@ void print_usage(char *prg) fprintf(stderr, " -u (delay bridge forwarding by microseconds)\n"); fprintf(stderr, " -l (log CAN-frames into file. Sets '-s %d' by default)\n", SILENT_ON); fprintf(stderr, " -L (use log file format on stdout)\n"); - fprintf(stderr, " -n (terminate after receiption of CAN frames)\n"); + fprintf(stderr, " -n (terminate after reception of CAN frames)\n"); fprintf(stderr, " -r (set socket receive buffer to )\n"); fprintf(stderr, " -D (Don't exit if a \"detected\" can device goes down.\n"); fprintf(stderr, " -d (monitor dropped CAN frames)\n"); diff --git a/cangw.c b/cangw.c index 9d85f27..52314f6 100644 --- a/cangw.c +++ b/cangw.c @@ -467,7 +467,7 @@ int parse_fdmod(char *optarg, struct fdmodattr *modmsg) int parse_rtlist(char *prgname, unsigned char *rxbuf, int len) { - char ifname[IF_NAMESIZE]; /* internface name for if_indextoname() */ + char ifname[IF_NAMESIZE]; /* interface name for if_indextoname() */ struct rtcanmsg *rtc; struct rtattr *rta; struct nlmsghdr *nlh; diff --git a/canplayer.c b/canplayer.c index e87a0ba..7932f7a 100644 --- a/canplayer.c +++ b/canplayer.c @@ -349,7 +349,7 @@ int main(int argc, char **argv) } if (assignments) { - /* add & check user assginments from commandline */ + /* add & check user assignments from commandline */ for (i=0; i= BUFSZ) { fprintf(stderr, "Assignment too long!\n"); diff --git a/isotprecv.c b/isotprecv.c index 2137a97..c0fb386 100644 --- a/isotprecv.c +++ b/isotprecv.c @@ -71,7 +71,7 @@ void print_usage(char *prg) fprintf(stderr, " -m (STmin in ms/ns. See spec.)\n"); fprintf(stderr, " -f