Cosmetic fixes for growfs(8) - remove unneeded capitalization and a spurious

newline, clarify a message.

MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Edward Tomasz Napierala 2016-05-11 09:26:23 +00:00
parent 8457719578
commit b8a1930fcf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=299416

View File

@ -1540,12 +1540,12 @@ main(int argc, char **argv)
humanize_number(newsizebuf, sizeof(newsizebuf),
sblock.fs_size * sblock.fs_fsize,
"B", HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL);
printf(" from %s to %s? [Yes/No] ", oldsizebuf, newsizebuf);
printf(" from %s to %s? [yes/no] ", oldsizebuf, newsizebuf);
fflush(stdout);
fgets(reply, (int)sizeof(reply), stdin);
if (strcasecmp(reply, "Yes\n")){
printf("\nNothing done\n");
exit (0);
if (strcasecmp(reply, "yes\n")){
printf("Response other than \"yes\"; aborting\n");
exit(0);
}
}