From: Eivind Næss Date: Thu, 23 Sep 2021 14:52:34 +0000 (-0700) Subject: Clang complained about -Wformat in passing a int for %h in snprintf. Result would... X-Git-Tag: ppp-2.5.0~56^2~5 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;ds=sidebyside;h=d297eac0723155e9227431dc807837058b51a7a3;p=ppp.git Clang complained about -Wformat in passing a int for %h in snprintf. Result would have been the same. Signed-off-by: Eivind Næss --- diff --git a/pppd/plugins/radius/util.c b/pppd/plugins/radius/util.c index 751f819..4065724 100644 --- a/pppd/plugins/radius/util.c +++ b/pppd/plugins/radius/util.c @@ -78,7 +78,7 @@ rc_mksid (void) snprintf(buf, sizeof(buf), "%08lX%04X%02hX", (unsigned long int) time (NULL), (unsigned int) getpid (), - cnt & 0xFF); + (unsigned short) (cnt & 0xFF)); cnt++; return buf; }