From 169daa11155988a210fac949297381743f3cb400 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 9 Dec 2025 23:14:53 +0100 Subject: feat: clang-tidy fixes --- bin/gzip/gzip.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'bin/gzip/gzip.c') diff --git a/bin/gzip/gzip.c b/bin/gzip/gzip.c index bc7a4bf2..b0e20bb1 100644 --- a/bin/gzip/gzip.c +++ b/bin/gzip/gzip.c @@ -9,6 +9,11 @@ * See the file algorithm.doc for the compression algorithms and file formats. */ +#include "stddef.h" // for NULL + +#include // for fprintf, stderr, perror, fileno, stdin, stdout +#include // for strcpy, strcmp, strlen, strcat, memcmp, strncmp + static char *license_msg[] = { " Copyright (C) 1992-1993 Jean-loup Gailly", " This program is free software; you can redistribute it and/or modify", @@ -49,21 +54,18 @@ static char *license_msg[] = { static char rcsid[] = "$Id: gzip.c,v 1.3 2005/02/12 21:03:28 olh Exp $"; #endif -#include -#include -#include -#include - -#include "tailor.h" #include "gzip.h" -#include "revision.h" - -#include -#include -#include -#include - -#include +#include "revision.h" // for REVDATE, VERSION +#include "tailor.h" // for MAX_SUFFIX, PATH_SEP, get_char, MIN_PART, OPTI... + +#include // for errno, ENAMETOOLONG, ENOENT +#include // for open, O_RDONLY, O_CREAT, O_EXCL, O_WRONLY +#include // for sysv_signal, SIG_IGN, SIGHUP, SIGTERM, SIGINT +#include // for exit, free +#include // for stat, chmod, st_mtime, fstat, S_IRUSR, S_IWUSR +#include // for time_t +#include // for close, unlink, optarg, optind, chown, getopt +#include // for utimbuf, utime typedef void(*sig_type) OF((int)); @@ -1000,12 +1002,10 @@ local int get_method() ifname); exit_code = ERROR; return -1; - } else { - WARN((stderr, - "\n%s: %s: decompression OK, trailing garbage ignored\n", - progname, ifname)); - return -2; } + WARN((stderr, "\n%s: %s: decompression OK, trailing garbage ignored\n", + progname, ifname)); + return -2; } /* ======================================================================== -- cgit v1.2.3