summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--example/jsondump.c2
-rw-r--r--example/simple.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/example/jsondump.c b/example/jsondump.c
index cf08c5ca5..4fb10fd51 100644
--- a/example/jsondump.c
+++ b/example/jsondump.c
@@ -122,5 +122,5 @@ again:
}
}
- return 0;
+ return EXIT_SUCCESS;
}
diff --git a/example/simple.c b/example/simple.c
index de4488383..aeb9cf47d 100644
--- a/example/simple.c
+++ b/example/simple.c
@@ -8,7 +8,7 @@
* tokens is predictable.
*/
-const char *JSON_STRING =
+static const char *JSON_STRING =
"{\"user\": \"johndoe\", \"admin\": false, \"uid\": 1000,\n "
"\"groups\": [\"users\", \"wheel\", \"audio\", \"video\"]}";
@@ -72,5 +72,5 @@ int main() {
JSON_STRING + t[i].start);
}
}
- return 0;
+ return EXIT_SUCCESS;
}