Re: gnucap development snapshot 2009-08-13

Thomas Sailer <[email protected]>
Newsgroups gmane.comp.gnu.gnucap.devel
Message-ID <[email protected]>
Al,

there are two constness issues with newer (and more const-correct)
versions of glibc. The following patch makes gnucap compileable on
fedora11.

Please apply,
thanks, Tom

--- ./src/ap_match.cc.jnx	2009-08-18 22:50:07.000000000 +0200
+++ ./src/ap_match.cc	2009-08-18 22:50:18.000000000 +0200
@@ -64,7 +64,7 @@
       }
     }else{
       // mismatch
-      char* bar = strchr(str2, '|');
+      const char* bar = strchr(str2, '|');
       if (bar && (bar[-1] != '\\')) {
 	str2 = bar+1;
 	reset(start);
--- ./modelgen/ap_match.cc.jnx	2009-08-18 22:47:45.000000000 +0200
+++ ./modelgen/ap_match.cc	2009-08-18 22:48:10.000000000 +0200
@@ -64,7 +64,7 @@
       }
     }else{
       // mismatch
-      char* bar = strchr(str2, '|');
+      const char* bar = strchr(str2, '|');
       if (bar && (bar[-1] != '\\')) {
 	str2 = bar+1;
 	reset(start);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.