gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r26242 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r26242 - gnunet/src/util
Date: Fri, 1 Mar 2013 07:55:30 +0100

Author: LRN
Date: 2013-03-01 07:55:30 +0100 (Fri, 01 Mar 2013)
New Revision: 26242

Modified:
   gnunet/src/util/os_priority.c
Log:
Silence a warning

Modified: gnunet/src/util/os_priority.c
===================================================================
--- gnunet/src/util/os_priority.c       2013-03-01 02:44:50 UTC (rev 26241)
+++ gnunet/src/util/os_priority.c       2013-03-01 06:55:30 UTC (rev 26242)
@@ -154,7 +154,7 @@
 #if !defined (WINDOWS)
   if (pipe_fd >= FD_SETSIZE)
 #else
-  if ((FILE_TYPE_UNKNOWN == GetFileType ((HANDLE) pipe_fd))
+  if ((FILE_TYPE_UNKNOWN == GetFileType ((HANDLE) (uintptr_t) pipe_fd))
       && (0 != GetLastError ()))
 #endif
   {
@@ -163,9 +163,8 @@
     putenv (GNUNET_OS_CONTROL_PIPE "=");
     return;
   }
-  /* Gcc will issue a warning here. What to do with it? */
 #if WINDOWS
-  control_pipe = GNUNET_DISK_get_handle_from_w32_handle ((HANDLE) pipe_fd);
+  control_pipe = GNUNET_DISK_get_handle_from_w32_handle ((HANDLE) (uintptr_t) 
pipe_fd);
 #else
   control_pipe = GNUNET_DISK_get_handle_from_int_fd ((int) pipe_fd);
 #endif




reply via email to

[Prev in Thread] Current Thread [Next in Thread]