SHA256
1
0
forked from pool/imgvtopgm
imgvtopgm/imgvtopgm-2.0-warnings-fix.diff

72 lines
1.8 KiB
Diff

--- ipdb_c.c
+++ ipdb_c.c
@@ -28,6 +28,8 @@
#include <mine/ipdb.h>
#include <mine/ipdbP.h>
+#include <string.h>
+
static char *errors[] = {
/* E_BADCOLORS */
"Invalid palette, only {0x00, 0x55, 0xAA, 0xFF} allowed.",
--- imgvinfo.c.xx 2005-06-23 10:02:44.000000000 +0200
+++ imgvinfo.c 2005-06-23 10:02:51.000000000 +0200
@@ -24,6 +24,7 @@
MU_ID("$Mu: imgvtopgm/imgvinfo.c 1.21 1999/05/09 07:58:02 $")
#include <time.h>
+#include <string.h>
#include <stdlib.h>
#include <mine/ipdb.h>
--- ipdb_r.c.xx 2005-06-23 10:02:57.000000000 +0200
+++ ipdb_r.c 2005-06-23 10:03:05.000000000 +0200
@@ -20,6 +20,7 @@
*
* Authors: Eric A. Howe (mu@trends.net)
*/
+#include <string.h>
#include <mine/slop.h>
MU_ID("$Mu: imgvtopgm/ipdb_r.c 1.13 1999/05/09 08:00:47 $")
--- imgvtopnm.c.xx 2005-06-23 10:03:12.000000000 +0200
+++ imgvtopnm.c 2005-06-23 10:03:18.000000000 +0200
@@ -24,6 +24,7 @@
MU_ID("$Mu: imgvtopgm/imgvtopnm.c 1.6 1999/05/09 08:15:49 $")
#include <stdlib.h>
+#include <string.h>
#include <mine/ipdb.h>
--- pgmtoimgv.c.xx 2005-06-23 10:02:25.000000000 +0200
+++ pgmtoimgv.c 2005-06-23 10:02:31.000000000 +0200
@@ -24,6 +24,7 @@
MU_ID("$Mu: imgvtopgm/pgmtoimgv.c 1.28 1999/05/09 08:27:51 $")
#include <stdlib.h>
+#include <string.h>
#include <sys/stat.h>
#include <mine/ipdb.h>
--- ipdb_w.c.xx 2005-06-23 10:03:23.000000000 +0200
+++ ipdb_w.c 2005-06-23 10:03:29.000000000 +0200
@@ -20,6 +20,7 @@
*
* Authors: Eric A. Howe (mu@trends.net)
*/
+#include <string.h>
#include <mine/slop.h>
MU_ID("$Mu: imgvtopgm/ipdb_w.c 1.19 1999/05/09 08:01:47 $")
--- pbmtoimgv.c.xx 2005-06-23 10:03:39.000000000 +0200
+++ pbmtoimgv.c 2005-06-23 10:03:45.000000000 +0200
@@ -24,6 +24,7 @@
MU_ID("$Mu: imgvtopgm/pbmtoimgv.c 1.12 1998/12/16 18:25:11 $")
#include <stdlib.h>
+#include <string.h>
#include <sys/stat.h>
#include <mine/ipdb.h>