diff options
author | Bastien Dejean <nihilhill@gmail.com> | 2015-12-14 15:05:46 +0100 |
---|---|---|
committer | Bastien Dejean <nihilhill@gmail.com> | 2015-12-14 15:05:46 +0100 |
commit | e4d526a4033c4548dc3f9ade2ec14ff87b9455ea (patch) | |
tree | 1d40ca009f0f75b00c93370ebaf94e15684d76ba | |
parent | fdceddf6854af498e192427d70bcc9c2e98a1729 (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.c | 1 | ||||
-rw-r--r-- | example/simple.c | 1 | ||||
-rw-r--r-- | jsmn.c | 2 |
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" @@ -1,5 +1,3 @@ -#include <stdlib.h> - #include "jsmn.h" /** |