Fossil SCM
More updates of func decls f() to f(void).
Commit
5dd632eb4472f57352dadc0a30a5097bed35fe8986aaef85ed0fefab4d12f4f7
Parent
9c5952bec35f6e2…
1 file changed
+9
-9
+9
-9
| --- src/json_tag.c | ||
| +++ src/json_tag.c | ||
| @@ -22,14 +22,14 @@ | ||
| 22 | 22 | #if INTERFACE |
| 23 | 23 | #include "json_detail.h" |
| 24 | 24 | #endif |
| 25 | 25 | |
| 26 | 26 | |
| 27 | -static cson_value * json_tag_add(); | |
| 28 | -static cson_value * json_tag_cancel(); | |
| 29 | -static cson_value * json_tag_find(); | |
| 30 | -static cson_value * json_tag_list(); | |
| 27 | +static cson_value * json_tag_add(void); | |
| 28 | +static cson_value * json_tag_cancel(void); | |
| 29 | +static cson_value * json_tag_find(void); | |
| 30 | +static cson_value * json_tag_list(void); | |
| 31 | 31 | /* |
| 32 | 32 | ** Mapping of /json/tag/XXX commands/paths to callbacks. |
| 33 | 33 | */ |
| 34 | 34 | static const JsonPageDef JsonPageDefs_Tag[] = { |
| 35 | 35 | {"add", json_tag_add, 0}, |
| @@ -42,19 +42,19 @@ | ||
| 42 | 42 | |
| 43 | 43 | /* |
| 44 | 44 | ** Implements the /json/tag family of pages/commands. |
| 45 | 45 | ** |
| 46 | 46 | */ |
| 47 | -cson_value * json_page_tag(){ | |
| 47 | +cson_value * json_page_tag(void){ | |
| 48 | 48 | return json_page_dispatch_helper(&JsonPageDefs_Tag[0]); |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | |
| 52 | 52 | /* |
| 53 | 53 | ** Impl of /json/tag/add. |
| 54 | 54 | */ |
| 55 | -static cson_value * json_tag_add(){ | |
| 55 | +static cson_value * json_tag_add(void){ | |
| 56 | 56 | cson_value * payV = NULL; |
| 57 | 57 | cson_object * pay = NULL; |
| 58 | 58 | char const * zName = NULL; |
| 59 | 59 | char const * zCheckin = NULL; |
| 60 | 60 | char fRaw = 0; |
| @@ -138,11 +138,11 @@ | ||
| 138 | 138 | |
| 139 | 139 | |
| 140 | 140 | /* |
| 141 | 141 | ** Impl of /json/tag/cancel. |
| 142 | 142 | */ |
| 143 | -static cson_value * json_tag_cancel(){ | |
| 143 | +static cson_value * json_tag_cancel(void){ | |
| 144 | 144 | char const * zName = NULL; |
| 145 | 145 | char const * zCheckin = NULL; |
| 146 | 146 | char fRaw = 0; |
| 147 | 147 | const char *zPrefix = NULL; |
| 148 | 148 | |
| @@ -188,11 +188,11 @@ | ||
| 188 | 188 | |
| 189 | 189 | |
| 190 | 190 | /* |
| 191 | 191 | ** Impl of /json/tag/find. |
| 192 | 192 | */ |
| 193 | -static cson_value * json_tag_find(){ | |
| 193 | +static cson_value * json_tag_find(void){ | |
| 194 | 194 | cson_value * payV = NULL; |
| 195 | 195 | cson_object * pay = NULL; |
| 196 | 196 | cson_value * listV = NULL; |
| 197 | 197 | cson_array * list = NULL; |
| 198 | 198 | char const * zName = NULL; |
| @@ -323,11 +323,11 @@ | ||
| 323 | 323 | ** |
| 324 | 324 | ** TODOs: |
| 325 | 325 | ** |
| 326 | 326 | ** Add -type TYPE (ci, w, e, t) |
| 327 | 327 | */ |
| 328 | -static cson_value * json_tag_list(){ | |
| 328 | +static cson_value * json_tag_list(void){ | |
| 329 | 329 | cson_value * payV = NULL; |
| 330 | 330 | cson_object * pay = NULL; |
| 331 | 331 | cson_value const * tagsVal = NULL; |
| 332 | 332 | char const * zCheckin = NULL; |
| 333 | 333 | char fRaw = 0; |
| 334 | 334 |
| --- src/json_tag.c | |
| +++ src/json_tag.c | |
| @@ -22,14 +22,14 @@ | |
| 22 | #if INTERFACE |
| 23 | #include "json_detail.h" |
| 24 | #endif |
| 25 | |
| 26 | |
| 27 | static cson_value * json_tag_add(); |
| 28 | static cson_value * json_tag_cancel(); |
| 29 | static cson_value * json_tag_find(); |
| 30 | static cson_value * json_tag_list(); |
| 31 | /* |
| 32 | ** Mapping of /json/tag/XXX commands/paths to callbacks. |
| 33 | */ |
| 34 | static const JsonPageDef JsonPageDefs_Tag[] = { |
| 35 | {"add", json_tag_add, 0}, |
| @@ -42,19 +42,19 @@ | |
| 42 | |
| 43 | /* |
| 44 | ** Implements the /json/tag family of pages/commands. |
| 45 | ** |
| 46 | */ |
| 47 | cson_value * json_page_tag(){ |
| 48 | return json_page_dispatch_helper(&JsonPageDefs_Tag[0]); |
| 49 | } |
| 50 | |
| 51 | |
| 52 | /* |
| 53 | ** Impl of /json/tag/add. |
| 54 | */ |
| 55 | static cson_value * json_tag_add(){ |
| 56 | cson_value * payV = NULL; |
| 57 | cson_object * pay = NULL; |
| 58 | char const * zName = NULL; |
| 59 | char const * zCheckin = NULL; |
| 60 | char fRaw = 0; |
| @@ -138,11 +138,11 @@ | |
| 138 | |
| 139 | |
| 140 | /* |
| 141 | ** Impl of /json/tag/cancel. |
| 142 | */ |
| 143 | static cson_value * json_tag_cancel(){ |
| 144 | char const * zName = NULL; |
| 145 | char const * zCheckin = NULL; |
| 146 | char fRaw = 0; |
| 147 | const char *zPrefix = NULL; |
| 148 | |
| @@ -188,11 +188,11 @@ | |
| 188 | |
| 189 | |
| 190 | /* |
| 191 | ** Impl of /json/tag/find. |
| 192 | */ |
| 193 | static cson_value * json_tag_find(){ |
| 194 | cson_value * payV = NULL; |
| 195 | cson_object * pay = NULL; |
| 196 | cson_value * listV = NULL; |
| 197 | cson_array * list = NULL; |
| 198 | char const * zName = NULL; |
| @@ -323,11 +323,11 @@ | |
| 323 | ** |
| 324 | ** TODOs: |
| 325 | ** |
| 326 | ** Add -type TYPE (ci, w, e, t) |
| 327 | */ |
| 328 | static cson_value * json_tag_list(){ |
| 329 | cson_value * payV = NULL; |
| 330 | cson_object * pay = NULL; |
| 331 | cson_value const * tagsVal = NULL; |
| 332 | char const * zCheckin = NULL; |
| 333 | char fRaw = 0; |
| 334 |
| --- src/json_tag.c | |
| +++ src/json_tag.c | |
| @@ -22,14 +22,14 @@ | |
| 22 | #if INTERFACE |
| 23 | #include "json_detail.h" |
| 24 | #endif |
| 25 | |
| 26 | |
| 27 | static cson_value * json_tag_add(void); |
| 28 | static cson_value * json_tag_cancel(void); |
| 29 | static cson_value * json_tag_find(void); |
| 30 | static cson_value * json_tag_list(void); |
| 31 | /* |
| 32 | ** Mapping of /json/tag/XXX commands/paths to callbacks. |
| 33 | */ |
| 34 | static const JsonPageDef JsonPageDefs_Tag[] = { |
| 35 | {"add", json_tag_add, 0}, |
| @@ -42,19 +42,19 @@ | |
| 42 | |
| 43 | /* |
| 44 | ** Implements the /json/tag family of pages/commands. |
| 45 | ** |
| 46 | */ |
| 47 | cson_value * json_page_tag(void){ |
| 48 | return json_page_dispatch_helper(&JsonPageDefs_Tag[0]); |
| 49 | } |
| 50 | |
| 51 | |
| 52 | /* |
| 53 | ** Impl of /json/tag/add. |
| 54 | */ |
| 55 | static cson_value * json_tag_add(void){ |
| 56 | cson_value * payV = NULL; |
| 57 | cson_object * pay = NULL; |
| 58 | char const * zName = NULL; |
| 59 | char const * zCheckin = NULL; |
| 60 | char fRaw = 0; |
| @@ -138,11 +138,11 @@ | |
| 138 | |
| 139 | |
| 140 | /* |
| 141 | ** Impl of /json/tag/cancel. |
| 142 | */ |
| 143 | static cson_value * json_tag_cancel(void){ |
| 144 | char const * zName = NULL; |
| 145 | char const * zCheckin = NULL; |
| 146 | char fRaw = 0; |
| 147 | const char *zPrefix = NULL; |
| 148 | |
| @@ -188,11 +188,11 @@ | |
| 188 | |
| 189 | |
| 190 | /* |
| 191 | ** Impl of /json/tag/find. |
| 192 | */ |
| 193 | static cson_value * json_tag_find(void){ |
| 194 | cson_value * payV = NULL; |
| 195 | cson_object * pay = NULL; |
| 196 | cson_value * listV = NULL; |
| 197 | cson_array * list = NULL; |
| 198 | char const * zName = NULL; |
| @@ -323,11 +323,11 @@ | |
| 323 | ** |
| 324 | ** TODOs: |
| 325 | ** |
| 326 | ** Add -type TYPE (ci, w, e, t) |
| 327 | */ |
| 328 | static cson_value * json_tag_list(void){ |
| 329 | cson_value * payV = NULL; |
| 330 | cson_object * pay = NULL; |
| 331 | cson_value const * tagsVal = NULL; |
| 332 | char const * zCheckin = NULL; |
| 333 | char fRaw = 0; |
| 334 |