diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-02 09:16:05 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-11 20:15:06 -0800 |
commit | 3715cd752bac912a56aa1cbb9dd874624a709aab (patch) | |
tree | 2558e6031d81d08dbf35b6b8ecf6060a0487548c /include | |
parent | 8d130ac0fcf19e0e0dd0a404d9317fd8860baad4 (diff) |
Add const attributes to fix gcc -Wwrite-strings warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/X11/fonts/bdfint.h | 6 | ||||
-rw-r--r-- | include/X11/fonts/fntfil.h | 2 | ||||
-rw-r--r-- | include/X11/fonts/fntfilst.h | 2 | ||||
-rw-r--r-- | include/X11/fonts/fontmisc.h | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/include/X11/fonts/bdfint.h b/include/X11/fonts/bdfint.h index a8d8459..c037b99 100644 --- a/include/X11/fonts/bdfint.h +++ b/include/X11/fonts/bdfint.h @@ -65,11 +65,11 @@ typedef struct BDFSTAT { BOOL haveDefaultCh; } bdfFileState; -extern void bdfError ( char * message, ... ); -extern void bdfWarning ( char *message, ... ); +extern void bdfError ( const char * message, ... ); +extern void bdfWarning ( const char *message, ... ); extern unsigned char * bdfGetLine ( FontFilePtr file, unsigned char *buf, int len ); -extern Atom bdfForceMakeAtom ( char *str, int *size ); +extern Atom bdfForceMakeAtom ( const char *str, int *size ); extern Atom bdfGetPropertyValue ( char *s ); extern int bdfIsInteger ( char *str ); extern unsigned char bdfHexByte ( unsigned char *s ); diff --git a/include/X11/fonts/fntfil.h b/include/X11/fonts/fntfil.h index feefdb3..a32df63 100644 --- a/include/X11/fonts/fntfil.h +++ b/include/X11/fonts/fntfil.h @@ -138,7 +138,7 @@ extern void FontFileFreeDir ( FontDirectoryPtr dir ); extern void FontFileFreeEntry ( FontEntryPtr entry ); extern void FontFileFreeTable ( FontTablePtr table ); extern Bool FontFileInitTable ( FontTablePtr table, int size ); -extern FontDirectoryPtr FontFileMakeDir ( char *dirName, int size ); +extern FontDirectoryPtr FontFileMakeDir ( const char *dirName, int size ); extern Bool FontFileMatchName ( char *name, int length, FontNamePtr pat ); extern char * FontFileSaveString ( char *s ); extern void FontFileSortDir ( FontDirectoryPtr dir ); diff --git a/include/X11/fonts/fntfilst.h b/include/X11/fonts/fntfilst.h index 8926f95..6e8645e 100644 --- a/include/X11/fonts/fntfilst.h +++ b/include/X11/fonts/fntfilst.h @@ -124,7 +124,7 @@ typedef struct _FontDirectory { #define CAP_CHARSUBSETTING 0x2 typedef struct _FontRenderer { - char *fileSuffix; + const char *fileSuffix; int fileSuffixLen; int (*OpenBitmap)(FontPathElementPtr /* fpe */, FontPtr * /* pFont */, diff --git a/include/X11/fonts/fontmisc.h b/include/X11/fonts/fontmisc.h index 3da1e63..73a8247 100644 --- a/include/X11/fonts/fontmisc.h +++ b/include/X11/fonts/fontmisc.h @@ -52,7 +52,7 @@ in this Software without prior written authorization from The Open Group. #define FALSE 0 #endif -extern Atom MakeAtom ( char *string, unsigned len, int makeit ); +extern Atom MakeAtom ( const char *string, unsigned len, int makeit ); extern int ValidAtom ( Atom atom ); extern char *NameForAtom (Atom atom); |