From 524904b45367ae17d287704bdbbe0744866fdd23 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 28 Jan 2002 09:26:14 +0000 Subject: [PATCH] C++ compile. --- ztest/ztest.c | 4 ++-- zutil/z3950oid.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ztest/ztest.c b/ztest/ztest.c index 645ebd8..93af0dc 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2002, Index Data. * See the file LICENSE for details. * - * $Id: ztest.c,v 1.50 2002-01-23 22:40:36 adam Exp $ + * $Id: ztest.c,v 1.51 2002-01-28 09:26:14 adam Exp $ */ /* @@ -555,7 +555,7 @@ int ztest_fetch(void *handle, bend_fetch_rr *r) return 0; } fseek (f, 0L, SEEK_SET); - r->record = odr_malloc (r->stream, size); + r->record = (char*) odr_malloc (r->stream, size); r->len = size; r->output_format = VAL_POSTSCRIPT; fread (r->record, size, 1, f); diff --git a/zutil/z3950oid.c b/zutil/z3950oid.c index f8eb6ab..b0b6a59 100644 --- a/zutil/z3950oid.c +++ b/zutil/z3950oid.c @@ -1,8 +1,8 @@ /* - * Copyright (c) 1995-2001, Index Data + * Copyright (c) 1995-2002, Index Data * See the file LICENSE for details. * - * $Id: z3950oid.c,v 1.1 2001-09-25 07:35:37 adam Exp $ + * $Id: z3950oid.c,v 1.2 2002-01-28 09:27:17 adam Exp $ */ #if HAVE_CONFIG_H @@ -17,8 +17,8 @@ Odr_oid *yaz_oidval_to_z3950oid (ODR o, int oid_class, int oid_value) int oid[OID_SIZE]; ident.proto = PROTO_Z3950; - ident.oclass = oid_class; - ident.value = oid_value; + ident.oclass = (enum oid_class) oid_class; + ident.value = (enum oid_value) oid_value; if (ident.value == VAL_NONE) return 0; @@ -32,7 +32,7 @@ Odr_oid *yaz_str_to_z3950oid (ODR o, int oid_class, const char *str) int oid[OID_SIZE]; ident.proto = PROTO_Z3950; - ident.oclass = oid_class; + ident.oclass = (enum oid_class) oid_class; ident.value = oid_getvalbyname(str); if (ident.value == VAL_NONE) -- 1.7.10.4