From 6f3e23c50e7dcd2e16bfc41f83dfac1fa961d5c3 Mon Sep 17 00:00:00 2001 From: pfelt Date: Sun, 15 Feb 2009 23:00:45 +0000 Subject: [PATCH] -- fixed a couple of implicit declarations which should help the opensuse build process --- import/log4c/log4c/appender.h | 3 +++ import/log4c/log4c/appender_type_syslog.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/import/log4c/log4c/appender.h b/import/log4c/log4c/appender.h index 56197f0..187f693 100644 --- a/import/log4c/log4c/appender.h +++ b/import/log4c/log4c/appender.h @@ -23,6 +23,9 @@ #include #include #include +#include +#include +#include __LOG4C_BEGIN_DECLS diff --git a/import/log4c/log4c/appender_type_syslog.c b/import/log4c/log4c/appender_type_syslog.c index 97965d7..683f0d4 100644 --- a/import/log4c/log4c/appender_type_syslog.c +++ b/import/log4c/log4c/appender_type_syslog.c @@ -64,7 +64,7 @@ static int syslog_append(log4c_appender_t* this, // we want to remove any '%' formatting characters from the // log string, since syslog will try to interpolate them source = a_event->evt_rendered_msg; - dest = (char *)malloc((strlen(source)*2) + 1); + dest = (char *)sd_malloc((strlen(source)*2) + 1); if (dest == NULL) return -1; // out of memory *dest = '\0'; origdest = dest;