$OpenBSD: patch-generator_pamtris_input_c,v 1.1 2019/01/12 22:27:40 naddy Exp $

https://sourceforge.net/p/netpbm/code/3496/

Index: generator/pamtris/input.c
--- generator/pamtris/input.c.orig
+++ 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 *                cons
         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);
             }
         }
     }
