summaryrefslogtreecommitdiff
path: root/community/synce-rra/build-fix.diff
blob: 848fe2d71daaafdd84e0d4ad65eda35d279e13fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
diff -Nruad -Nruad librra-0.11.1.orig/python/pyrra.pyx librra-0.11.1/python/pyrra.pyx
--- librra-0.11.1.orig/python/pyrra.pyx	2008-05-23 20:56:17.000000000 +0100
+++ librra-0.11.1/python/pyrra.pyx	2008-05-23 20:56:30.000000000 +0100
@@ -132,7 +132,7 @@
 cdef bool _CB_TypesCallback(RRA_SyncMgrTypeEvent event, uint32_t type, uint32_t count, uint32_t * ids, context):
 	ida=[]
 	cdef bool rc
-	for i from 0 <= i < count:
+	for 0 <= i < count:
 		ida.append(ids[i])
 	rc=context.CB_TypeCallback(<RRA_SyncMgrTypeEvent> event,type,ida)
 	return rc
@@ -192,9 +192,9 @@
 	# Event processing
 	#
 
-	def SubscribeObjectEvents(self,type):
+	def SubscribeObjectEvents(self,type_id):
 		if self.connected != 0:
-			rra_syncmgr_subscribe(self.instance, type, _CB_TypesCallback, self)
+			rra_syncmgr_subscribe(self.instance, type_id, _CB_TypesCallback, self)
 			return 0
 		return -1
 
@@ -260,7 +260,7 @@
 		c_oids = <uint32_t *>malloc(sizeof(uint32_t)*c_cnt)
 		rc=0
 		if c_oids != NULL:
-			for i from 0 <= i < c_cnt:
+			for 0 <= i < c_cnt:
 				c_oids[i] = oids[i]
 			rc= rra_syncmgr_get_multiple_objects(self.instance,type_id, c_cnt, c_oids,_CB_WriterCallback, self)
 			free(c_oids)
@@ -291,7 +291,7 @@
 				rc = rra_syncmgr_put_multiple_objects(self.instance,type_id,c_oidcount,
 								      c_oids,c_newoids,flags,_CB_ReaderCallback,self)
 				if rc == True:
-					for i from 0 <= i < c_oidcount:
+					for 0 <= i < c_oidcount:
 						newoid_array.append(c_newoids[i])
 			free(c_oids)
 		return rc
@@ -312,7 +312,7 @@
 	# (to be overloaded by user)
 	#
 
-	def CB_TypeCallback(self, event, type, idarray):
+	def CB_TypeCallback(self, event, type_id, idarray):
 		return False
 		
 	def CB_ObjectWriterCallback(self,type_id, obj_id, data):