]> granicus.if.org Git - pdns/commitdiff
fix compiler warning in goracle backend
authorKees Monshouwer <mind04@monshouwer.org>
Sun, 29 Dec 2013 21:48:34 +0000 (22:48 +0100)
committermind04 <mind04@monshouwer.org>
Sun, 29 Dec 2013 21:48:34 +0000 (22:48 +0100)
modules/goraclebackend/soracle.cc

index 9b4bc59a62df89aa335b9da35a8ef0246677157b..9825eee756a26bede3f88e48a963369873c15276 100644 (file)
@@ -118,7 +118,7 @@ int SOracle::doCommand(const string &query)
 int getNumFields(const string& query)
 {
   string lquery=toLower(query);
-  char* delim[]={" from ", "\tfrom\t", "\tfrom ", " from\t", 0};
+  const char* delim[]={" from ", "\tfrom\t", "\tfrom ", " from\t", 0};
   int n=0;
   string::size_type pos;
   for(n=0; delim[n] && (pos=lquery.find(delim[n]))==string::npos; ++n)