version 1.2, 2015/02/12 03:09:22 |
version 1.3, 2015/02/12 04:26:46 |
|
|
rv = hia->hash - hib->hash; |
rv = hia->hash - hib->hash; |
if (rv != 0) |
if (rv != 0) |
return (rv); |
return (rv); |
rv = bcmp(hia->fingerprint, hib->fingerprint, sizeof(hia->fingerprint)); |
rv = memcmp(hia->fingerprint, hib->fingerprint, |
|
sizeof(hia->fingerprint)); |
if (rv != 0) |
if (rv != 0) |
return (rv); |
return (rv); |
return strcmp(hia->filename, hib->filename); |
return strcmp(hia->filename, hib->filename); |
|
|
for (entry = head; entry != NULL; entry = entry->next) { |
for (entry = head; entry != NULL; entry = entry->next) { |
if (last != NULL) { |
if (last != NULL) { |
if (entry->hash == last->hash) { |
if (entry->hash == last->hash) { |
if (bcmp(entry->fingerprint, last->fingerprint, |
if (memcmp(entry->fingerprint, |
|
last->fingerprint, |
sizeof(entry->fingerprint)) == 0) { |
sizeof(entry->fingerprint)) == 0) { |
fprintf(stderr, "WARNING: duplicate %s " |
fprintf(stderr, "WARNING: duplicate %s " |
"in %s (using %s), ignoring...\n", |
"in %s (using %s), ignoring...\n", |