[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnucap-devel] Re: gnucap development snapshot 2009-08-13
From: |
Thomas Sailer |
Subject: |
[Gnucap-devel] Re: gnucap development snapshot 2009-08-13 |
Date: |
Tue, 18 Aug 2009 23:00:15 +0200 |
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);