Date: Fri, 5 Apr 2019 20:12:19 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r345968 - head/usr.sbin/devctl Message-ID: <201904052012.x35KCJIH012902@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Fri Apr 5 20:12:19 2019 New Revision: 345968 URL: https://svnweb.freebsd.org/changeset/base/345968 Log: Fix gcc warning about shadowed global. Sponsored by: Mellanox Technologies MFC after: 2 weeks Modified: head/usr.sbin/devctl/devctl.c Modified: head/usr.sbin/devctl/devctl.c ============================================================================== --- head/usr.sbin/devctl/devctl.c Fri Apr 5 19:42:54 2019 (r345967) +++ head/usr.sbin/devctl/devctl.c Fri Apr 5 20:12:19 2019 (r345968) @@ -397,14 +397,14 @@ reset_usage(void) static int reset(int ac, char **av) { - bool detach; + bool detach_drv; int ch; - detach = false; + detach_drv = false; while ((ch = getopt(ac, av, "d")) != -1) switch (ch) { case 'd': - detach = true; + detach_drv = true; break; default: reset_usage(); @@ -414,7 +414,7 @@ reset(int ac, char **av) if (ac != 1) reset_usage(); - if (devctl_reset(av[0], detach) < 0) + if (devctl_reset(av[0], detach_drv) < 0) err(1, "Failed to reset %s", av[0]); return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904052012.x35KCJIH012902>