diff options
author | LRN <lrn1986@gmail.com> | 2013-03-01 06:55:30 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-03-01 06:55:30 +0000 |
commit | 81f50d19d6309556f1f47331c22d8e08e512601d (patch) | |
tree | e36c27cd765393d7ed8f8fa36cf0d8d698b6338a /src/util/os_priority.c | |
parent | af6cb02f6caf6b46f7d35077c6a0947cf9358c7b (diff) | |
download | gnunet-81f50d19d6309556f1f47331c22d8e08e512601d.tar.gz gnunet-81f50d19d6309556f1f47331c22d8e08e512601d.zip |
Silence a warning
Diffstat (limited to 'src/util/os_priority.c')
-rw-r--r-- | src/util/os_priority.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/os_priority.c b/src/util/os_priority.c index e24d9fb73..b8b854963 100644 --- a/src/util/os_priority.c +++ b/src/util/os_priority.c | |||
@@ -154,7 +154,7 @@ GNUNET_OS_install_parent_control_handler (void *cls, | |||
154 | #if !defined (WINDOWS) | 154 | #if !defined (WINDOWS) |
155 | if (pipe_fd >= FD_SETSIZE) | 155 | if (pipe_fd >= FD_SETSIZE) |
156 | #else | 156 | #else |
157 | if ((FILE_TYPE_UNKNOWN == GetFileType ((HANDLE) pipe_fd)) | 157 | if ((FILE_TYPE_UNKNOWN == GetFileType ((HANDLE) (uintptr_t) pipe_fd)) |
158 | && (0 != GetLastError ())) | 158 | && (0 != GetLastError ())) |
159 | #endif | 159 | #endif |
160 | { | 160 | { |
@@ -163,9 +163,8 @@ GNUNET_OS_install_parent_control_handler (void *cls, | |||
163 | putenv (GNUNET_OS_CONTROL_PIPE "="); | 163 | putenv (GNUNET_OS_CONTROL_PIPE "="); |
164 | return; | 164 | return; |
165 | } | 165 | } |
166 | /* Gcc will issue a warning here. What to do with it? */ | ||
167 | #if WINDOWS | 166 | #if WINDOWS |
168 | control_pipe = GNUNET_DISK_get_handle_from_w32_handle ((HANDLE) pipe_fd); | 167 | control_pipe = GNUNET_DISK_get_handle_from_w32_handle ((HANDLE) (uintptr_t) pipe_fd); |
169 | #else | 168 | #else |
170 | control_pipe = GNUNET_DISK_get_handle_from_int_fd ((int) pipe_fd); | 169 | control_pipe = GNUNET_DISK_get_handle_from_int_fd ((int) pipe_fd); |
171 | #endif | 170 | #endif |