]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid compilation warnings in gnutls.c on 64-bit hosts.
authorEli Zaretskii <eliz@gnu.org>
Mon, 25 Apr 2011 10:42:57 +0000 (13:42 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 25 Apr 2011 10:42:57 +0000 (13:42 +0300)
 src/gnutls.c (emacs_gnutls_handshake): Avoid compiler warnings about
 "cast to pointer from integer of different size".

src/ChangeLog
src/gnutls.c

index cd03d1fa1860a7b86d93a714e4bc0ae64334eafd..9166fe1822f78bc3cf4f52dcd75097cbf7ad0fcc 100644 (file)
@@ -1,5 +1,8 @@
 2011-04-25  Eli Zaretskii  <eliz@gnu.org>
 
+       * gnutls.c (emacs_gnutls_handshake): Avoid compiler warnings about
+       "cast to pointer from integer of different size".
+
        Improve doprnt and its use in verror.  (Bug#8545)
        * doprnt.c (doprnt): Document the set of format control sequences
        supported by the function.  Use SAFE_ALLOCA instead of always
index 18ceb79193bcd61122dba5252919c2cb155bf941..975fe655072f16a65d49b8cf9bf92c2ddb44efe6 100644 (file)
@@ -101,8 +101,8 @@ emacs_gnutls_handshake (struct Lisp_Process *proc)
          in.  For an Emacs process socket, infd and outfd are the
          same but we use this two-argument version for clarity.  */
       gnutls_transport_set_ptr2 (state,
-                                (gnutls_transport_ptr_t) proc->infd,
-                                (gnutls_transport_ptr_t) proc->outfd);
+                                (gnutls_transport_ptr_t) (long) proc->infd,
+                                (gnutls_transport_ptr_t) (long) proc->outfd);
 #endif
 
       proc->gnutls_initstage = GNUTLS_STAGE_TRANSPORT_POINTERS_SET;