X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=miscutils%2Fmountpoint.c;h=5647e4c5b289f96e4af31e880a05d1310433d3b6;hb=bfc3d82256c45fb1e6e04ca85fac8a65b34b72a1;hp=1f17adadcf4beb772a7b7098c90318113825c13e;hpb=fe7cd642b0b732f5d41403c2f6983ad676b69dd9;p=oweals%2Fbusybox.git diff --git a/miscutils/mountpoint.c b/miscutils/mountpoint.c index 1f17adadc..5647e4c5b 100644 --- a/miscutils/mountpoint.c +++ b/miscutils/mountpoint.c @@ -11,7 +11,7 @@ #include "libbb.h" -int mountpoint_main(int argc, char **argv); +int mountpoint_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int mountpoint_main(int argc, char **argv) { struct stat st; @@ -34,7 +34,7 @@ int mountpoint_main(int argc, char **argv) return EXIT_SUCCESS; } else { if (opt & OPT_q) - putchar('\n'); + bb_putchar('\n'); else bb_error_msg("%s: not a block device", arg); } @@ -61,6 +61,6 @@ int mountpoint_main(int argc, char **argv) } } if (!(opt & OPT_q)) - bb_perror_msg("%s", arg); + bb_simple_perror_msg(arg); return EXIT_FAILURE; }