OSSP CVS Repository

ossp - Check-in [4516]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4516
Date: 2004-Apr-22 12:30:31 (local)
2004-Apr-22 10:30:31 (UTC)
User:thl
Branch:
Comment: relocate vsyslog() function to avoid wrong implicit declaration. Reported by Karl Vogel
Tickets:
Inspections:
Files:
ossp-pkg/fsl/ChangeLog      1.29 -> 1.30     5 inserted, 0 deleted
ossp-pkg/fsl/fsl.c      1.66 -> 1.67     15 inserted, 15 deleted

ossp-pkg/fsl/ChangeLog 1.29 -> 1.30

--- ChangeLog    2004/04/22 09:32:50     1.29
+++ ChangeLog    2004/04/22 10:30:31     1.30
@@ -10,6 +10,11 @@
 
   Changes between 1.4.0 and 1.5a1 (22-Apr-2004)
 
+    *) Relocate vsyslog() function to avoid wrong implicit declaration
+       on platforms not providing any vsyslog(3), i.e. Tru64. Reported
+       by Karl Vogel.
+       [Thomas Lotterer <thomas@lotterer.net>]
+
     *) Improve name space cleanness embedding a OSSP pcre which offers
        PREFIX logic and modify configure.ac to pass down the prefix.
        [Thomas Lotterer <thomas@lotterer.net>]


ossp-pkg/fsl/fsl.c 1.66 -> 1.67

--- fsl.c        2004/01/09 10:48:27     1.66
+++ fsl.c        2004/04/22 10:30:31     1.67
@@ -927,21 +927,6 @@
     return oldmask;
 }
 
-/* faked POSIX API function syslog(3) */
-void syslog(int priority, const char *message, ...)
-{
-    va_list args;
-
-    /* tracing */
-    fsldebug(L2_LEVEL_TRACE, "fsl in syslog(3); go ahead using vsyslog(3)");
-
-    /* wrap around vsyslog(3) */
-    va_start(args, message);
-    vsyslog(priority, message, args);
-    va_end(args);
-    return;
-}
-
 /* faked POSIX API function vsyslog(3) */
 #ifdef HAVE_VSYSLOG_USVALIST
 void vsyslog(int priority, const char *fmt, __va_list args)
@@ -1004,3 +989,18 @@
     return;
 }
 
+/* faked POSIX API function syslog(3) */
+void syslog(int priority, const char *message, ...)
+{
+    va_list args;
+
+    /* tracing */
+    fsldebug(L2_LEVEL_TRACE, "fsl in syslog(3); go ahead using vsyslog(3)");
+
+    /* wrap around vsyslog(3) */
+    va_start(args, message);
+    vsyslog(priority, message, args);
+    va_end(args);
+    return;
+}
+

CVSTrac 2.0.1