diff options
author | Miloslav Trmač <mitr@redhat.com> | 2012-07-30 09:15:57 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2012-07-30 09:15:57 +0200 |
commit | cb24527489856a4dda8178e55fafa5b1a0db7cad (patch) | |
tree | fe2d2c085e22ea1de9751d70a4a7eaf0ae9f1ae9 | |
parent | c2e6bca5d1a66f0d804b67ac4775f99ee926df0b (diff) | |
download | libumberlog-cb24527489856a4dda8178e55fafa5b1a0db7cad.tar.gz libumberlog-cb24527489856a4dda8178e55fafa5b1a0db7cad.tar.xz libumberlog-cb24527489856a4dda8178e55fafa5b1a0db7cad.zip |
Add prototypes to old_*
to minimize the risk of type mistakes.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
-rw-r--r-- | lib/umberlog.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/umberlog.c b/lib/umberlog.c index 69f4c3a..9258f21 100644 --- a/lib/umberlog.c +++ b/lib/umberlog.c @@ -51,10 +51,10 @@ #include "umberlog.h" #include "buffer.h" -static void (*old_syslog) (); -static void (*old_vsyslog) (); -static void (*old_openlog) (); -static void (*old_closelog) (); +static void (*old_syslog) (int priority, const char *message, ...); +static void (*old_vsyslog) (int priority, const char *message, va_list ap); +static void (*old_openlog) (const char *ident, int option, int facility); +static void (*old_closelog) (void); static void ul_init (void) __attribute__((constructor)); static void ul_finish (void) __attribute__((destructor)); |