Clean up style in print_state(..) and pager_printf(..)

No functional change intended.

MFC after:	3 days
This commit is contained in:
ngie 2017-08-01 05:16:14 +00:00
parent 03eee82f18
commit f4a5c35feb

View File

@ -794,6 +794,7 @@ pager_printf(const char *fmt, ...)
va_start(args, fmt);
vsprintf(line, fmt, args);
va_end(args);
return (pager_output(line));
}
@ -804,15 +805,15 @@ pager_printf(const char *fmt, ...)
static int
print_state(int indent, const char *name, vdev_state_t state)
{
int i;
char buf[512];
int i;
buf[0] = 0;
for (i = 0; i < indent; i++)
strcat(buf, " ");
strcat(buf, name);
return (pager_printf(STATUS_FORMAT, buf, state_name(state)));
}
static int