Compare commits
No commits in common. "70bbdbd8f5683708bde8563e6b6381093c68dc30" and "974aae2ebe2418b6301245a109dac14df35d5269" have entirely different histories.
70bbdbd8f5
...
974aae2ebe
|
@ -9,7 +9,6 @@ MAKE_INSTALL_TARGETS=('install-nokeys')
|
|||
CONFIGURE_OPTIONS=(
|
||||
'--sysconfdir=/etc'
|
||||
'--sbindir=/usr/bin'
|
||||
'--disable-fd-passing'
|
||||
'CFLAGS=-Wno-deprecated-declarations'
|
||||
)
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <syslog.h>
|
||||
|
||||
static const char* s_ident = nullptr;
|
||||
|
@ -21,15 +20,11 @@ void syslog(int priority, const char* format, ...)
|
|||
{
|
||||
(void)priority;
|
||||
if (s_ident)
|
||||
fprintf(s_log_file, "%s: ", s_ident);
|
||||
fprintf(s_log_file, "%s", s_ident);
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
vfprintf(s_log_file, format, args);
|
||||
va_end(args);
|
||||
|
||||
const size_t format_len = strlen(format);
|
||||
if (format_len && format[format_len - 1] != '\n')
|
||||
fputc('\n', s_log_file);
|
||||
}
|
||||
|
||||
void closelog()
|
||||
|
|
Loading…
Reference in New Issue