]> mj.ucw.cz Git - libucw.git/blobdiff - lib/log-file.c
significant simplifications of the interface
[libucw.git] / lib / log-file.c
index 7fc58392572eef64865c5d65b5cc25fcac7d6124..c6575cc42f726d3f4b1870315aea423fa8e74acc 100644 (file)
@@ -10,7 +10,6 @@
 #include "lib/lib.h"
 
 #include <stdio.h>
-#include <stdlib.h>
 #include <string.h>
 #include <fcntl.h>
 #include <unistd.h>
@@ -85,8 +84,6 @@ log_file(byte *name)
       log_filename[0] = 0;
       log_switch();
       log_switch_hook = internal_log_switch;
-      close(0);
-      open("/dev/null", O_RDWR, 0);
     }
 }