Add const in a few places to avoid warnings
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 16 Oct 2003 10:26:58 +0000 (10:26 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 16 Oct 2003 10:26:58 +0000 (10:26 +0000)
src/yaz-marc-sample.cpp
src/yaz-my-client.cpp

index 9895359..4af243a 100644 (file)
@@ -2,12 +2,12 @@
  * Copyright (c) 2000-2001, Index Data.
  * See the file LICENSE for details.
  * 
- * $Id: yaz-marc-sample.cpp,v 1.4 2003-09-23 16:26:16 mike Exp $
+ * $Id: yaz-marc-sample.cpp,v 1.5 2003-10-16 10:26:58 adam Exp $
  */
 
 #include <yaz++/z-server.h>
 
-static char *marc_records[] = {
+static const char *marc_records[] = {
   "\x30\x30\x33\x36\x36\x6E\x61\x6D\x20\x20\x32\x32\x30\x30\x31\x36"
   "\x39\x38\x61\x20\x34\x35\x30\x30\x30\x30\x31\x30\x30\x31\x33\x30"
   "\x30\x30\x30\x30\x30\x30\x33\x30\x30\x30\x34\x30\x30\x30\x31\x33"
index 4ad8319..cce989d 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 1998-2003, Index Data.
  * See the file LICENSE for details.
  * 
- * $Id: yaz-my-client.cpp,v 1.13 2003-10-01 13:13:51 adam Exp $
+ * $Id: yaz-my-client.cpp,v 1.14 2003-10-16 10:26:58 adam Exp $
  */
 
 #include <yaz/log.h>
@@ -542,9 +542,9 @@ int MyClient::processCommand(const char *commandLine)
     cmdArgs[0] = '\0';
     cmdStr[0] = '\0';
     static struct {
-        char *cmd;
+        const char *cmd;
         int (MyClient::*fun)(char *arg);
-        char *ad;
+        const char *ad;
     } cmd[] = {
        {"open", &MyClient::cmd_open, "<host>[':'<port>][/<database>]"},
        {"connect", &MyClient::cmd_connect, "<host>[':'<port>][/<database>]"},