Archived
1
0
Fork 0

make dlight.c use the new dlhist

This commit is contained in:
Henrik Hautakoski 2011-12-15 13:35:13 +01:00
parent 40e6afeffa
commit 37ba894802
3 changed files with 12 additions and 5 deletions

View file

@ -68,7 +68,7 @@ static unsigned hash(const char *s) {
unsigned h;
for(h = 0; *s; s++)
for(h = 0; *s; s++)
h = ((unsigned)*s) + (h << 6) + (h << 16) - h;
return h;
}
@ -297,7 +297,7 @@ static int path_cmp(const char *a, const char *b) {
if (stat(a, &sa) < 0 || stat(b, &sb) < 0)
return 0;
return sa.st_dev == sb.st_dev &&
return sa.st_dev == sb.st_dev &&
sa.st_ino == sb.st_ino;
}