diff options
author | johan <johan@FreeBSD.org> | 2003-08-07 19:10:35 +0000 |
---|---|---|
committer | johan <johan@FreeBSD.org> | 2003-08-07 19:10:35 +0000 |
commit | fd49816cd7fc9272c7927b2ae400d95498c07b00 (patch) | |
tree | 55fcac51c8fffc5af6a6c95bcb20c727a14c9630 /sbin/ccdconfig | |
parent | c68e3be3c4c8c3f0667b0384d2e96ce075cc8f1d (diff) | |
download | FreeBSD-src-fd49816cd7fc9272c7927b2ae400d95498c07b00.zip FreeBSD-src-fd49816cd7fc9272c7927b2ae400d95498c07b00.tar.gz |
Make this WARNS=6 clean by renaming the variable 'err' to 'error'
in order not to shadow err(3).
Tested by: make universe
Diffstat (limited to 'sbin/ccdconfig')
-rw-r--r-- | sbin/ccdconfig/Makefile | 2 | ||||
-rw-r--r-- | sbin/ccdconfig/ccdconfig.c | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sbin/ccdconfig/Makefile b/sbin/ccdconfig/Makefile index 6d6e7e0..ac75584 100644 --- a/sbin/ccdconfig/Makefile +++ b/sbin/ccdconfig/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PROG= ccdconfig -WARNS?= 3 +WARNS?= 6 MAN= ccdconfig.8 DPADD= ${LIBGEOM} diff --git a/sbin/ccdconfig/ccdconfig.c b/sbin/ccdconfig/ccdconfig.c index 21833e6..c7baa98 100644 --- a/sbin/ccdconfig/ccdconfig.c +++ b/sbin/ccdconfig/ccdconfig.c @@ -380,16 +380,16 @@ dumpout(int unit) static int dump_ccd(int argc, char **argv) { - int i, err; + int i, error; if (argc == 0) { - err = dumpout(-1); + error = dumpout(-1); } else { - err = 0; - for (i = 0; err == 0 && i < argc; i++) - err = dumpout(resolve_ccdname(argv[i])); + error = 0; + for (i = 0; error == 0 && i < argc; i++) + error = dumpout(resolve_ccdname(argv[i])); } - return (err); + return (error); } static int |