Remove few format-warnings by adding casts
authorEsa Ilari Vuokko <ei@vuokko.info>
Sun, 13 Aug 2006 11:10:29 +0000 (11:10 +0000)
committerEsa Ilari Vuokko <ei@vuokko.info>
Sun, 13 Aug 2006 11:10:29 +0000 (11:10 +0000)
rts/win32/AsyncIO.c

index 7bcf571..2ff92d9 100644 (file)
@@ -161,7 +161,7 @@ startupAsyncIO()
     completed_hw = 0;
     if ( !(completed_table_sema = CreateSemaphore (NULL, MAX_REQUESTS, MAX_REQUESTS, NULL)) ) {
        DWORD rc = GetLastError();
-       fprintf(stderr, "startupAsyncIO: CreateSemaphore failed 0x%x\n", rc);
+       fprintf(stderr, "startupAsyncIO: CreateSemaphore failed 0x%x\n", (int)rc);
        fflush(stderr);
     }
 
@@ -300,7 +300,7 @@ start:
            /* Signal that there's completed table slots available */
            if ( !ReleaseSemaphore(completed_table_sema, 1, NULL) ) {
                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);
            }
        }