aboutsummaryrefslogtreecommitdiffstats
path: root/src/xgselect.c
diff options
context:
space:
mode:
authorPaul Eggert2014-04-05 12:30:36 -0700
committerPaul Eggert2014-04-05 12:30:36 -0700
commitfaa521749378dbfd97f49a0e5c48f6da2ce1ddba (patch)
treed470dbfa3328aaeffe5cba065103e237238a13be /src/xgselect.c
parent1b058e42524353c9ff133ea330876ed2d39b6515 (diff)
downloademacs-faa521749378dbfd97f49a0e5c48f6da2ce1ddba.tar.gz
emacs-faa521749378dbfd97f49a0e5c48f6da2ce1ddba.zip
Prefer 'ARRAYELTS (x)' to 'sizeof x / sizeof *x'.
* alloc.c (memory_full): * charset.c (syms_of_charset): * doc.c (Fsnarf_documentation): * emacs.c (main): * font.c (BUILD_STYLE_TABLE): * keyboard.c (make_lispy_event): * profiler.c (setup_cpu_timer): * xgselect.c (xg_select): * xterm.c (record_event, STORE_KEYSYM_FOR_DEBUG): Use ARRAYELTS. * font.c (FONT_PROPERTY_TABLE_SIZE): Remove. Replace the only use with ARRAYELTS (font_property_table). * xfaces.c (DIM): Remove. All uses replaced by ARRAYELTS.
Diffstat (limited to 'src/xgselect.c')
-rw-r--r--src/xgselect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xgselect.c b/src/xgselect.c
index 1d3f916c9f8..5f71ff84014 100644
--- a/src/xgselect.c
+++ b/src/xgselect.c
@@ -41,7 +41,7 @@ xg_select (int fds_lim, fd_set *rfds, fd_set *wfds, fd_set *efds,
41 int have_wfds = wfds != NULL; 41 int have_wfds = wfds != NULL;
42 GPollFD gfds_buf[128]; 42 GPollFD gfds_buf[128];
43 GPollFD *gfds = gfds_buf; 43 GPollFD *gfds = gfds_buf;
44 int gfds_size = sizeof gfds_buf / sizeof *gfds_buf; 44 int gfds_size = ARRAYELTS (gfds_buf);
45 int n_gfds, retval = 0, our_fds = 0, max_fds = fds_lim - 1; 45 int n_gfds, retval = 0, our_fds = 0, max_fds = fds_lim - 1;
46 int i, nfds, tmo_in_millisec; 46 int i, nfds, tmo_in_millisec;
47 bool need_to_dispatch; 47 bool need_to_dispatch;