]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
ChangeLog, compare.c, gen_uuid.c, parse.c:
authorTheodore Ts'o <tytso@mit.edu>
Tue, 1 May 2001 15:32:44 +0000 (15:32 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 1 May 2001 15:32:44 +0000 (15:32 +0000)
  parse.c, compare.c: Include string.h to fix gcc -Wall complaints.
  gen_uuid.c: Define _SVID_SOURCE to avoid gcc -Wall errors because some
   required structures wouldn't be otherwise defined.  Fix a minor gcc
   -Wall nit in the declaration of get_random_fd().

lib/uuid/ChangeLog
lib/uuid/compare.c
lib/uuid/gen_uuid.c
lib/uuid/parse.c

index 94fcb9a84d0c14b61eadb06708371c8aa292d7e8..3facde141eb28a6e0d4a20f1d63c68d9f870cd9b 100644 (file)
@@ -1,3 +1,13 @@
+2001-05-01  Theodore Tso  <tytso@valinux.com>
+
+       * parse.c, compare.c: Include string.h to fix gcc -Wall
+               complaints.
+
+       * gen_uuid.c: Define _SVID_SOURCE to avoid gcc -Wall errors
+               because some required structures wouldn't be otherwise
+               defined.  Fix a minor gcc -Wall nit in the declaration of
+               get_random_fd().
+
 2001-01-12  Theodore Ts'o  <tytso@valinux.com>
 
        * uuid_time.c (main), tst_uuid.c (main): Fix gcc -Wall complaints.
index d2d9fe7e39e0837152acbdd2f41f357b79332066..cc335f5e98866adddbd61f244352daaa49e1b287 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include "uuidP.h"
+#include <string.h>
 
 #define UUCMP(u1,u2) if (u1 != u2) return((u1 < u2) ? -1 : 1);
 
index fd55114169ad9ff6561adc21b6e1c4f85dd14f81..1f724390e5c495175d4ea18995e70f402b23c9d7 100644 (file)
@@ -9,6 +9,12 @@
  * %End-Header%
  */
 
+/*
+ * Force inclusion of SVID stuff since we need it if we're compiling in
+ * gcc-wall wall mode
+ */
+#define _SVID_SOURCE
+
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
@@ -41,7 +47,7 @@
 #define rand()                 random()
 #endif
 
-static int get_random_fd()
+static int get_random_fd(void)
 {
        struct timeval  tv;
        static int      fd = -2;
index fdf09113e1b387c833debb133f307c216a976357..6c6fe315b862b6d09cb58d680bc774327f8b7fa6 100644 (file)
@@ -12,6 +12,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <ctype.h>
+#include <string.h>
 
 #include "uuidP.h"