From ee625703d0a3569926003e28acc25a22229584b7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 21 Feb 2012 17:45:48 +0000 Subject: (grab_fd) drop implementation when using gzip//xz, it's uneeded in that case --- mdk-stage1/zlibsupport.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'mdk-stage1/zlibsupport.c') diff --git a/mdk-stage1/zlibsupport.c b/mdk-stage1/zlibsupport.c index 750241b0f..2b171e72d 100644 --- a/mdk-stage1/zlibsupport.c +++ b/mdk-stage1/zlibsupport.c @@ -236,20 +236,6 @@ out_err: return NULL; } -void *grab_fd(int fd, unsigned long *size) -{ - gzFile gzfd; - - gzfd = gzdopen(fd, "rb"); - if (!gzfd) - return NULL; - - /* gzclose(gzfd) would close fd, which would drop locks. - Don't blame zlib: POSIX locking semantics are so horribly - broken that they should be ripped out. */ - return grab_contents(gzfd, size); -} - /* gzopen handles uncompressed files transparently. */ void *grab_file(const char *filename, unsigned long *size) { -- cgit v1.2.1