diff options
author | Simon Rettberg | 2017-05-30 15:58:37 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-05-30 15:58:37 +0200 |
commit | 4c6cc1ebdd4c32fa144a956038f33c560e964cdc (patch) | |
tree | 1aace276dba73c89d3f2d90ae471e1cef4cfbeb9 | |
parent | Fix inverted debug level check (diff) | |
download | ldadp-4c6cc1ebdd4c32fa144a956038f33c560e964cdc.tar.gz ldadp-4c6cc1ebdd4c32fa144a956038f33c560e964cdc.tar.xz ldadp-4c6cc1ebdd4c32fa144a956038f33c560e964cdc.zip |
Make pretty
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | helper.c | 4 | ||||
-rw-r--r-- | helper.h | 2 |
3 files changed, 7 insertions, 5 deletions
@@ -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 @@ -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); @@ -34,7 +34,7 @@ typedef enum { extern DebugLevel _debugLevel; -void plog(const DebugLevel debugLevel, char *args, ...); +void plog(const DebugLevel messageLevel, char *args, ...); #endif |