From 87f4b4870535f586923cae61e64f2a53f24f9de0 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Tue, 13 Sep 2022 13:24:39 +0200 Subject: [PATCH] Typos found by codespell --- src/context.h | 4 ++-- src/device.c | 2 +- src/gui.h | 2 +- src/nwipe.c | 2 +- src/temperature.c | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/context.h b/src/context.h index 26e3432..f226321 100644 --- a/src/context.h +++ b/src/context.h @@ -72,7 +72,7 @@ typedef struct nwipe_speedring_t_ #define NWIPE_DEVICE_LABEL_LENGTH 200 #define NWIPE_DEVICE_SIZE_TXT_LENGTH 7 -// Arbitary length, so far most paths don't exceed about 25 characters +// Arbitrary length, so far most paths don't exceed about 25 characters #define MAX_HWMON_PATH_LENGTH 100 typedef struct nwipe_context_t_ @@ -136,7 +136,7 @@ typedef struct nwipe_context_t_ int temp1_lcrit; // Critical low drive temperature, 1000000=unitialised, millidegree celsius. int temp1_lowest; // Historically lowest temperature, 1000000=unitialised, millidegree celsius. int temp1_max; // Maximum allowed temperature, 1000000=unitialised, millidegree celsius. - int temp1_min; // Miniumum allowed temperature, 1000000=unitialised, millidegree celsius. + int temp1_min; // Minimum allowed temperature, 1000000=unitialised, millidegree celsius. int temp1_monitored_wipe_max; int temp1_monitored_wipe_min; int temp1_monitored_wipe_avg; diff --git a/src/device.c b/src/device.c index b7a87f5..3e8b83b 100644 --- a/src/device.c +++ b/src/device.c @@ -662,7 +662,7 @@ int nwipe_get_device_bus_type_and_serialno( char* device, nwipe_device_t* bus, c { /* Convert the label, i.e everything before the ':' to lower case, it's required to * convert to lower case as smartctl seems to use inconsistent case when labeling - * for serial number, i.e mostly it produces labels "Serial Number:" but occasionaly + * for serial number, i.e mostly it produces labels "Serial Number:" but occasionally * it produces a label "Serial number:" */ idx = 0; diff --git a/src/gui.h b/src/gui.h index 29d00e6..82b55e4 100644 --- a/src/gui.h +++ b/src/gui.h @@ -54,7 +54,7 @@ void nwipe_update_speedring( nwipe_speedring_t* speedring, u64 speedring_done, t * the drive selection screen is displayed. (prior to wipe starting). */ #define GETCH_BLOCK_MS 250 /* millisecond block time for getch() */ -/* Note The value of 1 (100ms) is the ideal speed for screen refresh during a wipe, a value of 2 is noticably slower, +/* Note The value of 1 (100ms) is the ideal speed for screen refresh during a wipe, a value of 2 is noticeably slower, * don't change unless you understand how this value affects keyboard responsiveness and speed of screen stats/spinner * updating */ #define GETCH_GUI_STATS_UPDATE_MS 1 /* 1 * 100 = 1/10/sec = millisecond block time for gui stats screen updates */ diff --git a/src/nwipe.c b/src/nwipe.c index d5f3798..6a6c897 100644 --- a/src/nwipe.c +++ b/src/nwipe.c @@ -255,7 +255,7 @@ int main( int argc, char** argv ) /* load the drivetemp module */ if( system( final_cmd_modprobe ) != 0 ) { - nwipe_log( NWIPE_LOG_WARNING, "hwmon: Unable to load module drivetemp, temperatures may be unavilable." ); + nwipe_log( NWIPE_LOG_WARNING, "hwmon: Unable to load module drivetemp, temperatures may be unavailable." ); nwipe_log( NWIPE_LOG_WARNING, "hwmon: It's possible the drivetemp software isn't modular but built-in" ); nwipe_log( NWIPE_LOG_WARNING, "hwmon: to the kernel, as is the case with ShredOS.x86_64 in which case" ); nwipe_log( NWIPE_LOG_WARNING, "hwmon: the temperatures will actually be available despite this issue." ); diff --git a/src/temperature.c b/src/temperature.c index d6511c3..39650ae 100644 --- a/src/temperature.c +++ b/src/temperature.c @@ -242,7 +242,7 @@ void nwipe_update_temperature( nwipe_context_t* c ) /* Convert numeric ascii to binary integer */ *( temperature_pcontext[idx] ) = atoi( temperature ); - /* Divide by 1000 to get degrees celcius */ + /* Divide by 1000 to get degrees celsius */ *( temperature_pcontext[idx] ) = *( temperature_pcontext[idx] ) / 1000; if( nwipe_options.verbose )