squash mingw printf format warning

This commit is contained in:
KIU Shueng Chuan committed 2013-02-24 23:22:34 +08:00
1 parent d707841166
commit d3c02331d4
1 file changed
+2 -2
+2 -2
View File
@@ -1336,7 +1336,7 @@ static pid_t spawn_process(struct mg_connection *conn, const char *prog,
DEBUG_TRACE(("Running [%s]", cmdline));
if (CreateProcessA(NULL, cmdline, NULL, NULL, TRUE,
CREATE_NEW_PROCESS_GROUP, envblk, NULL, &si, &pi) == 0) {
cry(conn, "%s: CreateProcess(%s): %d",
cry(conn, "%s: CreateProcess(%s): %ld",
__func__, cmdline, ERRNO);
pi.hProcess = (pid_t) -1;
}
@@ -5195,7 +5195,7 @@ struct mg_context *mg_start(const struct mg_callbacks *callbacks,
// Start worker threads
for (i = 0; i < atoi(ctx->config[NUM_THREADS]); i++) {
if (mg_start_thread(worker_thread, ctx) != 0) {
cry(fc(ctx), "Cannot start worker thread: %d", ERRNO);
cry(fc(ctx), "Cannot start worker thread: %ld", ERRNO);
} else {
ctx->num_threads++;
}