Skip to content
Snippets Groups Projects
Commit d15fe8d0 authored by Yorhel's avatar Yorhel
Browse files

Spelling fixes: "occured" + "an other"

parent fa19095e
Branches main
No related tags found
No related merge requests found
...@@ -273,11 +273,11 @@ flags have the following meaning: ...@@ -273,11 +273,11 @@ flags have the following meaning:
=item ! =item !
An error occured while reading this directory. An error occurred while reading this directory.
=item . =item .
An error occured while reading a subdirectory, so the indicated size may not be An error occurred while reading a subdirectory, so the indicated size may not be
correct. correct.
=item < =item <
......
...@@ -195,7 +195,7 @@ static int delete_dir(struct dir *dr) { ...@@ -195,7 +195,7 @@ static int delete_dir(struct dir *dr) {
r = unlink(dr->name); r = unlink(dr->name);
delete_nxt: delete_nxt:
/* error occured, ask user what to do */ /* error occurred, ask user what to do */
if(r == -1 && !ignoreerr) { if(r == -1 && !ignoreerr) {
state = DS_FAILED; state = DS_FAILED;
lasterrno = errno; lasterrno = errno;
......
...@@ -123,7 +123,7 @@ void dir_curpath_set(const char *); ...@@ -123,7 +123,7 @@ void dir_curpath_set(const char *);
void dir_curpath_enter(const char *); void dir_curpath_enter(const char *);
void dir_curpath_leave(); void dir_curpath_leave();
/* Sets the path where the last error occured, or reset on NULL. */ /* Sets the path where the last error occurred, or reset on NULL. */
void dir_setlasterr(const char *); void dir_setlasterr(const char *);
/* Error message on fatal error, or NULL if there hasn't been a fatal error yet. */ /* Error message on fatal error, or NULL if there hasn't been a fatal error yet. */
......
...@@ -36,7 +36,7 @@ struct dir_output dir_output; ...@@ -36,7 +36,7 @@ struct dir_output dir_output;
char *dir_fatalerr; /* Error message on a fatal error. (NULL if there was no fatal error) */ char *dir_fatalerr; /* Error message on a fatal error. (NULL if there was no fatal error) */
int dir_ui; /* User interface to use */ int dir_ui; /* User interface to use */
static int confirm_quit_while_scanning_stage_1_passed; /* Additional check before quitting */ static int confirm_quit_while_scanning_stage_1_passed; /* Additional check before quitting */
static char *lasterr; /* Path where the last error occured. */ static char *lasterr; /* Path where the last error occurred. */
static int curpathl; /* Allocated length of dir_curpath */ static int curpathl; /* Allocated length of dir_curpath */
static int lasterrl; /* ^ of lasterr */ static int lasterrl; /* ^ of lasterr */
......
...@@ -81,7 +81,7 @@ struct ctx { ...@@ -81,7 +81,7 @@ struct ctx {
/* Fills readbuf with data from the stream. *buf will have at least n (< /* Fills readbuf with data from the stream. *buf will have at least n (<
* READ_BUF_SIZE) bytes available, unless the stream reached EOF or an error * READ_BUF_SIZE) bytes available, unless the stream reached EOF or an error
* occured. If the file data contains a null-type, this is considered an error. * occurred. If the file data contains a null-type, this is considered an error.
* Returns 0 on success, non-zero on error. */ * Returns 0 on success, non-zero on error. */
static int fill(int n) { static int fill(int n) {
int r; int r;
......
...@@ -84,7 +84,7 @@ static void stat_to_dir(struct stat *fs) { ...@@ -84,7 +84,7 @@ static void stat_to_dir(struct stat *fs) {
/* Reads all filenames in the currently chdir'ed directory and stores it as a /* Reads all filenames in the currently chdir'ed directory and stores it as a
* nul-separated list of filenames. The list ends with an empty filename (i.e. * nul-separated list of filenames. The list ends with an empty filename (i.e.
* two nuls). . and .. are not included. Returned memory should be freed. *err * two nuls). . and .. are not included. Returned memory should be freed. *err
* is set to 1 if some error occured. Returns NULL if that error was fatal. * is set to 1 if some error occurred. Returns NULL if that error was fatal.
* The reason for reading everything in memory first and then walking through * The reason for reading everything in memory first and then walking through
* the list is to avoid eating too many file descriptors in a deeply recursive * the list is to avoid eating too many file descriptors in a deeply recursive
* directory. */ * directory. */
......
...@@ -97,8 +97,8 @@ void help_draw() { ...@@ -97,8 +97,8 @@ void help_draw() {
ncaddch(10, 4, 'H'); ncaddch(10, 4, 'H');
ncaddch(11, 4, 'e'); ncaddch(11, 4, 'e');
uic_set(UIC_DEFAULT); uic_set(UIC_DEFAULT);
ncaddstr( 5, 7, "An error occured while reading this directory"); ncaddstr( 5, 7, "An error occurred while reading this directory");
ncaddstr( 6, 7, "An error occured while reading a subdirectory"); ncaddstr( 6, 7, "An error occurred while reading a subdirectory");
ncaddstr( 7, 7, "File or directory is excluded from the statistics"); ncaddstr( 7, 7, "File or directory is excluded from the statistics");
ncaddstr( 8, 7, "Directory was on another filesystem"); ncaddstr( 8, 7, "Directory was on another filesystem");
ncaddstr( 9, 7, "This is not a file nor a dir (symlink, socket, ...)"); ncaddstr( 9, 7, "This is not a file nor a dir (symlink, socket, ...)");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment