change the demo code

This commit is contained in:
Jeff Tao 2020-10-29 14:24:44 +00:00
parent adea18c026
commit e8f509761f
1 changed files with 3 additions and 2 deletions

View File

@ -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