]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fb-temp.c
CGI: make_out_args() handles undefs correctly.
[libucw.git] / lib / fb-temp.c
index 7162fd2e4825c985034796f732b9ff501c58e28f..65398c154eb7ef447d675f746f6c8a738126d9c5 100644 (file)
 #include "lib/fastbuf.h"
 #include "lib/threads.h"
 
+#include <stdio.h>
 #include <unistd.h>
 #include <sys/fcntl.h>
 
-static byte *temp_prefix = "/tmp/temp";
+static char *temp_prefix = "/tmp/temp";
 
 static struct cf_section temp_config = {
   CF_ITEMS {
@@ -30,7 +31,7 @@ static void CONSTRUCTOR temp_global_init(void)
 }
 
 void
-temp_file_name(byte *buf)
+temp_file_name(char *buf)
 {
   struct ucwlib_context *ctx = ucwlib_thread_context();
   int cnt = ++ctx->temp_counter;
@@ -44,7 +45,7 @@ temp_file_name(byte *buf)
 struct fastbuf *
 bopen_tmp(uns buflen)
 {
-  byte buf[TEMP_FILE_NAME_LEN];
+  char buf[TEMP_FILE_NAME_LEN];
   struct fastbuf *f;
 
   temp_file_name(buf);