From 3388f4c4de628702ba77e2fec941c809877ad576 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 8 Jan 2007 04:26:01 -0500 Subject: xread() and xwrite() should take void *, not char *. --- lib/functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/functions.c') diff --git a/lib/functions.c b/lib/functions.c index e476557c..ef787617 100644 --- a/lib/functions.c +++ b/lib/functions.c @@ -214,12 +214,12 @@ ssize_t writeall(int fd, void *buf, size_t count) } // Die if we can't fill a buffer -void xread(int fd, char *buf, size_t count) +void xread(int fd, void *buf, size_t count) { if (count != readall(fd, buf, count)) perror_exit("xread"); } -void xwrite(int fd, char *buf, size_t count) +void xwrite(int fd, void *buf, size_t count) { if (count != writeall(fd, buf, count)) perror_exit("xwrite"); } -- cgit v1.2.3