changeset 379:74526fc22c25

xreadall() returns void... how does that even compile?
author Rob Landley <rob@landley.net>
date Sun, 13 Nov 2011 21:05:28 -0600
parents a9adc1ae0f6c
children 782859fadd20
files lib/lib.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/lib.c	Sun Nov 13 20:02:47 2011 -0600
+++ b/lib/lib.c	Sun Nov 13 21:05:28 2011 -0600
@@ -570,7 +570,7 @@
 	if (fd == -1) return 0;
 	len = fdlength(fd);
 	buf = xmalloc(len+1);
-	buf[xreadall(fd, buf, len)] = 0;
+	buf[readall(fd, buf, len)] = 0;
 
 	return buf;
 }