X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=util%2Fzlib-extra.c;h=623f6d62d1e4fc13331e9c5a56d8b005287df0bd;hb=2c1f783f5f4ad28d89f2e83d7253bae7bba98440;hp=2b2cd8f9bda2af8a7dd2590c0ee3dfb10b066c5d;hpb=2f4beda434c59f9e2f5b7c32d26543bad7217ad4;p=notmuch diff --git a/util/zlib-extra.c b/util/zlib-extra.c index 2b2cd8f9..623f6d62 100644 --- a/util/zlib-extra.c +++ b/util/zlib-extra.c @@ -70,16 +70,17 @@ gz_getline (void *talloc_ctx, char **bufptr, ssize_t *bytes_read, gzFile stream) if (buf == NULL) return UTIL_OUT_OF_MEMORY; } - SUCCESS: + SUCCESS: *bufptr = buf; *bytes_read = offset; return UTIL_SUCCESS; } -const char *gz_error_string (util_status_t status, gzFile file) +const char * +gz_error_string (util_status_t status, gzFile file) { if (status == UTIL_GZERROR) - return gzerror (file, NULL); + return gzerror_str (file); else return util_error_string (status); }