Commit aba81b16 authored by ei@vuokko.info's avatar ei@vuokko.info
Browse files

Remove few format-warnings by adding casts

parent 1ca9b6f8
...@@ -161,7 +161,7 @@ startupAsyncIO() ...@@ -161,7 +161,7 @@ startupAsyncIO()
completed_hw = 0; completed_hw = 0;
if ( !(completed_table_sema = CreateSemaphore (NULL, MAX_REQUESTS, MAX_REQUESTS, NULL)) ) { if ( !(completed_table_sema = CreateSemaphore (NULL, MAX_REQUESTS, MAX_REQUESTS, NULL)) ) {
DWORD rc = GetLastError(); DWORD rc = GetLastError();
fprintf(stderr, "startupAsyncIO: CreateSemaphore failed 0x%x\n", rc); fprintf(stderr, "startupAsyncIO: CreateSemaphore failed 0x%x\n", (int)rc);
fflush(stderr); fflush(stderr);
} }
...@@ -300,7 +300,7 @@ start: ...@@ -300,7 +300,7 @@ start:
/* Signal that there's completed table slots available */ /* Signal that there's completed table slots available */
if ( !ReleaseSemaphore(completed_table_sema, 1, NULL) ) { if ( !ReleaseSemaphore(completed_table_sema, 1, NULL) ) {
DWORD dw = GetLastError(); DWORD dw = GetLastError();
fprintf(stderr, "awaitRequests: failed to signal semaphore (error code=0x%x)\n", dw); fprintf(stderr, "awaitRequests: failed to signal semaphore (error code=0x%x)\n", (int)dw);
fflush(stderr); fflush(stderr);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment