diff options
Diffstat (limited to 'urunlevel/runlevel/log_warning_msg.c')
-rw-r--r-- | urunlevel/runlevel/log_warning_msg.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/urunlevel/runlevel/log_warning_msg.c b/urunlevel/runlevel/log_warning_msg.c index 81ef204..2737e11 100644 --- a/urunlevel/runlevel/log_warning_msg.c +++ b/urunlevel/runlevel/log_warning_msg.c | |||
@@ -3,6 +3,9 @@ | |||
3 | * | 3 | * |
4 | * Copyright (C) 2005 by David Seikel won_fang@yahoo.com.au | 4 | * Copyright (C) 2005 by David Seikel won_fang@yahoo.com.au |
5 | * | 5 | * |
6 | * Clean room implementation of LSB init.d specs. | ||
7 | * I didn't steal any of this, honest B-). | ||
8 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | 9 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License as published by | 10 | * it under the terms of the GNU General Public License as published by |
8 | * the Free Software Foundation; either version 2 of the License, or | 11 | * the Free Software Foundation; either version 2 of the License, or |
@@ -28,7 +31,7 @@ | |||
28 | 31 | ||
29 | void log_warning_msg(char *message) | 32 | void log_warning_msg(char *message) |
30 | { | 33 | { |
31 | bb_perror_msg("Warning - %s\n", message); | 34 | bb_error_msg("Warning - %s\n", message); |
32 | } | 35 | } |
33 | 36 | ||
34 | 37 | ||
@@ -41,14 +44,13 @@ log_warning_msg "message" | |||
41 | 44 | ||
42 | int log_warning_msg_main(int argc, char **argv) | 45 | int log_warning_msg_main(int argc, char **argv) |
43 | { | 46 | { |
44 | char *message = argv_cat(argc, argv); | 47 | char *message = argv_cat(argc, argv); |
45 | 48 | ||
46 | if (message != NULL) | 49 | if (message != NULL) { |
47 | { | 50 | log_warning_msg(message); |
48 | log_warning_msg(message); | ||
49 | 51 | ||
50 | free(message); | 52 | free(message); |
51 | return EXIT_SUCCESS; | 53 | return EXIT_SUCCESS; |
52 | } | 54 | } |
53 | return EXIT_FAILURE; | 55 | return EXIT_FAILURE; |
54 | } | 56 | } |