Fossil SCM
More updates f() to f(void).
Commit
46ddf0e80b94f214d3e1da2b01d45f47a9b2f88bb2c3abbdb88383f6cd0797bd
Parent
5dd632eb4472f57…
1 file changed
+6
-6
+6
-6
| --- src/json.c | ||
| +++ src/json.c | ||
| @@ -1800,11 +1800,11 @@ | ||
| 1800 | 1800 | |
| 1801 | 1801 | /* |
| 1802 | 1802 | ** Impl of /json/resultCodes |
| 1803 | 1803 | ** |
| 1804 | 1804 | */ |
| 1805 | -cson_value * json_page_resultCodes(){ | |
| 1805 | +cson_value * json_page_resultCodes(void){ | |
| 1806 | 1806 | cson_array * list = cson_new_array(); |
| 1807 | 1807 | cson_object * obj = NULL; |
| 1808 | 1808 | cson_string * kRC; |
| 1809 | 1809 | cson_string * kSymbol; |
| 1810 | 1810 | cson_string * kNumber; |
| @@ -1867,11 +1867,11 @@ | ||
| 1867 | 1867 | /* |
| 1868 | 1868 | ** /json/version implementation. |
| 1869 | 1869 | ** |
| 1870 | 1870 | ** Returns the payload object (owned by the caller). |
| 1871 | 1871 | */ |
| 1872 | -cson_value * json_page_version(){ | |
| 1872 | +cson_value * json_page_version(void){ | |
| 1873 | 1873 | cson_value * jval = NULL; |
| 1874 | 1874 | cson_object * jobj = NULL; |
| 1875 | 1875 | jval = cson_value_new_object(); |
| 1876 | 1876 | jobj = cson_value_get_object(jval); |
| 1877 | 1877 | #define FSET(X,K) cson_object_set( jobj, K, cson_value_new_string(X,strlen(X))) |
| @@ -1921,11 +1921,11 @@ | ||
| 1921 | 1921 | ** current user (what he may/may not do). |
| 1922 | 1922 | ** |
| 1923 | 1923 | ** This is primarily intended for debuggering, but may have |
| 1924 | 1924 | ** a use in client code. (?) |
| 1925 | 1925 | */ |
| 1926 | -cson_value * json_page_cap(){ | |
| 1926 | +cson_value * json_page_cap(void){ | |
| 1927 | 1927 | cson_value * payload = cson_value_new_object(); |
| 1928 | 1928 | cson_value * sub = cson_value_new_object(); |
| 1929 | 1929 | Stmt q; |
| 1930 | 1930 | cson_object * obj = cson_value_get_object(payload); |
| 1931 | 1931 | db_prepare(&q, "SELECT login, cap FROM user WHERE uid=%d", g.userUid); |
| @@ -1988,11 +1988,11 @@ | ||
| 1988 | 1988 | |
| 1989 | 1989 | /* |
| 1990 | 1990 | ** Implementation of the /json/stat page/command. |
| 1991 | 1991 | ** |
| 1992 | 1992 | */ |
| 1993 | -cson_value * json_page_stat(){ | |
| 1993 | +cson_value * json_page_stat(void){ | |
| 1994 | 1994 | i64 t, fsize; |
| 1995 | 1995 | int n, m; |
| 1996 | 1996 | int full; |
| 1997 | 1997 | enum { BufLen = 1000 }; |
| 1998 | 1998 | char zBuf[BufLen]; |
| @@ -2168,11 +2168,11 @@ | ||
| 2168 | 2168 | |
| 2169 | 2169 | |
| 2170 | 2170 | /* |
| 2171 | 2171 | ** Impl of /json/rebuild. Requires admin privileges. |
| 2172 | 2172 | */ |
| 2173 | -static cson_value * json_page_rebuild(){ | |
| 2173 | +static cson_value * json_page_rebuild(void){ | |
| 2174 | 2174 | if( !g.perm.Admin ){ |
| 2175 | 2175 | json_set_err(FSL_JSON_E_DENIED,"Requires 'a' privileges."); |
| 2176 | 2176 | return NULL; |
| 2177 | 2177 | }else{ |
| 2178 | 2178 | /* Reminder: the db_xxx() ops "should" fail via the fossil core |
| @@ -2194,11 +2194,11 @@ | ||
| 2194 | 2194 | } |
| 2195 | 2195 | |
| 2196 | 2196 | /* |
| 2197 | 2197 | ** Impl of /json/g. Requires admin/setup rights. |
| 2198 | 2198 | */ |
| 2199 | -static cson_value * json_page_g(){ | |
| 2199 | +static cson_value * json_page_g(void){ | |
| 2200 | 2200 | if(!g.perm.Admin || !g.perm.Setup){ |
| 2201 | 2201 | json_set_err(FSL_JSON_E_DENIED, |
| 2202 | 2202 | "Requires 'a' or 's' privileges."); |
| 2203 | 2203 | return NULL; |
| 2204 | 2204 | } |
| 2205 | 2205 |
| --- src/json.c | |
| +++ src/json.c | |
| @@ -1800,11 +1800,11 @@ | |
| 1800 | |
| 1801 | /* |
| 1802 | ** Impl of /json/resultCodes |
| 1803 | ** |
| 1804 | */ |
| 1805 | cson_value * json_page_resultCodes(){ |
| 1806 | cson_array * list = cson_new_array(); |
| 1807 | cson_object * obj = NULL; |
| 1808 | cson_string * kRC; |
| 1809 | cson_string * kSymbol; |
| 1810 | cson_string * kNumber; |
| @@ -1867,11 +1867,11 @@ | |
| 1867 | /* |
| 1868 | ** /json/version implementation. |
| 1869 | ** |
| 1870 | ** Returns the payload object (owned by the caller). |
| 1871 | */ |
| 1872 | cson_value * json_page_version(){ |
| 1873 | cson_value * jval = NULL; |
| 1874 | cson_object * jobj = NULL; |
| 1875 | jval = cson_value_new_object(); |
| 1876 | jobj = cson_value_get_object(jval); |
| 1877 | #define FSET(X,K) cson_object_set( jobj, K, cson_value_new_string(X,strlen(X))) |
| @@ -1921,11 +1921,11 @@ | |
| 1921 | ** current user (what he may/may not do). |
| 1922 | ** |
| 1923 | ** This is primarily intended for debuggering, but may have |
| 1924 | ** a use in client code. (?) |
| 1925 | */ |
| 1926 | cson_value * json_page_cap(){ |
| 1927 | cson_value * payload = cson_value_new_object(); |
| 1928 | cson_value * sub = cson_value_new_object(); |
| 1929 | Stmt q; |
| 1930 | cson_object * obj = cson_value_get_object(payload); |
| 1931 | db_prepare(&q, "SELECT login, cap FROM user WHERE uid=%d", g.userUid); |
| @@ -1988,11 +1988,11 @@ | |
| 1988 | |
| 1989 | /* |
| 1990 | ** Implementation of the /json/stat page/command. |
| 1991 | ** |
| 1992 | */ |
| 1993 | cson_value * json_page_stat(){ |
| 1994 | i64 t, fsize; |
| 1995 | int n, m; |
| 1996 | int full; |
| 1997 | enum { BufLen = 1000 }; |
| 1998 | char zBuf[BufLen]; |
| @@ -2168,11 +2168,11 @@ | |
| 2168 | |
| 2169 | |
| 2170 | /* |
| 2171 | ** Impl of /json/rebuild. Requires admin privileges. |
| 2172 | */ |
| 2173 | static cson_value * json_page_rebuild(){ |
| 2174 | if( !g.perm.Admin ){ |
| 2175 | json_set_err(FSL_JSON_E_DENIED,"Requires 'a' privileges."); |
| 2176 | return NULL; |
| 2177 | }else{ |
| 2178 | /* Reminder: the db_xxx() ops "should" fail via the fossil core |
| @@ -2194,11 +2194,11 @@ | |
| 2194 | } |
| 2195 | |
| 2196 | /* |
| 2197 | ** Impl of /json/g. Requires admin/setup rights. |
| 2198 | */ |
| 2199 | static cson_value * json_page_g(){ |
| 2200 | if(!g.perm.Admin || !g.perm.Setup){ |
| 2201 | json_set_err(FSL_JSON_E_DENIED, |
| 2202 | "Requires 'a' or 's' privileges."); |
| 2203 | return NULL; |
| 2204 | } |
| 2205 |
| --- src/json.c | |
| +++ src/json.c | |
| @@ -1800,11 +1800,11 @@ | |
| 1800 | |
| 1801 | /* |
| 1802 | ** Impl of /json/resultCodes |
| 1803 | ** |
| 1804 | */ |
| 1805 | cson_value * json_page_resultCodes(void){ |
| 1806 | cson_array * list = cson_new_array(); |
| 1807 | cson_object * obj = NULL; |
| 1808 | cson_string * kRC; |
| 1809 | cson_string * kSymbol; |
| 1810 | cson_string * kNumber; |
| @@ -1867,11 +1867,11 @@ | |
| 1867 | /* |
| 1868 | ** /json/version implementation. |
| 1869 | ** |
| 1870 | ** Returns the payload object (owned by the caller). |
| 1871 | */ |
| 1872 | cson_value * json_page_version(void){ |
| 1873 | cson_value * jval = NULL; |
| 1874 | cson_object * jobj = NULL; |
| 1875 | jval = cson_value_new_object(); |
| 1876 | jobj = cson_value_get_object(jval); |
| 1877 | #define FSET(X,K) cson_object_set( jobj, K, cson_value_new_string(X,strlen(X))) |
| @@ -1921,11 +1921,11 @@ | |
| 1921 | ** current user (what he may/may not do). |
| 1922 | ** |
| 1923 | ** This is primarily intended for debuggering, but may have |
| 1924 | ** a use in client code. (?) |
| 1925 | */ |
| 1926 | cson_value * json_page_cap(void){ |
| 1927 | cson_value * payload = cson_value_new_object(); |
| 1928 | cson_value * sub = cson_value_new_object(); |
| 1929 | Stmt q; |
| 1930 | cson_object * obj = cson_value_get_object(payload); |
| 1931 | db_prepare(&q, "SELECT login, cap FROM user WHERE uid=%d", g.userUid); |
| @@ -1988,11 +1988,11 @@ | |
| 1988 | |
| 1989 | /* |
| 1990 | ** Implementation of the /json/stat page/command. |
| 1991 | ** |
| 1992 | */ |
| 1993 | cson_value * json_page_stat(void){ |
| 1994 | i64 t, fsize; |
| 1995 | int n, m; |
| 1996 | int full; |
| 1997 | enum { BufLen = 1000 }; |
| 1998 | char zBuf[BufLen]; |
| @@ -2168,11 +2168,11 @@ | |
| 2168 | |
| 2169 | |
| 2170 | /* |
| 2171 | ** Impl of /json/rebuild. Requires admin privileges. |
| 2172 | */ |
| 2173 | static cson_value * json_page_rebuild(void){ |
| 2174 | if( !g.perm.Admin ){ |
| 2175 | json_set_err(FSL_JSON_E_DENIED,"Requires 'a' privileges."); |
| 2176 | return NULL; |
| 2177 | }else{ |
| 2178 | /* Reminder: the db_xxx() ops "should" fail via the fossil core |
| @@ -2194,11 +2194,11 @@ | |
| 2194 | } |
| 2195 | |
| 2196 | /* |
| 2197 | ** Impl of /json/g. Requires admin/setup rights. |
| 2198 | */ |
| 2199 | static cson_value * json_page_g(void){ |
| 2200 | if(!g.perm.Admin || !g.perm.Setup){ |
| 2201 | json_set_err(FSL_JSON_E_DENIED, |
| 2202 | "Requires 'a' or 's' privileges."); |
| 2203 | return NULL; |
| 2204 | } |
| 2205 |