summaryrefslogtreecommitdiffstats
path: root/lib/libstand/stand.h
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1999-12-27 08:45:14 +0000
committerpeter <peter@FreeBSD.org>1999-12-27 08:45:14 +0000
commit070fb078b63def28df51407cd5ea411b14e7f099 (patch)
tree94f2977f3d9218392c1e07e838f2fb7508fc1644 /lib/libstand/stand.h
parent0e302599d7ce5999caeeae7b2a0fdd9c399df508 (diff)
downloadFreeBSD-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/stand.h')
-rw-r--r--lib/libstand/stand.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libstand/stand.h b/lib/libstand/stand.h
index 78832e7..08b1d9d 100644
--- a/lib/libstand/stand.h
+++ b/lib/libstand/stand.h
@@ -165,7 +165,7 @@ extern struct open_file files[];
#define isspace(c) ((c) == ' ' || ((c) >= 0x9 && (c) <= 0xd))
#define isdigit(c) ((c) >= '0' && (c) <= '9')
#define isxdigit(c) (isdigit(c) || ((c) >= 'a' && (c) <= 'f') || ((c) >= 'A' && (c) <= 'F'))
-#define isascii(c) ((c) >= 0 || (c <= 0x7f))
+#define isascii(c) (((unsigned char)c) <= 0x7f)
#define isalpha(c) (isupper(c) || (islower(c)))
static __inline int toupper(int c)
@@ -307,8 +307,8 @@ extern void nullsys(void);
extern int null_open(const char *path, struct open_file *f);
extern int null_close(struct open_file *f);
-extern ssize_t null_read(struct open_file *f, void *buf, size_t size, size_t *resid);
-extern ssize_t null_write(struct open_file *f, void *buf, size_t size, size_t *resid);
+extern int null_read(struct open_file *f, void *buf, size_t size, size_t *resid);
+extern int null_write(struct open_file *f, void *buf, size_t size, size_t *resid);
extern off_t null_seek(struct open_file *f, off_t offset, int where);
extern int null_stat(struct open_file *f, struct stat *sb);
OpenPOWER on IntegriCloud