Module Name: src Committed By: rillig Date: Wed Aug 25 23:07:34 UTC 2021
Modified Files: src/usr.bin/config: sem.c Log Message: config: remove unused local variable To generate a diff of this commit: cvs rdiff -u -r1.85 -r1.86 src/usr.bin/config/sem.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/config/sem.c diff -u src/usr.bin/config/sem.c:1.85 src/usr.bin/config/sem.c:1.86 --- src/usr.bin/config/sem.c:1.85 Tue Apr 13 03:09:42 2021 +++ src/usr.bin/config/sem.c Wed Aug 25 23:07:34 2021 @@ -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 @@ resolve(struct nvlist **nvp, const char 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 @@ resolve(struct nvlist **nvp, const char * 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])) {