Mainly two sizeof() returning size_t which is not the size of an int
on 64-bit platforms.
* Watch out for the last line without the terminating '\n'!
*/
Alert("parsing [%s:%d]: line too long, limit: %d.\n",
- file, linenum, sizeof(thisline)-1);
+ file, linenum, (int)sizeof(thisline)-1);
goto err;
}
strsz = strlen(str) + 1;
if (strsz > sizeof(su.sun_path)) {
Alert("Socket path '%s' too long (max %d)\n",
- str, sizeof(su.sun_path) - 1);
+ str, (int)sizeof(su.sun_path) - 1);
} else {
su.sun_family = AF_UNIX;
memcpy(su.sun_path, str, strsz);