aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/functions.c4
-rw-r--r--lib/lib.h4
2 files changed, 4 insertions, 4 deletions
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");
}
diff --git a/lib/lib.h b/lib/lib.h
index e3dced22..cdfc02e4 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -46,8 +46,8 @@ ssize_t reread(int fd, void *buf, size_t count);
ssize_t rewrite(int fd, void *buf, size_t count);
ssize_t readall(int fd, void *buf, size_t count);
ssize_t writeall(int fd, void *buf, size_t count);
-void xread(int fd, char *buf, size_t count);
-void xwrite(int fd, char *buf, size_t count);
+void xread(int fd, void *buf, size_t count);
+void xwrite(int fd, void *buf, size_t count);
char *xgetcwd(void);
char *xabspath(char *path);
struct string_list *find_in_path(char *path, char *filename);