From 63f2b1a73addf4ad863260df47e509c2cf788b97 Mon Sep 17 00:00:00 2001 From: Alexandru Csete OZ9AEC Date: Sat, 7 Oct 2006 13:26:06 +0000 Subject: [PATCH] Cast from const to variable in order to avoid compiler warnings. git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2119 7ae35d74-ebe9-4afe-98af-79ac388436b8 --- src/mem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mem.c b/src/mem.c index cfcdd2c82..c6ca7f3ce 100644 --- a/src/mem.c +++ b/src/mem.c @@ -12,7 +12,7 @@ * Hamlib Interface - mem/channel calls * Copyright (c) 2000-2006 by Stephane Fillod * - * $Id: mem.c,v 1.8 2006-02-26 23:28:13 fillods Exp $ + * $Id: mem.c,v 1.9 2006-10-07 13:26:06 csete Exp $ * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Library General Public License as @@ -717,7 +717,7 @@ int HAMLIB_API rig_set_chan_all (RIG *rig, const channel_t chans[]) return -RIG_EINVAL; rc = rig->caps; - map_arg.chans = chans; + map_arg.chans = (channel_t *) chans; if (rc->set_chan_all_cb) return rc->set_chan_all_cb(rig, map_chan, (rig_ptr_t)&map_arg); @@ -921,9 +921,9 @@ int HAMLIB_API rig_set_mem_all (RIG *rig, const channel_t chans[], const struct return -RIG_EINVAL; rc = rig->caps; - mem_all_arg.chans = chans; + mem_all_arg.chans = (channel_t *) chans; mem_all_arg.cfgps = cfgps; - mem_all_arg.vals = vals; + mem_all_arg.vals = (value_t *) vals; if (rc->set_mem_all_cb) return rc->set_mem_all_cb(rig, map_chan, map_parm,