From 49cccb5a8d129f578783d0925ac3fef7c489c97b Mon Sep 17 00:00:00 2001 From: nhmall Date: Thu, 9 Apr 2026 10:06:24 -0400 Subject: [PATCH] quiet a warning compiling sys/share/uudecode in recent compiler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ../sys/share/uudecode.c: In function ‘main’: ../sys/share/uudecode.c:131:32: warning: format ‘%o’ expects argument of type ‘unsigned int *’, but argument 3 has type ‘int *’ [-Wformat=] 131 | (void) sscanf(buf, "begin %o %s", &mode, dest); | ~^ ~~~~~ | | | | | int * | unsigned int * | %o --- sys/share/uudecode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/share/uudecode.c b/sys/share/uudecode.c index 223b94031..801aba412 100644 --- a/sys/share/uudecode.c +++ b/sys/share/uudecode.c @@ -99,7 +99,7 @@ int main(int argc, char **argv) { FILE *in, *out; - int mode; + unsigned int mode; char dest[128]; char buf[80];