Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config config: remove unused local variable



details:   https://anonhg.NetBSD.org/src/rev/8fbacd99369a
branches:  trunk
changeset: 1023124:8fbacd99369a
user:      rillig <rillig%NetBSD.org@localhost>
date:      Wed Aug 25 23:07:34 2021 +0000

description:
config: remove unused local variable

diffstat:

 usr.bin/config/sem.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 55879f79dc56 -r 8fbacd99369a usr.bin/config/sem.c
--- a/usr.bin/config/sem.c      Wed Aug 25 23:03:01 2021 +0000
+++ b/usr.bin/config/sem.c      Wed Aug 25 23:07:34 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sem.c,v 1.85 2021/04/13 03:09:42 mrg Exp $     */
+/*     $NetBSD: sem.c,v 1.86 2021/08/25 23:07:34 rillig Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -45,7 +45,7 @@
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: sem.c,v 1.85 2021/04/13 03:09:42 mrg Exp $");
+__RCSID("$NetBSD: sem.c,v 1.86 2021/08/25 23:07:34 rillig Exp $");
 
 #include <sys/param.h>
 #include <ctype.h>
@@ -950,7 +950,7 @@
        const char *cp;
        devmajor_t maj;
        devminor_t min;
-       size_t i, l;
+       size_t l;
        int unit;
        char buf[NAMESIZE];
 
@@ -1000,7 +1000,7 @@
         * suffix, remove it if there, and split into name ("ra") and
         * unit (2).
         */
-       l = i = strlen(nv->nv_str);
+       l = strlen(nv->nv_str);
        cp = &nv->nv_str[l];
        if (l > 1 && *--cp >= 'a' && *cp < 'a' + maxpartitions &&
            isdigit((unsigned char)cp[-1])) {



Home | Main Index | Thread Index | Old Index