]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fb-temp.c
Rewritten shake down of bucket file.
[libucw.git] / lib / fb-temp.c
index 95edf16619020a3d282f6c12a04d5b5b640b3eb3..bdaf831d5db4b12d4f4ed81076b0502b089cbad5 100644 (file)
@@ -2,6 +2,9 @@
  *     Sherlock Library -- Temporary Fastbufs
  *
  *     (c) 2002 Martin Mares <mj@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
 #include "lib/lib.h"
@@ -33,6 +36,6 @@ bopen_tmp(uns bufsize)
 
   sprintf(buf, temp_template, (int) getpid(), temp_counter++);
   f = bopen(buf, O_RDWR | O_CREAT | O_EXCL, bufsize);
-  f->is_temp_file = 1;
+  bconfig(f, BCONFIG_IS_TEMP_FILE, 1);
   return f;
 }