Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/gzip remove a chunk more code with -DSMALL and in th...



details:   https://anonhg.NetBSD.org/src/rev/543e017f8281
branches:  trunk
changeset: 565175:543e017f8281
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Mar 31 15:46:25 2004 +0000

description:
remove a chunk more code with -DSMALL and in the process fix -DSMALL
that was broken in the previous commit (by exposing "fflag".)

diffstat:

 usr.bin/gzip/gzip.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 2c1072bf90c7 -r 543e017f8281 usr.bin/gzip/gzip.c
--- a/usr.bin/gzip/gzip.c       Wed Mar 31 15:43:58 2004 +0000
+++ b/usr.bin/gzip/gzip.c       Wed Mar 31 15:46:25 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gzip.c,v 1.33 2004/03/31 15:19:14 tron Exp $   */
+/*     $NetBSD: gzip.c,v 1.34 2004/03/31 15:46:25 mrg Exp $    */
 
 /*
  * Copyright (c) 1997, 1998, 2003 Matthew R. Green
@@ -32,7 +32,7 @@
 #ifndef lint
 __COPYRIGHT("@(#) Copyright (c) 1997, 1998, 2003 Matthew R. Green\n\
      All rights reserved.\n");
-__RCSID("$NetBSD: gzip.c,v 1.33 2004/03/31 15:19:14 tron Exp $");
+__RCSID("$NetBSD: gzip.c,v 1.34 2004/03/31 15:46:25 mrg Exp $");
 #endif /* not lint */
 
 /*
@@ -590,7 +590,6 @@
                                goto lose;
                        }
                }
-#endif
                if (stat(file, &isb) == 0) {
                        if (isb.st_nlink > 1 && fflag == 0) {
                                maybe_warnx("%s has %d other link%s -- "
@@ -598,11 +597,10 @@
                                            isb.st_nlink == 1 ? "" : "s");
                                goto lose;
                        }
-#ifndef SMALL
                        if (nflag == 0)
                                mtime = (u_int32_t)isb.st_mtime;
+               }
 #endif
-               }
        }
        in = fopen(file, "r");
        if (in == 0)



Home | Main Index | Thread Index | Old Index