about summary refs log tree commit diff
path: root/generator
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-01-12 20:22:20 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2019-01-12 20:22:20 +0000
commit6b972ae81107e4f9a138a3799c3f86fa5e77b385 (patch)
tree92623994ccada5d963464df0a6949f4007254432 /generator
parenta0525611cf3b3bbfec299bc45d0a143fe52eebd6 (diff)
downloadnetpbm-mirror-6b972ae81107e4f9a138a3799c3f86fa5e77b385.tar.gz
netpbm-mirror-6b972ae81107e4f9a138a3799c3f86fa5e77b385.tar.xz
netpbm-mirror-6b972ae81107e4f9a138a3799c3f86fa5e77b385.zip
Fix compiler warning
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3496 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'generator')
-rw-r--r--generator/pamtris/input.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/generator/pamtris/input.c b/generator/pamtris/input.c
index 2ea35734..ef79be07 100644
--- a/generator/pamtris/input.c
+++ b/generator/pamtris/input.c
@@ -37,8 +37,6 @@
 #define ARG_IMAGE           "image"
 #define ARG_DEPTH           "depth"
 
-#define WARNING_EXCESS_ARGS "warning: ignoring excess arguments: line %lu."
-#define SYNTAX_ERROR        "syntax error: line %lu."
 
 typedef struct {
     Xy v_xy;
@@ -676,15 +674,17 @@ input_process_next_command(Input *                const inputP,
         char const next = *nextToken(nt.end).begin;
 
         if (unrecognizedCmd) {
-            pm_errormsg("error: unrecognized command: line %lu.",
-                        inputP->number);
+            pm_errormsg("error: unrecognized command: line %u.",
+                        (unsigned)inputP->number);
         } else {
             if (error) {
-                pm_errormsg("Error in line %lu: %s", inputP->number, error);
+                pm_errormsg("Error in line %u: %s",
+                            (unsigned)inputP->number, error);
                 pm_strfree(error);
             } else {
                 if (next != '\0')
-                    pm_message(WARNING_EXCESS_ARGS, inputP->number);
+                    pm_message("warning: ignoring excess arguments: line %u",
+                               (unsigned)inputP->number);
             }
         }
     }