summaryrefslogtreecommitdiff
path: root/src/bin/jpwl
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2015-09-29 05:55:43 +0200
committerStefan Weil <sw@weilnetz.de>2015-09-29 05:55:43 +0200
commit99fc1ab306f9db0085adf648369404ce8aae22a9 (patch)
treee578bd00dd5fe582d12ecf14d35f09f0d937f3b2 /src/bin/jpwl
parent838dfb8058df62af44905e1fa3936d989844effc (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/jpwl')
-rw-r--r--src/bin/jpwl/convert.c2
-rw-r--r--src/bin/jpwl/opj_jpwl_compress.c2
-rw-r--r--src/bin/jpwl/windirent.h6
3 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/jpwl/convert.c b/src/bin/jpwl/convert.c
index de04e22f..bf7b5641 100644
--- a/src/bin/jpwl/convert.c
+++ b/src/bin/jpwl/convert.c
@@ -1436,7 +1436,7 @@ int imagetopgx(opj_image_t * image, const char *outfile) {
fprintf(stderr, "ERROR -> failed to open %s for writing\n", name);
return 1;
}
- /* dont need name anymore */
+ /* don't need name anymore */
if( total > 256 ) {
free(name);
}
diff --git a/src/bin/jpwl/opj_jpwl_compress.c b/src/bin/jpwl/opj_jpwl_compress.c
index 7537b61d..7410486e 100644
--- a/src/bin/jpwl/opj_jpwl_compress.c
+++ b/src/bin/jpwl/opj_jpwl_compress.c
@@ -199,7 +199,7 @@ static void encode_help_display(void) {
fprintf(stdout," Indicate multiple modes by adding their values. \n");
fprintf(stdout," ex: RESTART(4) + RESET(2) + SEGMARK(32) = -M 38\n");
fprintf(stdout,"\n");
- fprintf(stdout,"-TP : devide packets of every tile into tile-parts (-TP R) [R, L, C]\n");
+ fprintf(stdout,"-TP : divide packets of every tile into tile-parts (-TP R) [R, L, C]\n");
fprintf(stdout,"\n");
fprintf(stdout,"-x : create an index file *.Idx (-x index_name.Idx) \n");
fprintf(stdout,"\n");
diff --git a/src/bin/jpwl/windirent.h b/src/bin/jpwl/windirent.h
index 944b7d71..bef28194 100644
--- a/src/bin/jpwl/windirent.h
+++ b/src/bin/jpwl/windirent.h
@@ -243,7 +243,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.
@@ -411,7 +411,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
@@ -466,7 +466,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;