about summary refs log tree commit diff
path: root/misc/subr.h
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2006-10-14 19:43:14 +0000
committerRichard Nyberg <rnyberg@murmeldjur.se>2006-10-14 19:43:14 +0000
commit3fb4e5a894b687cebd614b60f7e6284356cab5de (patch)
treed7104500f4e19802c57db2f951e224ad43a139dd /misc/subr.h
parent51e084f14490c273c784d58f174f16d334ee5151 (diff)
downloadbtpd-3fb4e5a894b687cebd614b60f7e6284356cab5de.tar.gz
btpd-3fb4e5a894b687cebd614b60f7e6284356cab5de.zip
Simplify read_whole_file and rename to read_file.
Diffstat (limited to 'misc/subr.h')
-rw-r--r--misc/subr.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/misc/subr.h b/misc/subr.h
index bf30433..8ef962c 100644
--- a/misc/subr.h
+++ b/misc/subr.h
@@ -33,8 +33,7 @@ long rand_between(long min, long max);
 
 int read_fully(int fd, void *buf, size_t len);
 int write_fully(int fd, const void *buf, size_t len);
-__attribute__((format (printf, 3, 4)))
-int read_whole_file(void **out, size_t *size, const char *fmt, ...);
+void *read_file(const char *path, void *buf, size_t *size);
 
 char *find_btpd_dir(void);