about summary refs log tree commit diff
diff options
context:
space:
mode:
-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);
             }
         }
     }