ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

xorg-libxfont-const.diff (621B)


      1 diff -urN libXfont-1.4.7.orig/src/util/patcache.c libXfont-1.4.7/src/util/patcache.c
      2 --- libXfont-1.4.7.orig/src/util/patcache.c	2014-01-07 10:25:08.000000000 -0600
      3 +++ libXfont-1.4.7/src/util/patcache.c	2014-04-19 13:28:51.509242842 -0500
      4 @@ -128,7 +128,7 @@
      5  /* add entry */
      6  void
      7  CacheFontPattern (FontPatternCachePtr cache,
      8 -		  char *pattern,
      9 +		  const char *pattern,
     10  		  int patlen,
     11  		  FontPtr pFont)
     12  {
     13 @@ -174,7 +174,7 @@
     14  /* find matching entry */
     15  FontPtr
     16  FindCachedFontPattern (FontPatternCachePtr cache,
     17 -		       char *pattern,
     18 +		       const char *pattern,
     19  		       int patlen)
     20  {
     21      int				hash;