diff options
-rw-r--r-- | include/libbb.h | 2 | ||||
-rw-r--r-- | init/halt.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index eefc13261..3e21cbf90 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -887,7 +887,7 @@ extern void bb_error_msg_and_die(const char *s, ...) __attribute__ ((noreturn, f | |||
887 | extern void bb_perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC; | 887 | extern void bb_perror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC; |
888 | extern void bb_simple_perror_msg(const char *s) FAST_FUNC; | 888 | extern void bb_simple_perror_msg(const char *s) FAST_FUNC; |
889 | extern void bb_perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC; | 889 | extern void bb_perror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC; |
890 | extern void bb_simple_perror_msg_and_die(const char *s) __attribute__ ((noreturn)) FAST_FUNC; | 890 | extern void bb_simple_perror_msg_and_die(const char *s) NORETURN FAST_FUNC; |
891 | extern void bb_herror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC; | 891 | extern void bb_herror_msg(const char *s, ...) __attribute__ ((format (printf, 1, 2))) FAST_FUNC; |
892 | extern void bb_herror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC; | 892 | extern void bb_herror_msg_and_die(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))) FAST_FUNC; |
893 | extern void bb_perror_nomsg_and_die(void) NORETURN FAST_FUNC; | 893 | extern void bb_perror_nomsg_and_die(void) NORETURN FAST_FUNC; |
diff --git a/init/halt.c b/init/halt.c index e852b870e..62f93c5cd 100644 --- a/init/halt.c +++ b/init/halt.c | |||
@@ -95,6 +95,6 @@ int halt_main(int argc UNUSED_PARAM, char **argv) | |||
95 | rc = reboot(magic[which]); | 95 | rc = reboot(magic[which]); |
96 | 96 | ||
97 | if (rc) | 97 | if (rc) |
98 | bb_error_msg("no"); | 98 | bb_perror_nomsg_and_die(); |
99 | return rc; | 99 | return rc; |
100 | } | 100 | } |