From 975c22d3fb94aaf91399f1967dbb173129205888 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 16 Feb 2004 21:40:39 +0000 Subject: [PATCH] Fix type cast warning issued by GCC 3.3.3 --- client/client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/client.c b/client/client.c index 2cf6792..f009640 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: client.c,v 1.230 2004-02-14 15:58:42 adam Exp $ + * $Id: client.c,v 1.231 2004-02-16 21:40:39 adam Exp $ */ #include @@ -711,7 +711,7 @@ static void display_record(Z_External *r) if (ent && r->which == Z_External_octet) { Z_ext_typeent *type = z_ext_getentbyref(ent->value); - void *rr; + char *rr; if (type) { @@ -720,7 +720,7 @@ static void display_record(Z_External *r) */ odr_setbuf(in, (char*)r->u.octet_aligned->buf, r->u.octet_aligned->len, 0); - if (!(*type->fun)(in, (char **)&rr, 0, 0)) + if (!(*type->fun)(in, &rr, 0, 0)) { odr_perror(in, "Decoding constructed record."); fprintf(stdout, "[Near %d]\n", odr_offset(in)); -- 1.7.10.4