summaryrefslogtreecommitdiff
path: root/misc/vfu/patches/patch-vslib_regexp3.cpp
blob: 031c48eeb7216adc183cb442f7a4a3b655b3375c (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-vslib_regexp3.cpp,v 1.1 2014/06/29 19:43:54 dholland Exp $

Sprinkle const to make more modern C++ compilers happier.

--- vslib/regexp3.cpp~	2002-04-26 06:40:08.000000000 +0000
+++ vslib/regexp3.cpp
@@ -183,7 +183,7 @@ int regmatch( char *prog); /* 0 failure,
 int regrepeat( char *p);
 char * regnext( char *p);
 char * regprop( char *op);
-void regerror( char *s );
+void regerror( const char *s );
  
 
 char regerror_str[REGERROR_STR_SIZE];
@@ -226,7 +226,7 @@ int regmatchpos( const char* pattern, co
   return res;
 }
 
-void regerror( char *s )
+void regerror( const char *s )
 {
   strcpy( regerror_str, s );
 };