diff --git a/src/cfgparse.c b/src/cfgparse.c index 46cc1a66fa..83e8af6ebe 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -3091,7 +3091,7 @@ int readcfgfile(const char *file) * 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; } diff --git a/src/standard.c b/src/standard.c index 246561977b..906f2a730f 100644 --- a/src/standard.c +++ b/src/standard.c @@ -128,7 +128,7 @@ struct sockaddr_un *str2sun(const char *str) 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);