about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-12-30 05:05:58 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-12-30 05:05:58 +0000
commit4b896dbdd5d76d1457f67b04c0903d4210cea874 (patch)
tree29ee6394de1647061d56bbe710d9a88478e58410 /lib
parentef169d7bad450fd906e843169278c693730a8b2b (diff)
downloadnetpbm-mirror-4b896dbdd5d76d1457f67b04c0903d4210cea874.tar.gz
netpbm-mirror-4b896dbdd5d76d1457f67b04c0903d4210cea874.tar.xz
netpbm-mirror-4b896dbdd5d76d1457f67b04c0903d4210cea874.zip
Fix typos in comments and messages, whitespace
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3728 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r--lib/libpamcolor.c6
-rw-r--r--lib/libpamwrite.c2
-rw-r--r--lib/libpbmfont1.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/libpamcolor.c b/lib/libpamcolor.c
index e1a24c66..718df89f 100644
--- a/lib/libpamcolor.c
+++ b/lib/libpamcolor.c
@@ -177,15 +177,15 @@ parseInteger(const char * const colorname,
 
     if (r > maxval)
         pm_error("Red value in color specification '%s' is %u, "
-                 "whcih is invalid because the specified maxval is %u",
+                 "which is invalid because the specified maxval is %u",
                  colorname, r, maxval);
     if (g > maxval)
         pm_error("Green value in color specification '%s' is %u, "
-                 "whcih is invalid because the specified maxval is %u",
+                 "which is invalid because the specified maxval is %u",
                  colorname, g, maxval);
     if (b > maxval)
         pm_error("Blue value in color specification '%s' is %u, "
-                 "whcih is invalid because the specified maxval is %u",
+                 "which is invalid because the specified maxval is %u",
                  colorname, b, maxval);
 
     color[PAM_RED_PLANE] = (float)r/maxval;
diff --git a/lib/libpamwrite.c b/lib/libpamwrite.c
index 1ff334aa..7edc90dc 100644
--- a/lib/libpamwrite.c
+++ b/lib/libpamwrite.c
@@ -384,7 +384,7 @@ pnm_writepamrowmult(const struct pam * const pamP,
                     const tuple *      const tuplerow,
                     unsigned int       const count) {
 /*----------------------------------------------------------------------------
-   Write mutiple ('count') copies of the same row ('tuplerow') to the file.
+   Write multiple ('count') copies of the same row ('tuplerow') to the file.
 -----------------------------------------------------------------------------*/
    if (pm_plain_output || pamP->plainformat) {
        unsigned int i;
diff --git a/lib/libpbmfont1.c b/lib/libpbmfont1.c
index 2d269da7..4189f150 100644
--- a/lib/libpbmfont1.c
+++ b/lib/libpbmfont1.c
@@ -189,8 +189,8 @@ pbm_dissectfont(const bit ** const fontsheet,
                 unsigned int const frows,
                 unsigned int const fcols) {
 /*----------------------------------------------------------------------------
-  Dissect PBM sheet font data, create a font structre,
-  load bitmap data into it.
+  Dissect PBM sheet font data, create a font structure, load bitmap data into
+  it.
 
   Return value is a pointer to the newly created font structure
 
@@ -205,7 +205,7 @@ pbm_dissectfont(const bit ** const fontsheet,
   just a matter of filling in all the coordinates.
 
   Struct font has fields 'oldfont', 'fcols', 'frows' for backward
-  compability.  If there is any need to load data stored in this format
+  compatibility.  If there is any need to load data stored in this format
   feed the above three, in order, as arguments to this function:
 
     pbm_dissectfont(oldfont, fcols, frows);