This patch fixes some common misspellings/typos in comments.
Changes generated using codespell and reviewed manually
lenght->length 2
ocassional->occasional 1
unsucessfull->unsuccessful 1
upto->up to 5
Signed-off-by: Peter Huewe <peterhuewe(a)gmx.de>
---
buspirate_spi.c | 2 +-
dmi.c | 2 +-
serprog-protocol.txt | 2 +-
serprog.c | 10 +++++-----
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/buspirate_spi.c b/buspirate_spi.c
index 3b9f487..f872309 100644
--- a/buspirate_spi.c
+++ b/buspirate_spi.c
@@ -203,7 +203,7 @@ int buspirate_spi_init(void)
* sufficient either. Use a 1.5 ms delay inside the loop to make
* mostly sure that at least one USB frame had time to arrive.
* Looping only 5 times is not sufficient and causes the
- * ocassional failure.
+ * occasional failure.
* Folding the delay into the loop above is not reliable either.
*/
for (i = 0; i < 10; i++) {
diff --git a/dmi.c b/dmi.c
index cda6656..836b38b 100644
--- a/dmi.c
+++ b/dmi.c
@@ -119,7 +119,7 @@ static char *get_dmi_string(const char *string_name)
while (!feof(dmidecode_pipe))
getc(dmidecode_pipe);
if (pclose(dmidecode_pipe) != 0) {
- msg_pinfo("dmidecode execution unsucessfull - continuing "
+ msg_pinfo("dmidecode execution unsuccessful - continuing "
"without DMI info\n");
return NULL;
}
diff --git a/serprog-protocol.txt b/serprog-protocol.txt
index c5464a4..52f901a 100644
--- a/serprog-protocol.txt
+++ b/serprog-protocol.txt
@@ -88,7 +88,7 @@ This define listing should help C coders - (it's here to be the single source fo
#define S_CMD_Q_BUSTYPE 0x05 /* Query supported bustypes */
#define S_CMD_Q_CHIPSIZE 0x06 /* Query supported chipsize (2^n format) */
#define S_CMD_Q_OPBUF 0x07 /* Query operation buffer size */
-#define S_CMD_Q_WRNMAXLEN 0x08 /* Query Write to opbuf: Write-N maximum lenght */
+#define S_CMD_Q_WRNMAXLEN 0x08 /* Query Write to opbuf: Write-N maximum length */
#define S_CMD_R_BYTE 0x09 /* Read a single byte */
#define S_CMD_R_NBYTES 0x0A /* Read n bytes */
#define S_CMD_O_INIT 0x0B /* Initialize operation buffer */
diff --git a/serprog.c b/serprog.c
index b91e376..124aa41 100644
--- a/serprog.c
+++ b/serprog.c
@@ -56,7 +56,7 @@ static int serprog_shutdown(void *data);
#define S_CMD_Q_BUSTYPE 0x05 /* Query supported bustypes */
#define S_CMD_Q_CHIPSIZE 0x06 /* Query supported chipsize (2^n format) */
#define S_CMD_Q_OPBUF 0x07 /* Query operation buffer size */
-#define S_CMD_Q_WRNMAXLEN 0x08 /* Query opbuf-write-N maximum lenght */
+#define S_CMD_Q_WRNMAXLEN 0x08 /* Query opbuf-write-N maximum length */
#define S_CMD_R_BYTE 0x09 /* Read a single byte */
#define S_CMD_R_NBYTES 0x0A /* Read n bytes */
#define S_CMD_O_INIT 0x0B /* Initialize operation buffer */
@@ -168,9 +168,9 @@ static void sp_synchronize(void)
usleep(1000 * 1000);
sp_flush_incoming();
- /* Then try upto 8 times to send syncnop and get the correct special *
- * return of NAK+ACK. Timing note: upto 10 characters, 10*50ms = *
- * upto 500ms per try, 8*0.5s = 4s; +1s (above) = upto 5s sync *
+ /* Then try up to 8 times to send syncnop and get the correct special *
+ * return of NAK+ACK. Timing note: up to 10 characters, 10*50ms = *
+ * up to 500ms per try, 8*0.5s = 4s; +1s (above) = up to 5s sync *
* attempt, ~1s if immediate success. */
for (i = 0; i < 8; i++) {
int n;
@@ -180,7 +180,7 @@ static void sp_synchronize(void)
msg_pdbg(".");
fflush(stdout);
for (n = 0; n < 10; n++) {
- c = sp_sync_read_timeout(5); /* wait upto 50ms */
+ c = sp_sync_read_timeout(5); /* wait up to 50ms */
if (c != S_NAK)
continue;
c = sp_sync_read_timeout(2);
--
1.7.3.4