Changeset 183
- Timestamp:
- 03/17/10 02:50:15 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/regfi-threadtest.c
r180 r183 33 33 /* Globals, influenced by command line parameters */ 34 34 bool print_verbose = false; 35 c har* registry_file = NULL;35 const char* registry_file = NULL; 36 36 37 37 /* Other globals */ … … 183 183 bailOut(REGLOOKUP_EXIT_USAGE, ""); 184 184 } 185 186 if((registry_file = strdup(argv[argi])) == NULL) 187 bailOut(REGLOOKUP_EXIT_OSERR, "ERROR: Memory allocation problem.\n");185 registry_file = argv[argi]; 186 187 regfi_log_start(REGFI_LOG_INFO|REGFI_LOG_WARN|REGFI_LOG_ERROR); 188 188 189 189 fd = openHive(registry_file); … … 200 200 bailOut(REGLOOKUP_EXIT_NOINPUT, "ERROR: Failed to create REGFI_FILE structure.\n"); 201 201 } 202 203 regfi_set_message_mask(f, REGFI_MSG_INFO|REGFI_MSG_WARN|REGFI_MSG_ERROR);204 202 205 203 threads = malloc(sizeof(pthread_t)*num_threads); … … 213 211 214 212 regfi_free(f); 213 regfi_log_stop(); 215 214 close(fd); 216 215
Note: See TracChangeset
for help on using the changeset viewer.