summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Dejean <nihilhill@gmail.com>2015-12-14 15:05:46 +0100
committerBastien Dejean <nihilhill@gmail.com>2015-12-14 15:05:46 +0100
commite4d526a4033c4548dc3f9ade2ec14ff87b9455ea (patch)
tree1d40ca009f0f75b00c93370ebaf94e15684d76ba
parentfdceddf6854af498e192427d70bcc9c2e98a1729 (diff)
Fix deheader warnings
Prior to this commit the output of deheader was: remove <stdlib.h> from ./jsmn.c in ./example/jsondump.c, realloc() portability requires <unistd.h>. in ./example/simple.c, strtol() portability requires <stdlib.h>. saw 4 files, 16 includes, 1 removable
-rw-r--r--example/jsondump.c1
-rw-r--r--example/simple.c1
-rw-r--r--jsmn.c2
3 files changed, 2 insertions, 2 deletions
diff --git a/example/jsondump.c b/example/jsondump.c
index 7be628772..cf08c5ca5 100644
--- a/example/jsondump.c
+++ b/example/jsondump.c
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "../jsmn.h"
diff --git a/example/simple.c b/example/simple.c
index a6f8e6a98..de4488383 100644
--- a/example/simple.c
+++ b/example/simple.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "../jsmn.h"
diff --git a/jsmn.c b/jsmn.c
index 2809669b3..bbf013de4 100644
--- a/jsmn.c
+++ b/jsmn.c
@@ -1,5 +1,3 @@
-#include <stdlib.h>
-
#include "jsmn.h"
/**