diff options
| author | Gergely Nagy <algernon@balabit.hu> | 2012-03-21 12:47:51 +0100 |
|---|---|---|
| committer | Gergely Nagy <algernon@balabit.hu> | 2012-03-21 12:47:51 +0100 |
| commit | 70e16501eae0d5990df75d6a57f60cb827754d74 (patch) | |
| tree | d714c3a225c7dad225fea6f627c189beb5039685 /lib | |
| parent | 518b38dcbcaf49d75984d2e7ea9a2235843b0966 (diff) | |
| download | libumberlog-70e16501eae0d5990df75d6a57f60cb827754d74.tar.gz libumberlog-70e16501eae0d5990df75d6a57f60cb827754d74.tar.xz libumberlog-70e16501eae0d5990df75d6a57f60cb827754d74.zip | |
Export the syslog() wrapper as cee_legacy_syslog()
For documentation purposes, and for clarity, export the syslog()
wrappers under a sensible name.
Signed-off-by: Gergely Nagy <algernon@balabit.hu>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/cee-syslog.c | 10 | ||||
| -rw-r--r-- | lib/cee-syslog.h | 4 |
2 files changed, 9 insertions, 5 deletions
diff --git a/lib/cee-syslog.c b/lib/cee-syslog.c index 0256164..bac8435 100644 --- a/lib/cee-syslog.c +++ b/lib/cee-syslog.c @@ -268,18 +268,18 @@ cee_vsyslog (int priority, const char *msg_format, va_list ap) } void -_cee_old_vsyslog (int priority, const char *msg_format, va_list ap) +cee_legacy_vsyslog (int priority, const char *msg_format, va_list ap) { _cee_vsyslog (0, priority, msg_format, ap); } void -_cee_old_syslog (int priority, const char *msg_format, ...) +cee_legacy_syslog (int priority, const char *msg_format, ...) { va_list ap; va_start (ap, msg_format); - _cee_old_vsyslog (priority, msg_format, ap); + cee_legacy_vsyslog (priority, msg_format, ap); va_end (ap); } @@ -295,10 +295,10 @@ void openlog (const char *ident, int option, int facility) __attribute__((alias ("cee_openlog"))); void syslog (int priority, const char *msg_format, ...) - __attribute__((alias ("_cee_old_syslog"))); + __attribute__((alias ("cee_legacy_syslog"))); void vsyslog (int priority, const char *msg_format, va_list ap) - __attribute__((alias ("_cee_old_vsyslog"))); + __attribute__((alias ("cee_legacy_vsyslog"))); int setlogmask (int mask) __attribute__((alias ("cee_setlogmask"))); diff --git a/lib/cee-syslog.h b/lib/cee-syslog.h index bba25c4..70ac0cf 100644 --- a/lib/cee-syslog.h +++ b/lib/cee-syslog.h @@ -40,7 +40,11 @@ char *cee_vformat (int priority, const char *msg_format, va_list ap); void cee_openlog (const char *ident, int option, int facility); int cee_setlogmask (int mask); + void cee_syslog (int priority, const char *msg_format, ...); void cee_vsyslog (int priority, const char *msg_format, va_list ap); +void cee_legacy_syslog (int priority, const char *msg_format, ...); +void cee_legacy_vsyslog (int priority, const char *msg_format, va_list ap); + #endif |
