[Kstars-devel] kdeedu/kstars/kstars/indi
Jason Harris
kstars at 30doradus.org
Wed Apr 21 20:57:52 CEST 2004
CVS commit by harris:
Fixing bug #80019 (compile error in indi).
Some pointers were declared const, but then their data was modified.
This only causes a warning for some versions of gcc, but throws an
error on other versions.
CCMAIL: kstars-devel at kde.org
CCMAIL: xavier114fch at hotmail.com
M +3 -3 indidevapi.h 1.4
M +3 -3 indidrivermain.c 1.7
--- kdeedu/kstars/kstars/indi/indidevapi.h #1.3:1.4
@@ -156,7 +156,7 @@ extern ISwitch *IUFindOnSwitch (const IS
extern void IUResetSwitches(const ISwitchVectorProperty *svp);
-extern int IUUpdateSwitches(const ISwitchVectorProperty *svp, ISState *states, char *names[], int n);
+extern int IUUpdateSwitches(ISwitchVectorProperty *svp, ISState *states, char *names[], int n);
-extern int IUUpdateNumbers(const INumberVectorProperty *nvp, double values[], char *names[], int n);
+extern int IUUpdateNumbers(INumberVectorProperty *nvp, double values[], char *names[], int n);
/* function to reliably save new text in a IText */
--- kdeedu/kstars/kstars/indi/indidrivermain.c #1.6:1.7
@@ -547,5 +547,5 @@ IUResetSwitches(const ISwitchVectorPrope
/* Update property switches in accord with states and names. */
int
-IUUpdateSwitches(const ISwitchVectorProperty *svp, ISState *states, char *names[], int n)
+IUUpdateSwitches(ISwitchVectorProperty *svp, ISState *states, char *names[], int n)
{
int i=0;
@@ -572,5 +572,5 @@ IUUpdateSwitches(const ISwitchVectorProp
/* Update property numbers in accord with values and names */
-int IUUpdateNumbers(const INumberVectorProperty *nvp, double values[], char *names[], int n)
+int IUUpdateNumbers(INumberVectorProperty *nvp, double values[], char *names[], int n)
{
int i=0;
More information about the Kstars-devel
mailing list