change the demo code
This commit is contained in:
parent
adea18c026
commit
e8f509761f
|
@ -47,14 +47,15 @@ int taosListRef();
|
||||||
|
|
||||||
void demoIterateRefs(int refId) {
|
void demoIterateRefs(int refId) {
|
||||||
|
|
||||||
void *p = taosGetRefNext(refId, NULL);
|
void *p = taosIterateRef(refId, NULL);
|
||||||
while (p) {
|
while (p) {
|
||||||
|
|
||||||
// process P
|
// process P
|
||||||
|
|
||||||
p = taosGetRefNext(refId, p);
|
p = taosIterateRef(refId, p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
Loading…
Reference in New Issue