Browse code

ffserver: reflow http_vlog()

Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>

Reynaldo H. Verdejo Pinochet authored on 2015/01/24 13:10:35
Showing 1 changed files
... ...
@@ -314,7 +314,10 @@ static char *ctime1(char *buf2, int buf_size)
314 314
 static void http_vlog(const char *fmt, va_list vargs)
315 315
 {
316 316
     static int print_prefix = 1;
317
-    if (logfile) {
317
+
318
+    if (!logfile)
319
+        return;
320
+
318 321
         if (print_prefix) {
319 322
             char buf[32];
320 323
             ctime1(buf, sizeof(buf));
... ...
@@ -323,7 +326,6 @@ static void http_vlog(const char *fmt, va_list vargs)
323 323
         print_prefix = strstr(fmt, "\n") != NULL;
324 324
         vfprintf(logfile, fmt, vargs);
325 325
         fflush(logfile);
326
-    }
327 326
 }
328 327
 
329 328
 #ifdef __GNUC__