supervise-daemon: fix -Wshadow

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2022-03-31 07:35:42 +01:00 committed by William Hubbs
parent e82baa17ca
commit 026472ce5e

View File

@ -809,7 +809,7 @@ int main(int argc, char **argv)
eerror("%s: invalid nice level `%s' (SSD_NICELEVEL)", eerror("%s: invalid nice level `%s' (SSD_NICELEVEL)",
applet, tmp); applet, tmp);
if ((tmp = getenv("SSD_IONICELEVEL"))) { if ((tmp = getenv("SSD_IONICELEVEL"))) {
int n = sscanf(tmp, "%d:%d", &ionicec, &ioniced); n = sscanf(tmp, "%d:%d", &ionicec, &ioniced);
if (n != 1 && n != 2) if (n != 1 && n != 2)
eerror("%s: invalid ionice level `%s' (SSD_IONICELEVEL)", eerror("%s: invalid ionice level `%s' (SSD_IONICELEVEL)",
applet, tmp); applet, tmp);