Fix the return type for pager_output(..) in bootparttest and zfsboottest

pager_output(..) has always returned int. For some reason (probably the
clang 5.0 update), this mismatch now results in an error with CC=clang.

MFC after:	1 week
This commit is contained in:
Enji Cooper 2017-08-01 05:29:36 +00:00
parent d96899bad0
commit 7e299eacab
2 changed files with 4 additions and 4 deletions

View File

@ -44,9 +44,9 @@ Free(void *ptr, const char *file, int line)
return (free(ptr));
}
void
int
pager_output(const char *s)
{
printf("%s", s);
return (printf("%s", s));
}

View File

@ -43,11 +43,11 @@
#define NBBY 8
void
int
pager_output(const char *line)
{
fprintf(stderr, "%s", line);
return (fprintf(stderr, "%s", line));
}
#define ZFS_TEST