src/weblet/counter/counter.c 1.6

1.6 2009/09/23 18:42:29 angie
Fixed compiler warnings from gcc 4.3.3, mostly about system calls whose return values weren't checked and non-literal format strings with no args.
Index: src/weblet/counter/counter.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/weblet/counter/counter.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -b -B -U 4 -r1.5 -r1.6
--- src/weblet/counter/counter.c	19 Aug 2009 23:35:58 -0000	1.5
+++ src/weblet/counter/counter.c	23 Sep 2009 18:42:29 -0000	1.6
@@ -41,9 +41,9 @@
 ipSize = strlen(ip) + 1;
 
 if (f != NULL)
     {
-    fread(&val, sizeof(val), 1, f);
+    mustReadOne(f, val);
     rewind(f);
     }
 else
     {