]> mj.ucw.cz Git - libucw.git/blobdiff - lib/db-test.c
bugfix in area-based image scaling
[libucw.git] / lib / db-test.c
index b1694223e99f12114a97162acfddd70c1ca72559..d0f3a5eb4ab0da13da84f6b8566acc9145500d96 100644 (file)
@@ -1,18 +1,21 @@
 /*
 /*
- *     Sherlock Library -- Database Manager -- Tests and Benchmarks
+ *     UCW Library -- Database Manager -- Tests and Benchmarks
  *
  *
- *     (c) 1999 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
+ *     (c) 1999 Martin Mares <mj@ucw.cz>
+ *
+ *     This software may be freely distributed and used according to the terms
+ *     of the GNU Lesser General Public License.
  */
 
 #if 1
  */
 
 #if 1
-#include "db.c"
+#include "lib/db.c"
 #define NAME "SDBM"
 #else
 #define NAME "SDBM"
 #else
-#include "db-emul.c"
+#include "lib/db-emul.c"
 #define NAME "GDBM"
 #endif
 
 #define NAME "GDBM"
 #endif
 
-#include <getopt.h>
+#include <stdlib.h>
 #include <unistd.h>
 #include <stdarg.h>
 #include <sys/stat.h>
 #include <unistd.h>
 #include <stdarg.h>
 #include <sys/stat.h>
@@ -260,7 +263,7 @@ int main(int argc, char **argv)
   char *ch;
   int dont_delete = 0;
 
   char *ch;
   int dont_delete = 0;
 
-  initlog("dbtest");
+  log_init("dbtest");
   setvbuf(stdout, NULL, _IONBF, 0);
   setvbuf(stderr, NULL, _IONBF, 0);
   while ((c = getopt(argc, argv, "c:p:k:n:d:vsStF")) >= 0)
   setvbuf(stdout, NULL, _IONBF, 0);
   setvbuf(stderr, NULL, _IONBF, 0);
   while ((c = getopt(argc, argv, "c:p:k:n:d:vsStF")) >= 0)