summaryrefslogtreecommitdiff
path: root/src/general.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/general.c')
-rw-r--r--src/general.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/general.c b/src/general.c
index 62d242d..8d48f74 100644
--- a/src/general.c
+++ b/src/general.c
@@ -13,14 +13,16 @@
* Reads size bytes into the destination buffer from filename.
*
*/
-void slurp(char *filename, char *destination, int size) {
+bool slurp(char *filename, char *destination, int size) {
int fd;
if ((fd = open(filename, O_RDONLY)) == -1)
- die("Could not open \"%s\"\n", filename);
+ return false;
(void)read(fd, destination, size);
(void)close(fd);
+
+ return true;
}
/*