X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/0877d0dc24ee792b9b14592869ea1aa0934aee58..8b55eeeb70be4b4ff3dd4694013bdb1a9f668bc6:/src/xsmfns.c diff --git a/src/xsmfns.c b/src/xsmfns.c index fe2dfbaf83..526d4c3610 100644 --- a/src/xsmfns.c +++ b/src/xsmfns.c @@ -107,8 +107,7 @@ x_session_check_input (int fd, void *data) will be called. */ emacs_event.kind = NO_EVENT; - ret = IceProcessMessages (SmcGetIceConnection (smc_conn), - (IceReplyWaitInfo *)0, (Bool *)0); + ret = IceProcessMessages (SmcGetIceConnection (smc_conn), 0, 0); if (ret != IceProcessMessagesSuccess) { /* Either IO error or Connection closed. */ @@ -514,9 +513,11 @@ Do not call this function yourself. */) prevent. Fix this in next version. */ Fkill_emacs (Qnil); +#if 0 /* This will not be reached, but we want kill-emacs-hook to be run. */ SmcCloseConnection (smc_conn, 0, 0); ice_connection_closed (); +#endif } return Qnil;