From 9d029573e8765a9d9fed5e12431b00b36c9c90bd Mon Sep 17 00:00:00 2001 From: otto <> Date: Sun, 23 Jun 2024 07:08:26 +0000 Subject: strmode takes a mode_t, not an int; prompted by Collin Funk. ok kettenis@ deraadt@ tb@ --- src/lib/libc/string/strmode.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/lib/libc/string/strmode.c b/src/lib/libc/string/strmode.c index 609b8931fb..c57fe74b23 100644 --- a/src/lib/libc/string/strmode.c +++ b/src/lib/libc/string/strmode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strmode.c,v 1.8 2015/08/31 02:53:57 guenther Exp $ */ +/* $OpenBSD: strmode.c,v 1.9 2024/06/23 07:08:26 otto Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. @@ -32,10 +32,8 @@ #include #include -/* XXX mode should be mode_t */ - void -strmode(int mode, char *p) +strmode(mode_t mode, char *p) { /* print type */ switch (mode & S_IFMT) { -- cgit v1.2.3-55-g6feb