Browse Source

Use void arguments list consistently in C code

On my way, fixed a couple of cases where we had `()` in the header, and
non-empty argument list in the source file.

PUBLISHED_FROM=5519526cf84e2bbd425a726fcc112fea1a95cbf1
Dmitry Frank 9 years ago
parent
commit
511744b0af
1 changed files with 2 additions and 2 deletions
  1. 2 2
      unit_test.c

+ 2 - 2
unit_test.c

@@ -290,7 +290,7 @@ static const char *test_json_printf(void) {
   return NULL;
 }
 
-static const char *test_system() {
+static const char *test_system(void) {
   char buf[2020];
   uint64_t u = 0xdeadbeeffee1dead;
   int64_t d = (int64_t) u;
@@ -329,7 +329,7 @@ static void cb(void *data,
       );
 }
 
-static const char *test_callback_api() {
+static const char *test_callback_api(void) {
   const char *s =
     "{\"c\":[\"foo\", \"bar\", {\"a\":9, \"b\": \"x\"}], "
     "\"mynull\": null, \"mytrue\": true, \"myfalse\": false}";