X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=tools%2Fgrab_file.c;h=5a2ff69b50ac1ab9a3304783ff03dc56e300cdc8;hp=3c9eee6d33c55688b1a0c0fc9150d1c0b9795871;hb=16b7eb13fbcb1a04a71622e6310020baccc3c39c;hpb=e52b97e4d99af6e2a564731c23c6c86e373aedaa diff --git a/tools/grab_file.c b/tools/grab_file.c index 3c9eee6d..5a2ff69b 100644 --- a/tools/grab_file.c +++ b/tools/grab_file.c @@ -7,14 +7,14 @@ #include #include -static int close_no_errno(int fd) +/*static int close_no_errno(int fd) { int ret = 0, serrno = errno; if (close(fd) < 0) ret = errno; errno = serrno; return ret; -} +}*/ /*void *grab_fd(const void *ctx, int fd) { @@ -38,7 +38,7 @@ static int close_no_errno(int fd) }*/ /* This version adds one byte (for nul term) */ -void *grab_file(const void *ctx, const char *filename) +/*void *grab_file(const void *ctx, const char *filename) { int fd; char *buffer; @@ -54,5 +54,5 @@ void *grab_file(const void *ctx, const char *filename) buffer = grab_fd(ctx, fd); close_no_errno(fd); return buffer; -} +}*/