summaryrefslogtreecommitdiff
path: root/src/bidi.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-09-17 00:06:42 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2013-09-17 00:06:42 -0700
commitb7ad2f7401a22e6189d1b0a0523a3f98d1f70be5 (patch)
tree70c6aeab8f2284f02e7cfb2b26bf61471d936c3c /src/bidi.c
parent1893694e3e96560a1b750e257f774e23d3b06836 (diff)
downloademacs-b7ad2f7401a22e6189d1b0a0523a3f98d1f70be5.tar.gz
Don't overuse 'const' in types of locals.
* bidi.c (bidi_count_bytes): * gtkutil.c, gtkutil.h (xg_event_is_for_menubar) (xg_event_is_for_scrollbar): * xselect.c (x_handle_property_notify) (x_handle_selection_notify, x_handle_dnd_message): * xsettings.c, xsettings.h (xft_settings_event): * xterm.c (x_handle_net_wm_state, handle_one_event) (x_menubar_window_to_frame, x_detect_focus_change) (construct_mouse_click, note_mouse_movement) (x_scroll_bar_to_input_event, x_scroll_bar_expose) (x_scroll_bar_handle_click, x_scroll_bar_note_movement) (handle_one_xevent, x_handle_net_wm_state): * xterm.h (x_handle_property_notify, x_handle_selection_notify) (x_handle_dnd_message): Avoid unnecessary 'const', typically the second 'const' in 'const foo * const arg', a 'const' that does not affect the API and doesn't significantly help the human reader.
Diffstat (limited to 'src/bidi.c')
-rw-r--r--src/bidi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bidi.c b/src/bidi.c
index 7d082a94997..dc905cd9e5f 100644
--- a/src/bidi.c
+++ b/src/bidi.c
@@ -870,8 +870,8 @@ bidi_line_init (struct bidi_it *bidi_it)
are zero-based character positions in S, BEGBYTE is byte position
corresponding to BEG. UNIBYTE means S is a unibyte string. */
static ptrdiff_t
-bidi_count_bytes (const unsigned char *s, const ptrdiff_t beg,
- const ptrdiff_t begbyte, const ptrdiff_t end, bool unibyte)
+bidi_count_bytes (const unsigned char *s, ptrdiff_t beg,
+ ptrdiff_t begbyte, ptrdiff_t end, bool unibyte)
{
ptrdiff_t pos = beg;
const unsigned char *p = s + begbyte, *start = p;