diff options
author | peter <peter@FreeBSD.org> | 1999-12-27 08:45:14 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-12-27 08:45:14 +0000 |
commit | 070fb078b63def28df51407cd5ea411b14e7f099 (patch) | |
tree | 94f2977f3d9218392c1e07e838f2fb7508fc1644 /lib/libstand/nullfs.c | |
parent | 0e302599d7ce5999caeeae7b2a0fdd9c399df508 (diff) | |
download | FreeBSD-src-070fb078b63def28df51407cd5ea411b14e7f099.zip FreeBSD-src-070fb078b63def28df51407cd5ea411b14e7f099.tar.gz |
Tidy up some loose ends. nullfs_read/write were returning the wrong value.
Fix some ctype problems - isascii() caused a warning if fed an unsigned
char - it's always > 0 and libstand is compiled with -Wall.
Missing prototype/include in printf.c
Diffstat (limited to 'lib/libstand/nullfs.c')
-rw-r--r-- | lib/libstand/nullfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libstand/nullfs.c b/lib/libstand/nullfs.c index 4a1e6e4..96e69d2 100644 --- a/lib/libstand/nullfs.c +++ b/lib/libstand/nullfs.c @@ -1,3 +1,4 @@ +/* $FreeBSD$ */ /* $NetBSD: nullfs.c,v 1.1 1996/01/13 22:25:39 leo Exp $ */ /*- @@ -80,13 +81,13 @@ int null_close(struct open_file *f) return 0; } -ssize_t null_read (struct open_file *f, void *buf, size_t size, size_t *resid) +int null_read (struct open_file *f, void *buf, size_t size, size_t *resid) { errno = EIO; return -1; } -ssize_t null_write (struct open_file *f, void *buf, size_t size, size_t *resid) +int null_write (struct open_file *f, void *buf, size_t size, size_t *resid) { errno = EIO; return -1; |