Check-in [f905360d64]
Overview
Comment:Updated initializer to be explicitly unsigned
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:f905360d64bfdf2cf8ce96deb8ef9d288dee1001
User & Date: rkeene on 2015-11-19 16:01:41
Other Links: manifest | tags
Context
2015-12-08
14:13
Updated to avoid hammering remote servers if cache cannot be updated for some reason other than downloading failed check-in: df8e635cac user: rkeene tags: trunk
2015-11-19
16:01
Updated initializer to be explicitly unsigned check-in: f905360d64 user: rkeene tags: trunk
2015-10-14
17:48
Updated to set resource limits for number of open files at startup, if possible check-in: ea36882e15 user: rkeene tags: trunk
Changes

Modified appfsd.c from [55077e4885] to [33db21bdfd].

   629    629   #if UINT_MAX < 4294967295
   630    630   #error Integer size is too small 
   631    631   #endif
   632    632   static unsigned long long appfs_get_path_inode(const char *path, int uid) {
   633    633   	unsigned int retval;
   634    634   	const unsigned char *p;
   635    635   
   636         -	retval = 2166136261; /* FNV-1a 32-bit offset_basis */
          636  +	retval = 2166136261U; /* FNV-1a 32-bit offset_basis */
   637    637   
   638    638   	for (p = (unsigned char *) path; *p; p++) {
   639    639   		retval ^= (int) *p;
   640    640   #if 0
   641    641   		retval *= 16777619; /* FNV-1a 32-bit prime */
   642    642   #else
   643    643   		/* GCC Optimized replacement */