diff options
| author | Stefan Weil <sw@weilnetz.de> | 2015-09-29 05:55:43 +0200 |
|---|---|---|
| committer | Stefan Weil <sw@weilnetz.de> | 2015-09-29 05:55:43 +0200 |
| commit | 99fc1ab306f9db0085adf648369404ce8aae22a9 (patch) | |
| tree | e578bd00dd5fe582d12ecf14d35f09f0d937f3b2 /src/bin/jp3d | |
| parent | 838dfb8058df62af44905e1fa3936d989844effc (diff) | |
Fix typos in comments and string
Most typos were found by codespell.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'src/bin/jp3d')
| -rw-r--r-- | src/bin/jp3d/windirent.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/jp3d/windirent.h b/src/bin/jp3d/windirent.h index 72b38cea..2494cd4e 100644 --- a/src/bin/jp3d/windirent.h +++ b/src/bin/jp3d/windirent.h @@ -242,7 +242,7 @@ * Substitute for real dirent structure. Note that `d_name' field is a * true character array although we have it copied in the implementation * dependent data. We could save some memory if we had declared `d_name' - * as a pointer refering the name within implementation dependent data. + * as a pointer referring the name within implementation dependent data. * We have not done that since some code may rely on sizeof(d_name) to be * something other than four. Besides, directory entries are typically so * small that it takes virtually no time to copy them from place to place. @@ -410,7 +410,7 @@ static DIR *opendir(const char *dirname) * capacity of d_name with different macros and some systems do not define * capacity at all (besides actual declaration of the field). If you really * need to find out storage capacity of d_name then you might want to try - * NAME_MAX macro. The NAME_MAX is defined in POSIX standard althought + * NAME_MAX macro. The NAME_MAX is defined in POSIX standard although * there are many MS-DOS and MS-Windows implementations those do not define * it. There are also systems that declare d_name as "char d_name[1]" and * then allocate suitable amount of memory at run-time. Thanks to Alain @@ -465,7 +465,7 @@ readdir (DIR *dirp) /* fill in entry and return that */ #if defined(DIRENT_WIN32_INTERFACE) if (FindNextFile (dirp->search_handle, &dirp->current.data) == FALSE) { - /* Last file has been processed or an error occured */ + /* Last file has been processed or an error occurred */ FindClose (dirp->search_handle); dirp->search_handle = INVALID_HANDLE_VALUE; errno = ENOENT; |
