From: Paul Eggert Date: Sat, 16 Apr 2011 04:13:47 +0000 (-0700) Subject: * xterm.c (x_create_toolkit_scroll_bar): Use const * for pointers X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~268^2~41 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e9829fdfd2c58205bd13046fd8a6d428527c0f66;p=emacs.git * xterm.c (x_create_toolkit_scroll_bar): Use const * for pointers to read-only memory. --- diff --git a/src/ChangeLog b/src/ChangeLog index ec6a1a28429..bbe008ce96c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2011-04-16 Paul Eggert + * xterm.c (x_create_toolkit_scroll_bar): Use const * for pointers + to read-only memory. + * fns.c (vector): Remove; this old hack is no longer needed. * xsmfns.c (create_client_leader_window): Rename shadowing arg. diff --git a/src/xterm.c b/src/xterm.c index e0f38aab2c2..121ac22c72f 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -4522,7 +4522,7 @@ x_create_toolkit_scroll_bar (struct frame *f, struct scroll_bar *bar) Widget widget; Arg av[20]; int ac = 0; - char *scroll_bar_name = SCROLL_BAR_NAME; + char const *scroll_bar_name = SCROLL_BAR_NAME; unsigned long pixel; BLOCK_INPUT; @@ -4674,8 +4674,8 @@ x_create_toolkit_scroll_bar (struct frame *f, struct scroll_bar *bar) f->output_data.x->edit_widget, av, ac); { - char *initial = ""; - char *val = initial; + char const *initial = ""; + char const *val = initial; XtVaGetValues (widget, XtNscrollVCursor, (XtPointer) &val, #ifdef XtNarrowScrollbars XtNarrowScrollbars, (XtPointer) &xaw3d_arrow_scroll,