about summary refs log tree commit diff
path: root/converter/other/fiasco/params.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2012-02-12 20:40:29 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2012-02-12 20:40:29 +0000
commit47e6714f1bb9be3587d5c76d5638887b595e6355 (patch)
treea691961ad493be82b6c9b206304a458bd603a9e4 /converter/other/fiasco/params.c
parent7270a56af11a9bf5ac18baa50dc8fedbd545af7f (diff)
downloadnetpbm-mirror-47e6714f1bb9be3587d5c76d5638887b595e6355.tar.gz
netpbm-mirror-47e6714f1bb9be3587d5c76d5638887b595e6355.tar.xz
netpbm-mirror-47e6714f1bb9be3587d5c76d5638887b595e6355.zip
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1643 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/fiasco/params.c')
-rw-r--r--converter/other/fiasco/params.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/converter/other/fiasco/params.c b/converter/other/fiasco/params.c
index a5aefbd6..a4d843a8 100644
--- a/converter/other/fiasco/params.c
+++ b/converter/other/fiasco/params.c
@@ -30,6 +30,7 @@
  
 #include <getopt.h>			/* system or ../lib */
 
+#include "pm_c_util.h"
 #include "nstring.h"
 
 #include "types.h"
@@ -664,13 +665,13 @@ usage (const param_t *params, const char *progname, const char *synopsis,
         if (params [i].optchar != '\0' || show_all_options)
         {
             if (params [i].type == POSTR)
-                width = max (width, (strlen (params [i].name)
+                width = MAX(width, (strlen (params [i].name)
                                      + strlen (params [i].argument_name) + 2));
             else if (params [i].type != PFLAG)
-                width = max (width, (strlen (params [i].name)
+                width = MAX(width, (strlen (params [i].name)
                                      + strlen (params [i].argument_name)));
             else
-                width = max (width, (strlen (params [i].name)) - 1);
+                width = MAX(width, (strlen (params [i].name)) - 1);
         }
    
     for (i = 0; params [i].name != NULL; i++)
@@ -685,7 +686,7 @@ usage (const param_t *params, const char *progname, const char *synopsis,
                 fprintf (stderr, "%s=[%s]%-*s  ", params [i].name,
                          params [i].argument_name,
                          (unsigned)
-                         max(0, (width - 2 - strlen (params [i].name)
+                         MAX(0, (width - 2 - strlen (params [i].name)
                                  - strlen (params [i].argument_name))), "");
             else if (params [i].type != PFLAG)
                 fprintf (stderr, "%s=%-*s  ", params [i].name,