Overview
Comment: | Fixed signed-ness issue and removed unessecary operation |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | d43f3e4da384f87fb87ae7369c8d68cfc2da771f |
User & Date: | rkeene on 2014-11-14 04:19:07 |
Other Links: | manifest | tags |
Context
2014-11-14
| ||
04:27 | Fixed extraneous profiling flag check-in: 9c566a30db user: rkeene tags: trunk | |
04:19 | Fixed signed-ness issue and removed unessecary operation check-in: d43f3e4da3 user: rkeene tags: trunk | |
04:05 | Updated to have a release and debug CFLAGS check-in: 9cc13bbc4c user: rkeene tags: trunk | |
Changes
Modified appfsd.c from [6216c87bde] to [293b50199a].
496 496 * Generate an inode for a given path. The inode should be computed in such 497 497 * a way that it is unlikely to be duplicated and remains the same for a given 498 498 * file 499 499 */ 500 500 #if UINT_MAX < 4294967295 501 501 #error Integer size is too small 502 502 #endif 503 -static long long appfs_get_path_inode(const char *path) { 503 +static unsigned long long appfs_get_path_inode(const char *path) { 504 504 int retval; 505 505 const char *p; 506 506 507 507 retval = 10; 508 508 509 509 for (p = path; *p; p++) { 510 - retval %= 4290960290ULL; 511 510 retval += *p; 512 511 retval <<= 6; 513 512 } 514 513 515 514 retval += 10; 516 515 retval %= 4294967286ULL; 517 516 retval += 10;