summaryrefslogtreecommitdiff
path: root/package/ulogd/patches/patch-src_ulogd_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-11-11 21:31:52 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-11-11 21:31:52 +0100
commitf96475863d378f095579093774518084b3c7dbf8 (patch)
treecdd8d5e93b6e178786f482d3438b6c734411512e /package/ulogd/patches/patch-src_ulogd_c
parentc4c872e9cb0b113ec0d9c45371bcad1af8bd28a8 (diff)
convert to new autotool infrastructure
Diffstat (limited to 'package/ulogd/patches/patch-src_ulogd_c')
-rw-r--r--package/ulogd/patches/patch-src_ulogd_c47
1 files changed, 47 insertions, 0 deletions
diff --git a/package/ulogd/patches/patch-src_ulogd_c b/package/ulogd/patches/patch-src_ulogd_c
new file mode 100644
index 000000000..a30a3a95a
--- /dev/null
+++ b/package/ulogd/patches/patch-src_ulogd_c
@@ -0,0 +1,47 @@
+--- ulogd-2.0.2.orig/src/ulogd.c 2013-03-01 16:45:23.000000000 +0100
++++ ulogd-2.0.2/src/ulogd.c 2013-11-11 21:27:31.000000000 +0100
+@@ -78,7 +78,7 @@
+ static FILE *logfile = NULL; /* logfile pointer */
+ static char *ulogd_logfile = NULL;
+ static const char *ulogd_configfile = ULOGD_CONFIGFILE;
+-static FILE syslog_dummy;
++static FILE *syslog_dummy;
+
+ static int info_mode = 0;
+
+@@ -420,7 +420,7 @@ void __ulogd_log(int level, char *file,
+ if (level < loglevel_ce.u.value)
+ return;
+
+- if (logfile == &syslog_dummy) {
++ if (logfile == syslog_dummy) {
+ /* FIXME: this omits the 'file' string */
+ va_start(ap, format);
+ vsyslog(ulogd2syslog_level(level), format, ap);
+@@ -941,7 +941,7 @@ static int logfile_open(const char *name
+ logfile = stdout;
+ } else if (!strcmp(name, "syslog")) {
+ openlog("ulogd", LOG_PID, LOG_DAEMON);
+- logfile = &syslog_dummy;
++ logfile = syslog_dummy;
+ } else {
+ logfile = fopen(ulogd_logfile, "a");
+ if (!logfile) {
+@@ -1070,7 +1070,7 @@ static void sigterm_handler(int signal)
+ unload_plugins();
+ #endif
+
+- if (logfile != NULL && logfile != stdout && logfile != &syslog_dummy) {
++ if (logfile != NULL && logfile != stdout && logfile != syslog_dummy) {
+ fclose(logfile);
+ logfile = NULL;
+ }
+@@ -1090,7 +1090,7 @@ static void signal_handler(int signal)
+ switch (signal) {
+ case SIGHUP:
+ /* reopen logfile */
+- if (logfile != stdout && logfile != &syslog_dummy) {
++ if (logfile != stdout && logfile != syslog_dummy) {
+ fclose(logfile);
+ logfile = fopen(ulogd_logfile, "a");
+ if (!logfile) {