1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-24 14:30:43 -08:00

Fix compilation warnings on MS-DOS due to constifying of pointers in xmenu.c.

src/msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
 Adapt all references accordingly.
 src/msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
This commit is contained in:
Eli Zaretskii 2011-03-12 12:51:31 +02:00
parent a276370e0a
commit 7ac80be95a
3 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,10 @@
2011-03-12 Eli Zaretskii <eliz@gnu.org>
* msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
Adapt all references accordingly.
* msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
2011-03-11 Tom Tromey <tromey@redhat.com>
* buffer.c (syms_of_buffer): Remove obsolete comment.

View file

@ -2999,17 +2999,17 @@ XMenuCreate (Display *foo1, Window foo2, char *foo3)
to do. */
int
XMenuAddPane (Display *foo, XMenu *menu, char *txt, int enable)
XMenuAddPane (Display *foo, XMenu *menu, const char *txt, int enable)
{
int len;
char *p;
const char *p;
if (!enable)
abort ();
IT_menu_make_room (menu);
menu->submenu[menu->count] = IT_menu_create ();
menu->text[menu->count] = txt;
menu->text[menu->count] = (char *)txt;
menu->panenumber[menu->count] = ++menu->panecount;
menu->help_text[menu->count] = NULL;
menu->count++;

View file

@ -105,7 +105,7 @@ typedef struct x_menu_struct
} XMenu;
XMenu *XMenuCreate (Display *, Window, char *);
int XMenuAddPane (Display *, XMenu *, char *, int);
int XMenuAddPane (Display *, XMenu *, const char *, int);
int XMenuAddSelection (Display *, XMenu *, int, int, char *, int, char *);
void XMenuLocate (Display *, XMenu *, int, int, int, int,
int *, int *, int *, int *);