[poppler] test: update-cache.c,1.1,1.2

Jeff Muizelaar jrmuizel at kemper.freedesktop.org
Wed Oct 25 12:07:07 PDT 2006


Update of /cvs/poppler/test
In directory kemper:/tmp/cvs-serv9112

Modified Files:
	update-cache.c 
Log Message:
Eliminate two warnings.


Index: update-cache.c
===================================================================
RCS file: /cvs/poppler/test/update-cache.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- update-cache.c	6 Sep 2006 23:28:53 -0000	1.1
+++ update-cache.c	25 Oct 2006 19:07:05 -0000	1.2
@@ -1,5 +1,6 @@
-#include <stdlib.h>
+#define _GNU_SOURCE
 #include <stdio.h>
+#include <stdlib.h>
 #include <glob.h>
 #include <string.h>
 #include <openssl/sha.h>
@@ -10,7 +11,7 @@
 static void hash_image(FILE *cache, const char *path)
 {
   unsigned int width, height, stride;
-  unsigned char *buf, *buf_diff;
+  unsigned char *buf;
   unsigned char hash[SHA_DIGEST_LENGTH];
   unsigned int buffer_length;
   read_png_status_t status;



More information about the poppler mailing list