summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-02-26 04:16:38 +0000
committerRoland McGrath <roland@gnu.org>2001-02-26 04:16:38 +0000
commitf7a9538252e1d65e528e9e34c1e1a99b681116ab (patch)
tree782118b1d1bef2809eade33c72f4ec4c434f8ee6 /utils
parent84fa419b6902ff32c8cfc9bc10af857856d1a519 (diff)
2001-02-25 Roland McGrath <roland@frob.com>
* storecat.c: Include <stdlib.h> for decls. * w.c: Include <time.h> for decls.
Diffstat (limited to 'utils')
-rw-r--r--utils/storecat.c7
-rw-r--r--utils/w.c3
2 files changed, 6 insertions, 4 deletions
diff --git a/utils/storecat.c b/utils/storecat.c
index f01c12c1..78280a21 100644
--- a/utils/storecat.c
+++ b/utils/storecat.c
@@ -1,7 +1,7 @@
/* Write a store to stdout
- Copyright (C) 1996, 1997 Free Software Foundation, Inc.
- Written by Miles Bader <miles@gnu.ai.mit.edu>
+ Copyright (C) 1996, 1997, 2001 Free Software Foundation, Inc.
+ Written by Miles Bader <miles@gnu.org>
This file is part of the GNU Hurd.
The GNU Hurd is free software; you can redistribute it and/or
@@ -19,6 +19,7 @@
59 Temple Place - Suite 330, Boston, MA 02111, USA. */
#include <unistd.h>
+#include <stdlib.h>
#include <argp.h>
#include <error.h>
@@ -54,7 +55,7 @@ main (int argc, char **argv)
char buf[4096];
void *data = buf;
size_t data_len = sizeof (buf);
-
+
err = store_read (s, addr, read, &data, &data_len);
if (err)
error (5, err, "%s", name);
diff --git a/utils/w.c b/utils/w.c
index 1ffbaaa9..ef6403aa 100644
--- a/utils/w.c
+++ b/utils/w.c
@@ -1,6 +1,6 @@
/* Hurdish w
- Copyright (C) 1995,96,97,98,99 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,97,98,99,2001 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include <unistd.h>
#include <paths.h>
#include <ctype.h>