summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2001-05-01 15:32:44 +0000
committerTheodore Ts'o <tytso@mit.edu>2001-05-01 15:32:44 +0000
commitb1416db3227b4b7192ee0d2d3ff6e00e92e9d3e2 (patch)
tree94c7eb18517f833c480a8310d69248670bad123d /lib
parentce57f14f409a1e51c93c763850560143f7b40b0f (diff)
downloade2fsprogs-b1416db3227b4b7192ee0d2d3ff6e00e92e9d3e2.tar.gz
ChangeLog, compare.c, gen_uuid.c, parse.c:
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().
Diffstat (limited to 'lib')
-rw-r--r--lib/uuid/ChangeLog10
-rw-r--r--lib/uuid/compare.c1
-rw-r--r--lib/uuid/gen_uuid.c8
-rw-r--r--lib/uuid/parse.c1
4 files changed, 19 insertions, 1 deletions
diff --git a/lib/uuid/ChangeLog b/lib/uuid/ChangeLog
index 94fcb9a8..3facde14 100644
--- a/lib/uuid/ChangeLog
+++ b/lib/uuid/ChangeLog
@@ -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.
diff --git a/lib/uuid/compare.c b/lib/uuid/compare.c
index d2d9fe7e..cc335f5e 100644
--- a/lib/uuid/compare.c
+++ b/lib/uuid/compare.c
@@ -12,6 +12,7 @@
*/
#include "uuidP.h"
+#include <string.h>
#define UUCMP(u1,u2) if (u1 != u2) return((u1 < u2) ? -1 : 1);
diff --git a/lib/uuid/gen_uuid.c b/lib/uuid/gen_uuid.c
index fd551141..1f724390 100644
--- a/lib/uuid/gen_uuid.c
+++ b/lib/uuid/gen_uuid.c
@@ -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;
diff --git a/lib/uuid/parse.c b/lib/uuid/parse.c
index fdf09113..6c6fe315 100644
--- a/lib/uuid/parse.c
+++ b/lib/uuid/parse.c
@@ -12,6 +12,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
+#include <string.h>
#include "uuidP.h"