]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
move aioClose() init to disk_init
authorwessels <>
Wed, 18 Feb 1998 06:04:03 +0000 (06:04 +0000)
committerwessels <>
Wed, 18 Feb 1998 06:04:03 +0000 (06:04 +0000)
src/disk.cc
src/main.cc
src/protos.h

index 2e843fb8056ee8ddd9f7aefd182d69bd4ead70e3..fb05b0e265b91d9a55abdb3fa9373b2b26c2dcb6 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: disk.cc,v 1.104 1998/02/10 00:55:03 wessels Exp $
+ * $Id: disk.cc,v 1.105 1998/02/17 23:04:03 wessels Exp $
  *
  * DEBUG: section 6     Disk I/O Routines
  * AUTHOR: Harvest Derived
@@ -126,11 +126,12 @@ static PF diskHandleRead;
 static PF diskHandleWrite;
 static void file_open_complete(void *, int, int);
 
-/* initialize table */
-int
+void
 disk_init(void)
 {
-    return 0;
+#if USE_ASYNC_IO
+    aioClose(dup(0));
+#endif
 }
 
 /* Open a disk file. Return a file descriptor */
index cedd78b3b51705fcb934d0fa7c56289d61c722a8..62f108b23023eb2c0ce79dd76821e4fc1b372290 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: main.cc,v 1.220 1998/02/17 19:12:06 wessels Exp $
+ * $Id: main.cc,v 1.221 1998/02/17 23:04:04 wessels Exp $
  *
  * DEBUG: section 1     Startup and Main Loop
  * AUTHOR: Harvest Derived
@@ -436,9 +436,6 @@ mainInitialize(void)
        memInit();              /* memInit must go before at least redirect */
        disk_init();            /* disk_init must go before ipcache_init() */
     }
-#if USE_ASYNC_IO
-    aioClose(dup(0));          /* cough */
-#endif
     ipcache_init();
     fqdncache_init();
     dnsOpenServers();
index 2415f4c6d48fb1ec3c8c9bbf7a9fa38d35aaf300..ac4256396d97a3f210f554df4c92547c31905147 100644 (file)
@@ -126,7 +126,7 @@ extern int file_open(const char *path, int mode, FOCB *, void *callback_data, vo
 extern void file_close(int fd);
 extern void file_write(int, off_t, void *, int len, DWCB *, void *, FREE *);
 extern int file_read(int, char *, int, off_t, DRCB *, void *);
-extern int disk_init(void);
+extern void disk_init(void);
 extern int diskWriteIsComplete(int);
 
 extern void dnsShutdownServers(void);