Группа :: Графические оболочки/KDE
Пакет: kdeedu
Главная Изменения Спек Патчи Загрузить Bugs and FR
Патч: kstars-3.2.2-fix-compile.patch
--- kdeedu-3.2.2/kstars/kstars/indi/indidevapi.h~ 2004-04-15 19:59:56 +0400
+++ kdeedu-3.2.2/kstars/kstars/indi/indidevapi.h 2004-04-15 20:00:47 +0400
@@ -153,11 +153,11 @@ extern ISwitch *IUFindSwitch(const ISwit
extern ISwitch *IUFindOnSwitch (const ISwitchVectorProperty *tp);
/* function to set all property switches off */
-extern void IUResetSwitches(const ISwitchVectorProperty *svp);
+extern void IUResetSwitches(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 */
extern void IUSaveText (IText *tp, const char *newtext);
--- kdeedu-3.2.2/kstars/kstars/indi/indidrivermain.c~ 2004-04-15 19:57:54 +0400
+++ kdeedu-3.2.2/kstars/kstars/indi/indidrivermain.c 2004-04-15 20:00:42 +0400
@@ -536,7 +536,7 @@ IUFindOnSwitch(const ISwitchVectorProper
/* Set all switches to off */
void
-IUResetSwitches(const ISwitchVectorProperty *svp)
+IUResetSwitches(ISwitchVectorProperty *svp)
{
int i;
@@ -546,7 +546,7 @@ 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;
@@ -571,7 +571,7 @@ 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;