Check-in [d43f3e4da3]
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
497
498
499
500
501
502
503

504
505
506
507
508
509
510
511
512
513
514
515
516
517
496
497
498
499
500
501
502

503
504
505
506
507
508
509

510
511
512
513
514
515
516







-
+






-







 * Generate an inode for a given path.  The inode should be computed in such
 * a way that it is unlikely to be duplicated and remains the same for a given
 * file
 */
#if UINT_MAX < 4294967295
#error Integer size is too small 
#endif
static long long appfs_get_path_inode(const char *path) {
static unsigned long long appfs_get_path_inode(const char *path) {
	int retval;
	const char *p;

	retval = 10;

	for (p = path; *p; p++) {
		retval %= 4290960290ULL;
		retval += *p;
		retval <<= 6;
	}

	retval += 10;
	retval %= 4294967286ULL;
	retval += 10;