summaryrefslogtreecommitdiff
path: root/x11/libXfont/patches/patch-src_util_patcache.c
blob: 1508d85b6b628b4fe2a5fb041aac7093c1ed87e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-src_util_patcache.c,v 1.1.2.2 2014/05/21 13:14:03 tron Exp $

Fix compatibility with fontsproto-2.1.3.

--- src/util/patcache.c.orig	2014-01-07 16:25:08.000000000 +0000
+++ src/util/patcache.c
@@ -128,7 +128,7 @@ Hash (const char *string, int len)
 /* add entry */
 void
 CacheFontPattern (FontPatternCachePtr cache,
-		  char *pattern,
+		  const char *pattern,
 		  int patlen,
 		  FontPtr pFont)
 {
@@ -174,7 +174,7 @@ CacheFontPattern (FontPatternCachePtr ca
 /* find matching entry */
 FontPtr
 FindCachedFontPattern (FontPatternCachePtr cache,
-		       char *pattern,
+		       const char *pattern,
 		       int patlen)
 {
     int				hash;