aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>1998-09-18 23:00:57 +0000
committerMike Smith <msmith@FreeBSD.org>1998-09-18 23:00:57 +0000
commitec5cd5b130cdb14f5fe2001419b4dc0ec3aea9af (patch)
treefe6ce47bbf88b617d82803857f87da8c37611964
parent4ce36a791b0c673955d80c21d96aaffa571b16cf (diff)
downloadsrc-ec5cd5b130cdb14f5fe2001419b4dc0ec3aea9af.tar.gz
src-ec5cd5b130cdb14f5fe2001419b4dc0ec3aea9af.zip
Nuke prototype for strerror, consumers get it from <string.h>
Fix overlooked nullopen() implementation.
Notes
Notes: svn path=/head/; revision=39469
-rw-r--r--lib/libstand/nullfs.c2
-rw-r--r--lib/libstand/stand.h4
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/libstand/nullfs.c b/lib/libstand/nullfs.c
index dff6e15ba871..4a1e6e44ab47 100644
--- a/lib/libstand/nullfs.c
+++ b/lib/libstand/nullfs.c
@@ -69,7 +69,7 @@
/*
* Null filesystem
*/
-int null_open (char *path, struct open_file *f)
+int null_open (const char *path, struct open_file *f)
{
errno = EIO;
return -1;
diff --git a/lib/libstand/stand.h b/lib/libstand/stand.h
index 23e3198d509c..e575ee4678e7 100644
--- a/lib/libstand/stand.h
+++ b/lib/libstand/stand.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: stand.h,v 1.2 1998/08/24 02:54:33 bde Exp $
+ * $Id: stand.h,v 1.3 1998/09/18 22:58:00 msmith Exp $
* From $NetBSD: stand.h,v 1.22 1997/06/26 19:17:40 drochner Exp $
*/
@@ -188,8 +188,6 @@ extern void ngets(char *, int);
#define gets(x) ngets((x), 0)
extern int fgetstr(char *buf, int size, int fd);
-extern const char *strerror(int);
-
extern int open(const char *, int);
#define O_RDONLY 0x0
#define O_WRONLY 0x1 /* writing not (yet?) supported */