From 6b972ae81107e4f9a138a3799c3f86fa5e77b385 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 12 Jan 2019 20:22:20 +0000 Subject: Fix compiler warning git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3496 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- generator/pamtris/input.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'generator/pamtris') 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); } } } -- cgit 1.4.1