Cast constant caps to variable caps in order to avoid compiler warnings.

git-svn-id: https://hamlib.svn.sourceforge.net/svnroot/hamlib/trunk@2118 7ae35d74-ebe9-4afe-98af-79ac388436b8
Hamlib-1.2.6rc1
Alexandru Csete OZ9AEC 2006-10-07 13:08:19 +00:00
rodzic 7f5a359c0e
commit 8798d79045
2 zmienionych plików z 8 dodań i 4 usunięć

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Interface - main file
* Copyright (c) 2000-2006 by Stephane Fillod and Frank Singleton
*
* $Id: rig.c,v 1.92 2006-02-26 19:28:04 fillods Exp $
* $Id: rig.c,v 1.93 2006-10-07 13:08:19 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
@ -261,7 +261,9 @@ RIG * HAMLIB_API rig_init(rig_model_t rig_model)
return NULL;
}
rig->caps = caps;
/* caps is const, so we need to tell compiler
that we now what we are doing */
rig->caps = (struct rig_caps *) caps;
/*
* populate the rig->state

Wyświetl plik

@ -2,7 +2,7 @@
* Hamlib Interface - main file
* Copyright (c) 2000-2006 by Stephane Fillod and Frank Singleton
*
* $Id: rotator.c,v 1.19 2006-02-26 19:29:19 fillods Exp $
* $Id: rotator.c,v 1.20 2006-10-07 13:08:19 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
@ -191,7 +191,9 @@ ROT * HAMLIB_API rot_init(rot_model_t rot_model)
return NULL;
}
rot->caps = caps;
/* caps is const, so we need to tell compiler
that we now what we are doing */
rot->caps = (struct rot_caps *) caps;
/*
* populate the rot->state