about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-10-01 17:12:42 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2006-10-01 17:12:42 +0000
commitb31e75a79a6f096f3462292fd48494035f0be0fe (patch)
tree68d7af8b0bd1c78f8c93dcddd1a7e24a36e11700 /lib
parent118ba884419d79e5bd2dd83a1e1a40b99ac64f65 (diff)
downloadnetpbm-mirror-b31e75a79a6f096f3462292fd48494035f0be0fe.tar.gz
netpbm-mirror-b31e75a79a6f096f3462292fd48494035f0be0fe.tar.xz
netpbm-mirror-b31e75a79a6f096f3462292fd48494035f0be0fe.zip
Fix prototypes that don't literally match definitions, for Irix compiler
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@77 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r--lib/pm.h2
-rw-r--r--lib/ppmdraw.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/pm.h b/lib/pm.h
index 040a6a4b..9c3c087e 100644
--- a/lib/pm.h
+++ b/lib/pm.h
@@ -65,7 +65,7 @@ extern "C" {
 #ifdef __GNUC__
 #define PM_GNU_PRINTF_ATTR(a,b) __attribute__ ((format (printf, a, b)))
 #else
-#define PM_GNU_PRINTF_ATTR
+#define PM_GNU_PRINTF_ATTR(a,b)
 #endif
 
 
diff --git a/lib/ppmdraw.h b/lib/ppmdraw.h
index 9efe51b9..6a379573 100644
--- a/lib/ppmdraw.h
+++ b/lib/ppmdraw.h
@@ -59,7 +59,7 @@ typedef struct {
 
 
 
-typedef void ppmd_drawproc(pixel **, int, int, pixval, int, int, const void *);
+typedef void ppmd_drawproc(pixel ** const, int const, int const, pixval const, int const, int const, const void *const);
 
 ppmd_drawproc ppmd_point_drawproc;
 
@@ -274,7 +274,7 @@ ppmd_text(pixel**      const pixels,
           int          const height, 
           int          const angle, 
           const char * const sArg, 
-          void (*drawprocP)(pixel**, int, int, pixval, int, int, const void*), 
+	  ppmd_drawproc,
     const void*  const clientdata);
 /* Draws the null-terminated string 's' left justified at the point
    ('x', 'y').  The text will be 'height' pixels high and will be aligned on a