summaryrefslogtreecommitdiff
path: root/src/xgselect.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-08-26 14:31:50 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2013-08-26 14:31:50 -0700
commitf462f0750f4cd3537ab1da5cf8ed64e08e55ea46 (patch)
tree8bc31880fcaa044d09553dea12cbb846fda22b33 /src/xgselect.c
parent068f9124b4cb785f1743f2b50884f819d9d34f47 (diff)
downloademacs-f462f0750f4cd3537ab1da5cf8ed64e08e55ea46.tar.gz
Fix minor problems found by static checking.
* image.c (XGetPixel, XPutPixel) [HAVE_NS]: Now static. (expect): Avoid nested-if warning. (x_build_heuristic_mask) [HAVE_NS]: Avoid unused-var warning. * nsmenu.m (fillWithWidgetValue:): Avoid type warning. * nsterm.h, nsterm.m (ns_select): * xgselect.c, xgselect.h (xg_select): Adjust signature to better match pselect's. * nsterm.m (ns_select): Don't set *TIMEOUT, since pselect doesn't. * regex.c (whitespace_regexp): Now const_re_char *, to avoid diagnostic about assigning const char * to it. * xfaces.c (x_display_info) [HAVE_NS]: Remove; unused.
Diffstat (limited to 'src/xgselect.c')
-rw-r--r--src/xgselect.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xgselect.c b/src/xgselect.c
index 4d90298a9d9..97f53373b63 100644
--- a/src/xgselect.c
+++ b/src/xgselect.c
@@ -29,10 +29,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
int
xg_select (int fds_lim, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds,
- EMACS_TIME *timeout, sigset_t *sigmask)
+ EMACS_TIME const *timeout, sigset_t const *sigmask)
{
SELECT_TYPE all_rfds, all_wfds;
- EMACS_TIME tmo, *tmop = timeout;
+ EMACS_TIME tmo;
+ EMACS_TIME const *tmop = timeout;
GMainContext *context;
int have_wfds = wfds != NULL;