Changeset 168 for trunk/src/reglookup.c
- Timestamp:
- 03/02/10 19:08:42 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/reglookup.c
r162 r168 132 132 char* next = NULL; 133 133 char* copy; 134 uint32 ret_cur = 0;134 uint32_t ret_cur = 0; 135 135 136 136 ret_val = (char**)malloc((REGFI_MAX_DEPTH+1+1)*sizeof(char**)); … … 179 179 void freePath(char** path) 180 180 { 181 uint32 i;181 uint32_t i; 182 182 183 183 if(path == NULL) … … 196 196 const REGFI_ITER_POSITION* cur; 197 197 const REGFI_NK_REC* tmp_key; 198 uint32 buf_left = 127;199 uint32 buf_len = buf_left+1;200 uint32 name_len = 0;201 uint32 grow_amt;198 uint32_t buf_left = 127; 199 uint32_t buf_len = buf_left+1; 200 uint32_t name_len = 0; 201 uint32_t grow_amt; 202 202 char* buf; 203 203 char* new_buf; … … 245 245 if(name_len+1 > buf_left) 246 246 { 247 grow_amt = (uint32 )(buf_len/2);247 grow_amt = (uint32_t)(buf_len/2); 248 248 buf_len += name_len+1+grow_amt-buf_left; 249 249 if((new_buf = realloc(buf, buf_len)) == NULL) … … 298 298 REGFI_CLASSNAME* classname; 299 299 300 *tmp_time = nt_time_to_unix(&k->mtime);300 *tmp_time = regfi_nt2unix_time(&k->mtime); 301 301 tmp_time_s = gmtime(tmp_time); 302 302 strftime(mtime, sizeof(mtime), "%Y-%m-%d %H:%M:%S", tmp_time_s); … … 454 454 char* tmp_path_joined; 455 455 const char** tmp_path; 456 uint32 i;456 uint32_t i; 457 457 458 458 if(path == NULL) … … 557 557 REGFI_ITERATOR* iter; 558 558 int retr_path_ret; 559 uint32 argi, arge;559 uint32_t argi, arge; 560 560 561 561 /* Process command line arguments */
Note: See TracChangeset
for help on using the changeset viewer.