dgaudet 97/10/22 09:57:36
Modified: src/modules/standard mod_speling.c Log: Fix some 64-bit warnings. Reviewed by: Dean Gaudet, Martin Kraemer, Jim Jagielski Revision Changes Path 1.7 +4 -3 apachen/src/modules/standard/mod_speling.c Index: mod_speling.c =================================================================== RCS file: /export/home/cvs/apachen/src/modules/standard/mod_speling.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- mod_speling.c 1997/10/20 13:28:02 1.6 +++ mod_speling.c 1997/10/22 16:57:34 1.7 @@ -91,11 +91,12 @@ { void *server_conf = cmd->server->module_config; - set_module_config(server_conf, &speling_module, (void *) arg); + /* any non-NULL pointer means speling is enabled */ + set_module_config(server_conf, &speling_module, arg ? (void *)&speling_module : NULL); return NULL; } -command_rec speling_cmds[] = +static command_rec speling_cmds[] = { {"CheckSpelling", set_speling, NULL, RSRC_CONF, FLAG, "whether or not to fix miscapitalized/misspelled requests"}, @@ -183,7 +184,7 @@ struct DIR_TYPE *dir_entry; array_header *candidates = NULL; - if (!(int) get_module_config(server_conf, &speling_module)) + if (!get_module_config(server_conf, &speling_module)) return DECLINED; /* We only want to worry about GETs */