API change: added void *user_data to mg_start(). Bumped version to 3.0

This commit is contained in:
valenok committed 2010-10-26 23:37:44 +01:00
1 parent 7034f49276
commit 11951a57ff
5 files changed
+14 -8

No files matched your search

+2 -2
View File
@@ -95,7 +95,7 @@ static int mg_edit_passwords(const char *fname, const char *domain,
int success;
options[1] = domain;
ctx = mg_start(NULL, options);
ctx = mg_start(NULL, NULL, options);
success = mg_modify_passwords_file(ctx, fname, user, pass);
mg_stop(ctx);
@@ -256,7 +256,7 @@ static void start_mongoose(int argc, char *argv[]) {
signal(SIGINT, signal_handler);
/* Start Mongoose */
ctx = mg_start(NULL, (const char **) options);
ctx = mg_start(NULL, NULL, (const char **) options);
for (i = 0; options[i] != NULL; i++) {
free(options[i]);
}