mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-29 21:08:24 +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));
|
DEBUG_TRACE(("Running [%s]", cmdline));
|
||||||
if (CreateProcessA(NULL, cmdline, NULL, NULL, TRUE,
|
if (CreateProcessA(NULL, cmdline, NULL, NULL, TRUE,
|
||||||
CREATE_NEW_PROCESS_GROUP, envblk, NULL, &si, &pi) == 0) {
|
CREATE_NEW_PROCESS_GROUP, envblk, NULL, &si, &pi) == 0) {
|
||||||
cry(conn, "%s: CreateProcess(%s): %d",
|
cry(conn, "%s: CreateProcess(%s): %ld",
|
||||||
__func__, cmdline, ERRNO);
|
__func__, cmdline, ERRNO);
|
||||||
pi.hProcess = (pid_t) -1;
|
pi.hProcess = (pid_t) -1;
|
||||||
}
|
}
|
||||||
@@ -5195,7 +5195,7 @@ struct mg_context *mg_start(const struct mg_callbacks *callbacks,
|
|||||||
// Start worker threads
|
// Start worker threads
|
||||||
for (i = 0; i < atoi(ctx->config[NUM_THREADS]); i++) {
|
for (i = 0; i < atoi(ctx->config[NUM_THREADS]); i++) {
|
||||||
if (mg_start_thread(worker_thread, ctx) != 0) {
|
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 {
|
} else {
|
||||||
ctx->num_threads++;
|
ctx->num_threads++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user