projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1ca9b6f
)
Remove few format-warnings by adding casts
author
Esa Ilari Vuokko
<ei@vuokko.info>
Sun, 13 Aug 2006 11:10:29 +0000
(11:10 +0000)
committer
Esa Ilari Vuokko
<ei@vuokko.info>
Sun, 13 Aug 2006 11:10:29 +0000
(11:10 +0000)
rts/win32/AsyncIO.c
patch
|
blob
|
history
diff --git
a/rts/win32/AsyncIO.c
b/rts/win32/AsyncIO.c
index
7bcf571
..
2ff92d9
100644
(file)
--- a/
rts/win32/AsyncIO.c
+++ b/
rts/win32/AsyncIO.c
@@
-161,7
+161,7
@@
startupAsyncIO()
completed_hw = 0;
if ( !(completed_table_sema = CreateSemaphore (NULL, MAX_REQUESTS, MAX_REQUESTS, NULL)) ) {
DWORD rc = GetLastError();
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);
}
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();
/* 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);
}
}
fflush(stderr);
}
}