mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-18 10:59:45 +00:00
squash mingw printf format warning
This commit is contained in:
1 parent
d707841166
commit
d3c02331d4
1 file changed
+2
-2
+2
-2
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user