diff options
author | jkh <jkh@FreeBSD.org> | 1998-10-09 07:32:38 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1998-10-09 07:32:38 +0000 |
commit | 5f9952e765ec8cd7e1faad8107ba5f81f0f8b893 (patch) | |
tree | 2b0cea8d51d06bd0a43610cfd69c032ba4f8d442 /lib/libutil/property.c | |
parent | 3388a213ada302b98e4023667c923fa7caeffed4 (diff) | |
download | FreeBSD-src-5f9952e765ec8cd7e1faad8107ba5f81f0f8b893.zip FreeBSD-src-5f9952e765ec8cd7e1faad8107ba5f81f0f8b893.tar.gz |
o move path in libutil.h to paths.h
o make property_read() take a fd instead to avoid stdio.h mess
o update auth to new interface.
Diffstat (limited to 'lib/libutil/property.c')
-rw-r--r-- | lib/libutil/property.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libutil/property.c b/lib/libutil/property.c index 3de550b..d7c93d7 100644 --- a/lib/libutil/property.c +++ b/lib/libutil/property.c @@ -53,7 +53,7 @@ property_alloc(char *name, char *value) } properties -properties_read(FILE *fp) +properties_read(int fd) { properties head, ptr; char hold_n[MAX_NAME + 1]; @@ -75,7 +75,7 @@ properties_read(FILE *fp) } switch(state) { case FILL: - if ((max = fread(buf, 1, sizeof buf, fp)) <= 0) { + if ((max = read(fd, buf, sizeof buf)) <= 0) { state = STOP; break; } @@ -214,4 +214,3 @@ properties_free(properties list) list = tmp; } } - |