Fossil SCM

Fix some more compiler warnings seen with MSVC. Cherrypick from [24e298edd0].

mistachkin 2011-11-07 00:34 jimtcl
Commit dfdda77dfcc320af0a8f9f3109dd20480c62db69
3 files changed +1 -1 +1 -1 +1 -1
+1 -1
--- src/login.c
+++ src/login.c
@@ -980,11 +980,11 @@
980980
/*
981981
** Zeroes out g.perm and calls login_set_capabilities(zCap,flags).
982982
*/
983983
void login_replace_capabilities(const char *zCap, unsigned flags){
984984
memset(&g.perm, 0, sizeof(g.perm));
985
- return login_set_capabilities(zCap, flags);
985
+ login_set_capabilities(zCap, flags);
986986
}
987987
988988
/*
989989
** If the current login lacks any of the capabilities listed in
990990
** the input, then return 0. If all capabilities are present, then
991991
--- src/login.c
+++ src/login.c
@@ -980,11 +980,11 @@
980 /*
981 ** Zeroes out g.perm and calls login_set_capabilities(zCap,flags).
982 */
983 void login_replace_capabilities(const char *zCap, unsigned flags){
984 memset(&g.perm, 0, sizeof(g.perm));
985 return login_set_capabilities(zCap, flags);
986 }
987
988 /*
989 ** If the current login lacks any of the capabilities listed in
990 ** the input, then return 0. If all capabilities are present, then
991
--- src/login.c
+++ src/login.c
@@ -980,11 +980,11 @@
980 /*
981 ** Zeroes out g.perm and calls login_set_capabilities(zCap,flags).
982 */
983 void login_replace_capabilities(const char *zCap, unsigned flags){
984 memset(&g.perm, 0, sizeof(g.perm));
985 login_set_capabilities(zCap, flags);
986 }
987
988 /*
989 ** If the current login lacks any of the capabilities listed in
990 ** the input, then return 0. If all capabilities are present, then
991
+1 -1
--- src/main.c
+++ src/main.c
@@ -319,11 +319,11 @@
319319
320320
/*
321321
** atexit() handler which frees up "some" of the resources
322322
** used by fossil.
323323
*/
324
-void fossil_atexit() {
324
+void fossil_atexit(void) {
325325
#ifdef FOSSIL_ENABLE_JSON
326326
cson_value_free(g.json.gc.v);
327327
memset(&g.json, 0, sizeof(g.json));
328328
#endif
329329
free(g.zErrMsg);
330330
--- src/main.c
+++ src/main.c
@@ -319,11 +319,11 @@
319
320 /*
321 ** atexit() handler which frees up "some" of the resources
322 ** used by fossil.
323 */
324 void fossil_atexit() {
325 #ifdef FOSSIL_ENABLE_JSON
326 cson_value_free(g.json.gc.v);
327 memset(&g.json, 0, sizeof(g.json));
328 #endif
329 free(g.zErrMsg);
330
--- src/main.c
+++ src/main.c
@@ -319,11 +319,11 @@
319
320 /*
321 ** atexit() handler which frees up "some" of the resources
322 ** used by fossil.
323 */
324 void fossil_atexit(void) {
325 #ifdef FOSSIL_ENABLE_JSON
326 cson_value_free(g.json.gc.v);
327 memset(&g.json, 0, sizeof(g.json));
328 #endif
329 free(g.zErrMsg);
330
+1 -1
--- src/setup.c
+++ src/setup.c
@@ -250,11 +250,11 @@
250250
char *oaa, *oas, *oar, *oaw, *oan, *oai, *oaj, *oao, *oap;
251251
char *oak, *oad, *oac, *oaf, *oam, *oah, *oag, *oae;
252252
char *oat, *oau, *oav, *oab, *oax, *oaz;
253253
const char *zGroup;
254254
const char *zOldLogin;
255
- const char *inherit[128];
255
+ char *inherit[128];
256256
int doWrite;
257257
int uid;
258258
int higherUser = 0; /* True if user being edited is SETUP and the */
259259
/* user doing the editing is ADMIN. Disallow editing */
260260
261261
--- src/setup.c
+++ src/setup.c
@@ -250,11 +250,11 @@
250 char *oaa, *oas, *oar, *oaw, *oan, *oai, *oaj, *oao, *oap;
251 char *oak, *oad, *oac, *oaf, *oam, *oah, *oag, *oae;
252 char *oat, *oau, *oav, *oab, *oax, *oaz;
253 const char *zGroup;
254 const char *zOldLogin;
255 const char *inherit[128];
256 int doWrite;
257 int uid;
258 int higherUser = 0; /* True if user being edited is SETUP and the */
259 /* user doing the editing is ADMIN. Disallow editing */
260
261
--- src/setup.c
+++ src/setup.c
@@ -250,11 +250,11 @@
250 char *oaa, *oas, *oar, *oaw, *oan, *oai, *oaj, *oao, *oap;
251 char *oak, *oad, *oac, *oaf, *oam, *oah, *oag, *oae;
252 char *oat, *oau, *oav, *oab, *oax, *oaz;
253 const char *zGroup;
254 const char *zOldLogin;
255 char *inherit[128];
256 int doWrite;
257 int uid;
258 int higherUser = 0; /* True if user being edited is SETUP and the */
259 /* user doing the editing is ADMIN. Disallow editing */
260
261

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button