make dlight.c use the new dlhist
This commit is contained in:
parent
40e6afeffa
commit
37ba894802
3 changed files with 12 additions and 5 deletions
4
dlhist.c
4
dlhist.c
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue