static int
in_delim(char c, const char* delim)
{
- char* p;
+ const char* p;
if(!delim)
return 0;
for(p=delim; *p; p++) {
*s = 0;
*stringp = s+1;
} else {
- *stringp = s;
+ *stringp = NULL;
}
return orig;
}
/** global service stop event */
static WSAEVENT service_stop_event = NULL;
/** event struct for stop callbacks */
-static struct event* service_stop_ev = NULL;
+static struct ub_event* service_stop_ev = NULL;
/** if stop even means shutdown or restart */
static int service_stop_shutdown = 0;
/** config file to open. global communication to service_main() */