aboutsummaryrefslogtreecommitdiffstats
path: root/src/gnutls.c
diff options
context:
space:
mode:
authorPaul Eggert2014-07-07 16:33:05 -0700
committerPaul Eggert2014-07-07 16:33:05 -0700
commitcae17e36bc98cbcf5aa54d90396de1fe1d7b5c77 (patch)
tree12f28771f8d62c14c5f0281916aaecf02c152f6f /src/gnutls.c
parent0e14232948f875e390ed46348969b9ebeb9133c1 (diff)
downloademacs-cae17e36bc98cbcf5aa54d90396de1fe1d7b5c77.tar.gz
emacs-cae17e36bc98cbcf5aa54d90396de1fe1d7b5c77.zip
Minor fixups related to usage of the 'long' type.
* gnutls.c (emacs_gnutls_handshake): * xfaces.c (dump_realized_face): Work even if 'long' is narrower than 'void *'. * termcap.c (scan_file): * xselect.c (x_decline_selection_request) (x_reply_selection_request, x_get_window_property): * xterm.c (x_set_frame_alpha): Remove unnecessary 'L' suffixes of integer constants. * xfns.c (hack_wm_protocols): * xselect.c (x_fill_property_data): * xterm.c (x_set_offset, x_set_window_size_1, x_make_frame_invisible): Remove unnecessary casts to 'long'. (set_machine_and_pid_properties): Don't assume pid_t fits in 32 bits.
Diffstat (limited to 'src/gnutls.c')
-rw-r--r--src/gnutls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gnutls.c b/src/gnutls.c
index d9b417b46ed..5d48f78a6d4 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -336,8 +336,8 @@ emacs_gnutls_handshake (struct Lisp_Process *proc)
336 in. For an Emacs process socket, infd and outfd are the 336 in. For an Emacs process socket, infd and outfd are the
337 same but we use this two-argument version for clarity. */ 337 same but we use this two-argument version for clarity. */
338 fn_gnutls_transport_set_ptr2 (state, 338 fn_gnutls_transport_set_ptr2 (state,
339 (gnutls_transport_ptr_t) (long) proc->infd, 339 (void *) (intptr_t) proc->infd,
340 (gnutls_transport_ptr_t) (long) proc->outfd); 340 (void *) (intptr_t) proc->outfd);
341#endif 341#endif
342 342
343 proc->gnutls_initstage = GNUTLS_STAGE_TRANSPORT_POINTERS_SET; 343 proc->gnutls_initstage = GNUTLS_STAGE_TRANSPORT_POINTERS_SET;