[xiph-commits] r14218 - icecast/trunk/icecast/src

karl at svn.xiph.org karl at svn.xiph.org
Thu Nov 22 18:48:37 PST 2007


Author: karl
Date: 2007-11-22 18:48:37 -0800 (Thu, 22 Nov 2007)
New Revision: 14218

Modified:
   icecast/trunk/icecast/src/logging.c
Log:
fix long standing copy+paste error.


Modified: icecast/trunk/icecast/src/logging.c
===================================================================
--- icecast/trunk/icecast/src/logging.c	2007-11-23 01:02:47 UTC (rev 14217)
+++ icecast/trunk/icecast/src/logging.c	2007-11-23 02:48:37 UTC (rev 14218)
@@ -32,7 +32,7 @@
 
 #ifdef _WIN32
 #define snprintf _snprintf
-#define vsnprintf _vsnprintf
+#define vsnprintf _vsnprintf
 #endif
 
 /* the global log descriptors */
@@ -99,7 +99,7 @@
 **
 ** ADDR = client->con->ip
 ** IDENT = always - , we don't support it because it's useless
-** USER = client->username    
+** USER = client->username
 ** DATE = _make_date(client->con->con_time)
 ** REQUEST = build from client->parser
 ** CODE = client->respcode
@@ -186,7 +186,7 @@
 #endif
     /* This format MAY CHANGE OVER TIME.  We are looking into finding a good
        standard format for this, if you have any ideas, please let us know */
-    log_write_direct (playlistlog, "%s|%s|%d|%s",
+    log_write_direct (playlistlog, "%s|%s|%ld|%s",
              datebuf,
              mount,
              listeners,
@@ -227,8 +227,8 @@
         char fn_error[FILENAME_MAX];
         snprintf (fn_error, FILENAME_MAX, "%s%s%s", config->log_dir, PATH_SEPARATOR, config->access_log);
         log_set_filename (accesslog, fn_error);
-        log_set_trigger (errorlog, config->logsize);
-        log_set_archive_timestamp(errorlog, config->logarchive);
+        log_set_trigger (accesslog, config->logsize);
+        log_set_archive_timestamp (accesslog, config->logarchive);
         log_reopen (accesslog);
     }
 
@@ -237,8 +237,8 @@
         char fn_error[FILENAME_MAX];
         snprintf (fn_error, FILENAME_MAX, "%s%s%s", config->log_dir, PATH_SEPARATOR, config->playlist_log);
         log_set_filename (playlistlog, fn_error);
-        log_set_trigger (errorlog, config->logsize);
-        log_set_archive_timestamp(errorlog, config->logarchive);
+        log_set_trigger (playlistlog, config->logsize);
+        log_set_archive_timestamp (playlistlog, config->logarchive);
         log_reopen (playlistlog);
     }
 }



More information about the commits mailing list