*
*/
-#include "busybox.h"
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
+#include "busybox.h"
#if !defined BB_SYSLOGD
#define SYSLOG_NAMES
* structures. Argh.... bad libc, bad, bad...
*/
#include <sys/syslog.h>
+
typedef struct _code {
char *c_name;
int c_val;
*s = '\0';
fac = decode(save, facilitynames);
if (fac < 0)
- error_msg_and_die("unknown facility name: %s\n", save);
+ error_msg_and_die("unknown facility name: %s", save);
*s++ = '.';
} else {
s = save;
}
lev = decode(s, prioritynames);
if (lev < 0)
- error_msg_and_die("unknown priority name: %s\n", save);
+ error_msg_and_die("unknown priority name: %s", save);
return ((lev & LOG_PRIMASK) | (fac & LOG_FACMASK));
}
strncpy(name, optarg, sizeof(name));
break;
default:
- usage(logger_usage);
+ show_usage();
}
}