From d297eac0723155e9227431dc807837058b51a7a3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Eivind=20N=C3=A6ss?= Date: Thu, 23 Sep 2021 07:52:34 -0700 Subject: [PATCH] Clang complained about -Wformat in passing a int for %h in snprintf. Result would have been the same. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Eivind Næss --- pppd/plugins/radius/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2