Source-Changes-HG archive

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

[src/trunk]: src/distrib/utils/sysinst remove unused variables



details:   https://anonhg.NetBSD.org/src/rev/b2cd4e5b4b9c
branches:  trunk
changeset: 790997:b2cd4e5b4b9c
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Oct 30 08:39:01 2013 +0000

description:
remove unused variables

diffstat:

 distrib/utils/sysinst/disks.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r be1c0280812c -r b2cd4e5b4b9c distrib/utils/sysinst/disks.c
--- a/distrib/utils/sysinst/disks.c     Wed Oct 30 08:38:40 2013 +0000
+++ b/distrib/utils/sysinst/disks.c     Wed Oct 30 08:39:01 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disks.c,v 1.127 2012/11/17 20:34:24 tsutsui Exp $ */
+/*     $NetBSD: disks.c,v 1.128 2013/10/30 08:39:01 mrg Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -494,13 +494,11 @@
 {
        unsigned int poffset, psize, pend;
        const char *desc;
-       static const char *Yes, *No;
+       static const char *Yes;
        partinfo *p = bsdlabel + ptn;
 
-       if (Yes == NULL) {
+       if (Yes == NULL)
                Yes = msg_string(MSG_Yes);
-               No = msg_string(MSG_No);
-       }
 
        poffset = p->pi_offset / sizemult;
        psize = p->pi_size / sizemult;



Home | Main Index | Thread Index | Old Index