- Timestamp:
- 03/22/10 22:22:07 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/regfi-threadtest.c
r183 r185 49 49 void traverseValueList(REGFI_ITERATOR* iter) 50 50 { 51 REGFI_VK_REC* value;51 const REGFI_VK_REC* value; 52 52 53 53 value = regfi_iterator_first_value(iter); … … 55 55 { 56 56 printMsgs(iter->f); 57 regfi_free_ value(value);57 regfi_free_record(value); 58 58 value = regfi_iterator_next_value(iter); 59 59 } … … 65 65 const REGFI_NK_REC* root = NULL; 66 66 const REGFI_NK_REC* cur = NULL; 67 REGFI_NK_REC* sub = NULL;67 const REGFI_NK_REC* sub = NULL; 68 68 const REGFI_SK_REC* sk; 69 69 bool print_this = true; … … 116 116 cur = regfi_iterator_cur_key(iter); 117 117 printMsgs(iter->f); 118 regfi_free_ key(sub);118 regfi_free_record(sub); 119 119 120 120 sub = regfi_iterator_first_subkey(iter); … … 131 131 132 132 int num_iterations; 133 void threadLoop(void* file)133 void* threadLoop(void* file) 134 134 { 135 135 REGFI_ITERATOR* iter; 136 136 int i; 137 137 138 regfi_log_set_mask(REGFI_LOG_INFO|REGFI_LOG_WARN|REGFI_LOG_ERROR); 139 138 140 iter = regfi_iterator_new((REGFI_FILE*)f, REGFI_ENCODING_ASCII); 139 141 if(iter == NULL) … … 150 152 151 153 regfi_iterator_free(iter); 154 155 return NULL; 152 156 } 153 157 … … 185 189 registry_file = argv[argi]; 186 190 187 regfi_log_s tart(REGFI_LOG_INFO|REGFI_LOG_WARN|REGFI_LOG_ERROR);191 regfi_log_set_mask(REGFI_LOG_INFO|REGFI_LOG_WARN|REGFI_LOG_ERROR); 188 192 189 193 fd = openHive(registry_file); … … 211 215 212 216 regfi_free(f); 213 regfi_log_stop();214 217 close(fd); 215 218
Note: See TracChangeset
for help on using the changeset viewer.