1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-30 11:09:23 +00:00

* xterm.c (x_create_toolkit_scroll_bar): Use const * for pointers

to read-only memory.
This commit is contained in:
Paul Eggert 2011-04-15 21:13:47 -07:00
parent 1086c0956d
commit e9829fdfd2
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
2011-04-16 Paul Eggert <eggert@cs.ucla.edu>
* 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.

View File

@ -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,