- Timestamp:
- Sep 1, 2015, 7:38:58 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_dbIO.c
r481 r483 413 413 } 414 414 415 static void hexdump(unsigned char * data, size_t size) 416 { 417 unsigned int count =0; 418 char ith[3]; 419 420 do { 421 int2hex(data[count], ith); ith[2] = '\0'; 422 printf("%2s", ith); 423 ++count; 424 if (count % 40 == 0) putc('\n', stdout); 425 } while (count < size); 426 } 427 415 428 static size_t dbIO_fread_struct (sh_filestore_t * ptr, FILE *stream, 416 429 const char * path, int * errflag) … … 440 453 char try[5]; 441 454 455 if (1 == 0) 456 hexdump((unsigned char *)&old_struct, sizeof(old_struct)); 442 457 memset(&try_struct, '\0', sizeof(try_struct)); 443 458 if (!memcmp(&old_struct, &try_struct, sizeof(try_struct))) -
trunk/src/sh_suidchk.c
r481 r483 2347 2347 * Avoids the 'clobbered by longjmp' warning. 2348 2348 */ 2349 sh_dummy_ type = (void*) &type;2349 sh_dummy_2229_type = (void*) &type; 2350 2350 2351 2351 while (type == NULL … … 2367 2367 * Avoids the 'clobbered by longjmp' warning. 2368 2368 */ 2369 sh_dummy_ type = (void*) &type;2369 sh_dummy_2229_type = (void*) &type; 2370 2370 2371 2371 if (statfs (relpath, &fss, sizeof (struct statfs), 0) == -1) … … 2395 2395 * Avoids the 'clobbered by longjmp' warning. 2396 2396 */ 2397 sh_dummy_ type = (void*) &type;2397 sh_dummy_2229_type = (void*) &type; 2398 2398 2399 2399 if (statvfs (relpath, &fss) == -1) … … 2436 2436 * Avoids the 'clobbered by longjmp' warning. 2437 2437 */ 2438 sh_dummy_ type = (void*) &type;2438 sh_dummy_2229_type = (void*) &type; 2439 2439 2440 2440 if (S_ISLNK (statp->st_mode))
Note:
See TracChangeset
for help on using the changeset viewer.