Replace fprintf by errx for consistency

Signed-off-by: Antonio Niño Díaz <antonio_nd@outlook.com>
This commit is contained in:
Antonio Niño Díaz
2017-08-21 23:35:56 +01:00
parent 0c71f5a4e9
commit f3b475453f
2 changed files with 4 additions and 8 deletions

View File

@@ -77,8 +77,7 @@ main(int argc, char *argv[])
errx(1, "Invalid argument for option 'p'");
}
if (fillchar < 0 || fillchar > 0xFF) {
fprintf(stderr, "Argument for option 'p' must be between 0 and 0xFF");
exit(1);
errx(1, "Argument for option 'p' must be between 0 and 0xFF");
}
break;
case 's':