Fixes for gcc warnings - mostly WRT check of returns values
[yaz-moved-to-github.git] / zoom / zoom-bug-641.c
index 24a4b17..66b6d60 100644 (file)
@@ -1,8 +1,7 @@
-/* $Id: zoom-bug-641.c,v 1.1 2006-09-19 21:15:01 adam Exp $  */
-
-/** \file zoom-bug641.c
-    \brief Program to illustrate bug 641
-*/
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2008 Index Data
+ * See the file LICENSE for details.
+ */
 
 #include <stdio.h>
 #include <sys/types.h>
@@ -49,7 +48,7 @@ int main(int argc, char **argv)
         }
         size = statbuf.st_size;
         printf("size=%lu\n", (unsigned long) size);
-        buf = xmalloc(size+1);
+        buf = (char *) xmalloc(size+1);
         while ((n = read(fd, &buf[offset], size)) < size) {
             if (n < 0) {
                 perror("read");