git » nmdb » commit a6d3fbc

Rename db.* to dbloop.*.

author Alberto Bertogli
2007-07-30 16:17:35 UTC
committer Alberto Bertogli
2007-07-30 16:17:35 UTC
parent 33fd76934d95cb6735f5a57fcf309864be16afe5

Rename db.* to dbloop.*.

db.h conflicts with BDB's header, so we rename db.* to dbloop.* to avoid
the clash.

Signed-off-by: Alberto Bertogli <albertito@gmail.com>

nmdb/Makefile +1 -1
nmdb/{db.c => dbloop.c} +1 -1
nmdb/{db.h => dbloop.h} +2 -2
nmdb/main.c +1 -1

diff --git a/nmdb/Makefile b/nmdb/Makefile
index 164a66e..8d0c899 100644
--- a/nmdb/Makefile
+++ b/nmdb/Makefile
@@ -29,7 +29,7 @@ endif
 PREFIX=/usr/local
 
 
-OBJS = cache.o db.o queue.o net.o parse.o main.o
+OBJS = cache.o dbloop.o queue.o net.o parse.o main.o
 LIBS = -levent -lpthread -lrt
 
 
diff --git a/nmdb/db.c b/nmdb/dbloop.c
similarity index 99%
rename from nmdb/db.c
rename to nmdb/dbloop.c
index 9584b31..11eed52 100644
--- a/nmdb/db.c
+++ b/nmdb/dbloop.c
@@ -7,7 +7,7 @@
 #include <stdlib.h>		/* malloc()/free() */
 
 #include "common.h"
-#include "db.h"
+#include "dbloop.h"
 #include "be.h"
 #include "queue.h"
 #include "net-const.h"
diff --git a/nmdb/db.h b/nmdb/dbloop.h
similarity index 81%
rename from nmdb/db.h
rename to nmdb/dbloop.h
index c764d6a..a4a9d63 100644
--- a/nmdb/db.h
+++ b/nmdb/dbloop.h
@@ -1,6 +1,6 @@
 
-#ifndef _DB_H
-#define _DB_H
+#ifndef _DBLOOP_H
+#define _DBLOOP_H
 
 #include <pthread.h>		/* for pthread_t */
 #include "be.h"			/* for db_t */
diff --git a/nmdb/main.c b/nmdb/main.c
index 11935d2..3980974 100644
--- a/nmdb/main.c
+++ b/nmdb/main.c
@@ -8,7 +8,7 @@
 
 #include "cache.h"
 #include "net.h"
-#include "db.h"
+#include "dbloop.h"
 #include "common.h"
 #include "net-const.h"