summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-05-30 19:26:00 +0200
committerChristian Göttsche <cgzones@googlemail.com>2020-05-30 19:26:00 +0200
commit19cfe9b15c223d59390efb7e5f3439df6b952ff5 (patch)
treef3d73fff9371ac1081306b1c5b171b14bb276bbe
parent239bbf542f239652cddf8d1492473b43e9bdcdb9 (diff)
Correct misspellings
-rw-r--r--ChangeLog2
-rw-r--r--deps/yopt.h4
-rw-r--r--doc/ncdu.pod2
-rw-r--r--src/dir.h2
-rw-r--r--src/dir_scan.c2
-rw-r--r--src/main.c2
-rw-r--r--src/path.h2
-rw-r--r--src/util.c4
8 files changed, 10 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 6272862..b89d218 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -77,7 +77,7 @@
- Count the size of a hard linked file once for each directory it appears in
- Fixed crash on browsing dirs with a small window size (#2991787)
- Fixed buffer overflow when some directories can't be scanned (#2981704)
- - Fixed segfault when launched on a nonexistant directory (#3012787)
+ - Fixed segfault when launched on a nonexistent directory (#3012787)
- Fixed segfault when root dir only contains hidden files
- Improved browsing performance
- More intuitive multi-page browsing
diff --git a/deps/yopt.h b/deps/yopt.h
index 98d969b..f1a3b7e 100644
--- a/deps/yopt.h
+++ b/deps/yopt.h
@@ -35,7 +35,7 @@
* "-f<arg>"
* "-zf <arg>"
* "-zf<arg>"
- * "--" (To stop looking for futher options)
+ * "--" (To stop looking for further options)
* "<arg>" (Non-option arguments)
*
* Issues/non-features:
@@ -62,7 +62,7 @@ typedef struct {
int needarg;
/* Name(s) of this option, prefixed with '-' or '--' and separated by a
* comma. E.g. "-z", "--gzip", "-z,--gzip".
- * An option can have any number of aliasses.
+ * An option can have any number of aliases.
*/
const char *name;
} yopt_opt_t;
diff --git a/doc/ncdu.pod b/doc/ncdu.pod
index af8bbb0..56ae025 100644
--- a/doc/ncdu.pod
+++ b/doc/ncdu.pod
@@ -315,7 +315,7 @@ correct.
=item <
-File or directory is excluded from the statistics by using exlude patterns.
+File or directory is excluded from the statistics by using exclude patterns.
=item >
diff --git a/src/dir.h b/src/dir.h
index ec92733..fc33eb0 100644
--- a/src/dir.h
+++ b/src/dir.h
@@ -61,7 +61,7 @@ struct dir_output {
*
* The *item struct has the following fields set when item() is called:
* size, asize, ino, dev, flags (only DIR,FILE,ERR,OTHFS,EXL,HLNKC).
- * All other fields/flags should be initialzed to NULL or 0.
+ * All other fields/flags should be initialized to NULL or 0.
* The name and dir_ext fields are given separately.
* All pointers may be overwritten or freed in subsequent calls, so this
* function should make a copy if necessary.
diff --git a/src/dir_scan.c b/src/dir_scan.c
index 1696025..e145ac2 100644
--- a/src/dir_scan.c
+++ b/src/dir_scan.c
@@ -60,7 +60,7 @@ static struct dir_ext buf_ext[1];
#if HAVE_LINUX_MAGIC_H && HAVE_SYS_STATFS_H && HAVE_STATFS
-int exclude_kernfs; /* Exlude Linux pseudo filesystems */
+int exclude_kernfs; /* Exclude Linux pseudo filesystems */
static int is_kernfs(unsigned long type) {
if(type == BINFMTFS_MAGIC ||
diff --git a/src/main.c b/src/main.c
index 13b6de8..44da3d1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -47,7 +47,7 @@ int confirm_quit = 0;
static int min_rows = 17, min_cols = 60;
static int ncurses_init = 0;
-static int ncurses_tty = 0; /* Explicitely open /dev/tty instead of using stdio */
+static int ncurses_tty = 0; /* Explicitly open /dev/tty instead of using stdio */
static long lastupdate = 999;
diff --git a/src/path.h b/src/path.h
index b7ee6d8..773da9d 100644
--- a/src/path.h
+++ b/src/path.h
@@ -30,7 +30,7 @@
- path_real uses chdir(), so it's not thread safe
- Process requires +x access for all directory components
- Potentionally slow
- - path_real doesn't check for the existance of the last component
+ - path_real doesn't check for the existence of the last component
- cwd is unreliable after path_real
*/
diff --git a/src/util.c b/src/util.c
index 8448956..2d92718 100644
--- a/src/util.c
+++ b/src/util.c
@@ -109,7 +109,7 @@ char *fullsize(int64_t from) {
} while((n /= 10) > 0);
tmp[i] = '\0';
- /* reverse and add thousand seperators */
+ /* reverse and add thousand separators */
j = 0;
while(i--) {
dat[j++] = tmp[i];
@@ -288,7 +288,7 @@ static void freedir_hlnk(struct dir *d) {
/* remove size from parents.
* This works the same as with adding: only the parents in which THIS is the
- * only occurence of the hard link will be modified, if the same file still
+ * only occurrence of the hard link will be modified, if the same file still
* exists within the parent it shouldn't get removed from the count.
* XXX: Same note as for dir_mem.c / hlink_check():
* this is probably not the most efficient algorithm */