X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=client%2Fclient.c;h=6be4576c8dd16a2fa6f423598a13ee956c6f796a;hp=09d68f5ab8a3eecc3773dc9e3b8587240a382444;hb=26bc83eeda2418e09c32f2ca4c9327901568fe98;hpb=4ebb00c5c13152f7c6742737ed1547b131af893b diff --git a/client/client.c b/client/client.c index 09d68f5..6be4576 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: client.c,v 1.294 2005-07-22 06:23:14 adam Exp $ + * $Id: client.c,v 1.296 2005-08-24 11:25:34 heikki Exp $ */ #include @@ -406,7 +406,7 @@ static int process_initResponse(Z_InitResponse *res) if (oid->value == VAL_OCLCUI) { Z_OCLC_UserInformation *oclc_ui; ODR decode = odr_createmem(ODR_DECODE); - odr_setbuf(decode, sat->buf, sat->len, 0); + odr_setbuf(decode, (char *) sat->buf, sat->len, 0); if (!z_OCLC_UserInformation(decode, &oclc_ui, 0, 0)) printf ("Bad OCLC UserInformation:\n"); else @@ -4245,6 +4245,7 @@ static struct { } cmd_array[] = { {"open", cmd_open, "('tcp'|'ssl')':[':'][/]",NULL,0,NULL}, {"quit", cmd_quit, "",NULL,0,NULL}, + {"exit", cmd_quit, "",NULL,0,NULL}, {"find", cmd_find, "",NULL,0,NULL}, {"delete", cmd_delete, "",NULL,0,NULL}, {"base", cmd_base, "",NULL,0,NULL},