diff options
| author | Richard Nyberg <rnyberg@murmeldjur.se> | 2006-10-14 19:43:14 +0000 |
|---|---|---|
| committer | Richard Nyberg <rnyberg@murmeldjur.se> | 2006-10-14 19:43:14 +0000 |
| commit | 3fb4e5a894b687cebd614b60f7e6284356cab5de (patch) | |
| tree | d7104500f4e19802c57db2f951e224ad43a139dd /misc/subr.h | |
| parent | 51e084f14490c273c784d58f174f16d334ee5151 (diff) | |
| download | btpd-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.h | 3 |
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); |