Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix some more compiler warnings seen with MSVC. Cherrypick from [24e298edd0]. |
|---|---|
| Timelines: | family | ancestors | descendants | both | jimtcl |
| Files: | files | file ages | folders |
| SHA1: |
dfdda77dfcc320af0a8f9f3109dd2048 |
| User & Date: | mistachkin 2011-11-07 00:34:00.199 |
Context
|
2011-11-07
| ||
| 03:39 | Remove HAVE_MKDIR_ONE_ARG define when compiling Jim as it will now be defined in the C file itself. check-in: 7ee228fe6a user: mistachkin tags: jimtcl | |
| 00:34 | Fix some more compiler warnings seen with MSVC. Cherrypick from [24e298edd0]. check-in: dfdda77dfc user: mistachkin tags: jimtcl | |
| 00:29 | More compilation fixes for Jim when compiling with MSVC. check-in: 38d1b52283 user: mistachkin tags: jimtcl | |
Changes
Changes to src/login.c.
| ︙ | ︙ | |||
978 979 980 981 982 983 984 |
}
/*
** Zeroes out g.perm and calls login_set_capabilities(zCap,flags).
*/
void login_replace_capabilities(const char *zCap, unsigned flags){
memset(&g.perm, 0, sizeof(g.perm));
| | | 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 |
}
/*
** Zeroes out g.perm and calls login_set_capabilities(zCap,flags).
*/
void login_replace_capabilities(const char *zCap, unsigned flags){
memset(&g.perm, 0, sizeof(g.perm));
login_set_capabilities(zCap, flags);
}
/*
** If the current login lacks any of the capabilities listed in
** the input, then return 0. If all capabilities are present, then
** return 1.
*/
|
| ︙ | ︙ |
Changes to src/main.c.
| ︙ | ︙ | |||
317 318 319 320 321 322 323 | return 1+(cnt>1); } /* ** atexit() handler which frees up "some" of the resources ** used by fossil. */ | | | 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 |
return 1+(cnt>1);
}
/*
** atexit() handler which frees up "some" of the resources
** used by fossil.
*/
void fossil_atexit(void) {
#ifdef FOSSIL_ENABLE_JSON
cson_value_free(g.json.gc.v);
memset(&g.json, 0, sizeof(g.json));
#endif
free(g.zErrMsg);
if(g.db){
db_close(0);
|
| ︙ | ︙ |
Changes to src/setup.c.
| ︙ | ︙ | |||
248 249 250 251 252 253 254 |
void user_edit(void){
const char *zId, *zLogin, *zInfo, *zCap, *zPw;
char *oaa, *oas, *oar, *oaw, *oan, *oai, *oaj, *oao, *oap;
char *oak, *oad, *oac, *oaf, *oam, *oah, *oag, *oae;
char *oat, *oau, *oav, *oab, *oax, *oaz;
const char *zGroup;
const char *zOldLogin;
| | | 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 |
void user_edit(void){
const char *zId, *zLogin, *zInfo, *zCap, *zPw;
char *oaa, *oas, *oar, *oaw, *oan, *oai, *oaj, *oao, *oap;
char *oak, *oad, *oac, *oaf, *oam, *oah, *oag, *oae;
char *oat, *oau, *oav, *oab, *oax, *oaz;
const char *zGroup;
const char *zOldLogin;
char *inherit[128];
int doWrite;
int uid;
int higherUser = 0; /* True if user being edited is SETUP and the */
/* user doing the editing is ADMIN. Disallow editing */
/* Must have ADMIN privleges to access this page
*/
|
| ︙ | ︙ |