aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2008-08-29 08:18:07 +0000
committerYAMAMOTO Mitsuharu2008-08-29 08:18:07 +0000
commit3576897ae4c5c27ea0796af57ad3b86e081f2fe2 (patch)
treee2c51caa607fa3912657565e2f85dd60cef14585 /src
parentad5a649e8f759036c6548a695c0701d45c5fe944 (diff)
downloademacs-3576897ae4c5c27ea0796af57ad3b86e081f2fe2.tar.gz
emacs-3576897ae4c5c27ea0796af57ad3b86e081f2fe2.zip
(mac_system_script_code): Use EMACS_INT for DEFVAR_INT variable.
[MAC_OSX] (mac_try_close_socket, sys_select) [SELECT_USE_CFSOCKET]: Cast to pointer-size integer before casting to pointer.
Diffstat (limited to 'src')
-rw-r--r--src/mac.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mac.c b/src/mac.c
index 22f34747ea8..d13e1886bb9 100644
--- a/src/mac.c
+++ b/src/mac.c
@@ -69,7 +69,7 @@ Boston, MA 02110-1301, USA. */
69#endif 69#endif
70 70
71/* The system script code. */ 71/* The system script code. */
72static int mac_system_script_code; 72static EMACS_INT mac_system_script_code;
73 73
74/* The system locale identifier string. */ 74/* The system locale identifier string. */
75static Lisp_Object Vmac_system_locale; 75static Lisp_Object Vmac_system_locale;
@@ -5047,7 +5047,7 @@ mac_try_close_socket (fd)
5047#if SELECT_USE_CFSOCKET 5047#if SELECT_USE_CFSOCKET
5048 if (getpid () == mac_emacs_pid && cfsockets_for_select) 5048 if (getpid () == mac_emacs_pid && cfsockets_for_select)
5049 { 5049 {
5050 void *key = (void *) fd; 5050 void *key = (void *) (long) fd;
5051 CFSocketRef socket = 5051 CFSocketRef socket =
5052 (CFSocketRef) CFDictionaryGetValue (cfsockets_for_select, key); 5052 (CFSocketRef) CFDictionaryGetValue (cfsockets_for_select, key);
5053 5053
@@ -5160,7 +5160,7 @@ sys_select (nfds, rfds, wfds, efds, timeout)
5160 for (fd = minfd; fd < nfds; fd++) 5160 for (fd = minfd; fd < nfds; fd++)
5161 if (FD_ISSET (fd, rfds) || (wfds && FD_ISSET (fd, wfds))) 5161 if (FD_ISSET (fd, rfds) || (wfds && FD_ISSET (fd, wfds)))
5162 { 5162 {
5163 void *key = (void *) fd; 5163 void *key = (void *) (long) fd;
5164 CFRunLoopSourceRef source = 5164 CFRunLoopSourceRef source =
5165 (CFRunLoopSourceRef) CFDictionaryGetValue (sources, key); 5165 (CFRunLoopSourceRef) CFDictionaryGetValue (sources, key);
5166 5166
@@ -5190,7 +5190,7 @@ sys_select (nfds, rfds, wfds, efds, timeout)
5190 for (fd = minfd; fd < nfds; fd++) 5190 for (fd = minfd; fd < nfds; fd++)
5191 if (FD_ISSET (fd, rfds) || (wfds && FD_ISSET (fd, wfds))) 5191 if (FD_ISSET (fd, rfds) || (wfds && FD_ISSET (fd, wfds)))
5192 { 5192 {
5193 void *key = (void *) fd; 5193 void *key = (void *) (long) fd;
5194 CFRunLoopSourceRef source = 5194 CFRunLoopSourceRef source =
5195 (CFRunLoopSourceRef) CFDictionaryGetValue (sources, key); 5195 (CFRunLoopSourceRef) CFDictionaryGetValue (sources, key);
5196 5196