X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=client%2Fadmin.c;h=1e956dacd0489b7e0b6e9e57bfff4a84ccbe37d4;hp=cfb2c93c2161a0c1e6dd5b2d725fee82b6bb2543;hb=e5324215018e129dd19734acd0e683e5af748423;hpb=247a4ed52a51a1dbd85877438b86a39ca68a3cca diff --git a/client/admin.c b/client/admin.c index cfb2c93..1e956da 100644 --- a/client/admin.c +++ b/client/admin.c @@ -1,6 +1,9 @@ /* * $Log: admin.c,v $ - * Revision 1.8 2000-04-17 14:21:38 adam + * Revision 1.9 2001-02-21 13:46:53 adam + * C++ fixes. + * + * Revision 1.8 2000/04/17 14:21:38 adam * WIN32 update. * * Revision 1.7 2000/04/05 07:39:54 adam @@ -251,7 +254,7 @@ int cmd_adm_import(char *arg) { Z_Segment *segment; Z_NamePlusRecord *rec; - Odr_oct *oct = odr_malloc (out, sizeof(*oct)); + Odr_oct *oct = (Odr_oct *) odr_malloc (out, sizeof(*oct)); if (!apdu) { @@ -270,7 +273,7 @@ int cmd_adm_import(char *arg) rec->u.intermediateFragment->u.notExternallyTagged = oct; oct->len = oct->size = status.st_size; - oct->buf = odr_malloc (out, oct->size); + oct->buf = (unsigned char *) odr_malloc (out, oct->size); fread (oct->buf, 1, oct->size, inf); fclose (inf);