From 6acf28a0195560e01bac84460171b54f176a0d92 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 16 Oct 2003 10:26:58 +0000 Subject: [PATCH] Add const in a few places to avoid warnings --- src/yaz-marc-sample.cpp | 4 ++-- src/yaz-my-client.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/yaz-marc-sample.cpp b/src/yaz-marc-sample.cpp index 9895359..4af243a 100644 --- a/src/yaz-marc-sample.cpp +++ b/src/yaz-marc-sample.cpp @@ -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 -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" diff --git a/src/yaz-my-client.cpp b/src/yaz-my-client.cpp index 4ad8319..cce989d 100644 --- a/src/yaz-my-client.cpp +++ b/src/yaz-my-client.cpp @@ -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 @@ -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, "[':'][/]"}, {"connect", &MyClient::cmd_connect, "[':'][/]"}, -- 1.7.10.4