]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/tempfile.c
xtypes&tableprinter: added parsing of size and tests
[libucw.git] / ucw / tempfile.c
index 76d9cd388d99fe3933bf7bfff404fc3b968ca30a..cb0914ac12f42908fc98f8f310263e5e751ca424 100644 (file)
@@ -8,11 +8,11 @@
  *     of the GNU Lesser General Public License.
  */
 
-#include "ucw/lib.h"
-#include "ucw/conf.h"
-#include "ucw/threads.h"
-#include "ucw/lfs.h"
-#include "ucw/fastbuf.h"
+#include <ucw/lib.h>
+#include <ucw/conf.h>
+#include <ucw/threads.h>
+#include <ucw/io.h>
+#include <ucw/fastbuf.h>
 
 #include <stdio.h>
 #include <unistd.h>
@@ -52,7 +52,7 @@ temp_file_name(char *name_buf, int *open_flags)
       struct timeval tv;
       if (gettimeofday(&tv, NULL))
        die("gettimeofday() failed: %m");
-      len = snprintf(name_buf, TEMP_FILE_NAME_LEN, "%s/%s%u", dir, temp_prefix, (uns) tv.tv_usec);
+      len = snprintf(name_buf, TEMP_FILE_NAME_LEN, "%s/%s%u", dir, temp_prefix, (uint) tv.tv_usec);
       if (open_flags)
        *open_flags = O_EXCL;
     }
@@ -88,7 +88,7 @@ open_tmp(char *name_buf, int open_flags, int mode)
 
 #ifdef TEST
 
-#include "ucw/getopt.h"
+#include <ucw/getopt.h>
 
 int main(int argc, char **argv)
 {