aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Raeburn2002-07-16 19:48:21 +0000
committerKen Raeburn2002-07-16 19:48:21 +0000
commit637ddd320488389781fb3a3de5f5c670c4eaa767 (patch)
treec3a93252089eee507602b43f44b7cd8ba25e3461
parent19290c65c2aa9f763e36d6228a3e67c93dee5632 (diff)
downloademacs-637ddd320488389781fb3a3de5f5c670c4eaa767.tar.gz
emacs-637ddd320488389781fb3a3de5f5c670c4eaa767.zip
(font_family_registry, fs_query_fontset):
(list_fontsets): Use const for pointer to lisp string data.
-rw-r--r--src/fontset.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fontset.c b/src/fontset.c
index 2f2b221d782..fbf3e09bf0b 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -370,8 +370,8 @@ font_family_registry (fontname, force)
370 int force; 370 int force;
371{ 371{
372 Lisp_Object family, registry; 372 Lisp_Object family, registry;
373 char *p = SDATA (fontname); 373 const char *p = SDATA (fontname);
374 char *sep[15]; 374 const char *sep[15];
375 int i = 0; 375 int i = 0;
376 376
377 while (*p && i < 15) 377 while (*p && i < 15)
@@ -782,7 +782,7 @@ fs_query_fontset (name, regexpp)
782 for (i = 0; i < ASIZE (Vfontset_table); i++) 782 for (i = 0; i < ASIZE (Vfontset_table); i++)
783 { 783 {
784 Lisp_Object fontset; 784 Lisp_Object fontset;
785 unsigned char *this_name; 785 const unsigned char *this_name;
786 786
787 fontset = FONTSET_FROM_ID (i); 787 fontset = FONTSET_FROM_ID (i);
788 if (NILP (fontset) 788 if (NILP (fontset)
@@ -847,7 +847,7 @@ list_fontsets (f, pattern, size)
847 for (id = 0; id < ASIZE (Vfontset_table); id++) 847 for (id = 0; id < ASIZE (Vfontset_table); id++)
848 { 848 {
849 Lisp_Object fontset; 849 Lisp_Object fontset;
850 unsigned char *name; 850 const unsigned char *name;
851 851
852 fontset = FONTSET_FROM_ID (id); 852 fontset = FONTSET_FROM_ID (id);
853 if (NILP (fontset) 853 if (NILP (fontset)