summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--helper.c4
-rw-r--r--helper.h2
3 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 05af089..2f005ee 100644
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,9 @@ LIBS+=-g -lowfat -lssl -lcrypto
%: %.c
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) ${LIBS}
-ldadp: tmpbuffer.o ini.o client.o server.o helper.o proxy.o epoll.o openssl.o ldap.a asn1.a
+ldadp: tmpbuffer.o ini.o client.o server.o helper.o proxy.o epoll.o openssl.o \
+ldap.a asn1.a \
+types.h epoll.h client.h server.h helper.h
.PHONY: clean tar
clean:
@@ -57,7 +59,7 @@ ini.o: ini.c ini.h
client.o: client.c client.h types.h
server.o: server.c server.h types.h
helper.o: helper.c helper.h types.h
-proxy.o: proxy.c proxy.h types.h
+proxy.o: proxy.c proxy.h types.h helper.h
epoll.o: epoll.c epoll.h types.h
openssl.o: openssl.c openssl.h types.h
diff --git a/helper.c b/helper.c
index 1bd12bc..c7b4aaf 100644
--- a/helper.c
+++ b/helper.c
@@ -203,9 +203,9 @@ void helper_printfilter(struct Filter* f)
putchar('\n');
}
-void plog(const DebugLevel debugLevel, char *args, ...)
+void plog(const DebugLevel messageLevel, char *args, ...)
{
- if (debugLevel > _debugLevel) return;
+ if (messageLevel > _debugLevel) return;
va_list argList;
va_start(argList, args);
vprintf(args, argList);
diff --git a/helper.h b/helper.h
index 17d407e..f2c895b 100644
--- a/helper.h
+++ b/helper.h
@@ -34,7 +34,7 @@ typedef enum {
extern DebugLevel _debugLevel;
-void plog(const DebugLevel debugLevel, char *args, ...);
+void plog(const DebugLevel messageLevel, char *args, ...);
#endif