summaryrefslogtreecommitdiffstats
path: root/sbin/mdconfig
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2003-07-11 05:47:05 +0000
committerkan <kan@FreeBSD.org>2003-07-11 05:47:05 +0000
commit8c2df19687b187984be9a4b27caba6d4bcf1b96b (patch)
tree84931f6828f4b8ccd41393c4be85ba28f8e3c42a /sbin/mdconfig
parente16ef3051fc93762c9e35dc8623f838d928e1d07 (diff)
downloadFreeBSD-src-8c2df19687b187984be9a4b27caba6d4bcf1b96b.zip
FreeBSD-src-8c2df19687b187984be9a4b27caba6d4bcf1b96b.tar.gz
Do not compare unsigned int values with ULONG_MAX. The comparison is
always false on 64bit platforms and GCC 3.3.1 issues warning there.
Diffstat (limited to 'sbin/mdconfig')
-rw-r--r--sbin/mdconfig/mdconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/mdconfig/mdconfig.c b/sbin/mdconfig/mdconfig.c
index 263a942..6296da7 100644
--- a/sbin/mdconfig/mdconfig.c
+++ b/sbin/mdconfig/mdconfig.c
@@ -164,7 +164,7 @@ main(int argc, char **argv)
if (!strncmp(optarg, MD_NAME, sizeof(MD_NAME) - 1))
optarg += sizeof(MD_NAME) - 1;
mdio.md_unit = strtoul(optarg, &p, 0);
- if ((unsigned)mdio.md_unit == ULONG_MAX || *p != '\0')
+ if (mdio.md_unit == (unsigned)ULONG_MAX || *p != '\0')
errx(1, "bad unit: %s", optarg);
mdio.md_options &= ~MD_AUTOUNIT;
break;
OpenPOWER on IntegriCloud