summaryrefslogtreecommitdiffstats
path: root/lib/libutil/property.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libutil/property.c')
-rw-r--r--lib/libutil/property.c5
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;
}
}
-
OpenPOWER on IntegriCloud