summaryrefslogtreecommitdiff
path: root/functions.h
diff options
context:
space:
mode:
Diffstat (limited to 'functions.h')
-rw-r--r--functions.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions.h b/functions.h
index 29518aa..d56a295 100644
--- a/functions.h
+++ b/functions.h
@@ -13,6 +13,7 @@
#include <arpa/inet.h>
#include <sys/select.h>
#include <stdarg.h>
+#include <limits.h>
#define MAXDATASIZE 513 // max number of bytes we can get at once (RFC2812 says 512, plus one for null terminator)
@@ -20,6 +21,9 @@
#define OK 0
#define NO_INPUT 1
#define TOO_LONG 2
+#define DEBUG_NONE 0
+#define DEBUG_FILE 1
+#define DEBUG_SCREEN 2
// Print debugging output if enabled
void debugprint(char *format, ...);