aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zgenhostid/zgenhostid.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/zgenhostid/zgenhostid.c')
-rw-r--r--cmd/zgenhostid/zgenhostid.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/zgenhostid/zgenhostid.c b/cmd/zgenhostid/zgenhostid.c
index 562262928..50fcf05e4 100644
--- a/cmd/zgenhostid/zgenhostid.c
+++ b/cmd/zgenhostid/zgenhostid.c
@@ -47,10 +47,10 @@ usage(void)
" -h\t\t print this usage and exit\n"
" -o <filename>\t write hostid to this file\n\n"
"If hostid file is not present, store a hostid in it.\n"
- "The optional value must be an 8-digit hex number between"
- "1 and 2^32-1.\n"
- "If no value is provided, a random one will"
- "be generated.\n"
+ "The optional value should be an 8-digit hex number between"
+ " 1 and 2^32-1.\n"
+ "If the value is 0 or no value is provided, a random one"
+ " will be generated.\n"
"The value must be unique among your systems.\n");
exit(EXIT_FAILURE);
/* NOTREACHED */
@@ -108,7 +108,7 @@ main(int argc, char **argv)
exit(EXIT_FAILURE);
}
- if (input_i < 0x1 || input_i > UINT32_MAX) {
+ if (input_i > UINT32_MAX) {
fprintf(stderr, "%s\n", strerror(ERANGE));
usage();
}