aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorAlfonso Gregory <gfunni234@gmail.com>2021-06-25 15:35:14 +0000
committerWarner Losh <imp@FreeBSD.org>2021-06-29 23:38:45 +0000
commit849dcdb1c0c50b13f97d67c912f0edac82688281 (patch)
tree8dd1dd28c2c0e67556ed244515ea972ad11f8d72 /lib/libc
parented1a156b038dee0e7a02c2935186ad5d8f4c36c1 (diff)
downloadsrc-849dcdb1c0c50b13f97d67c912f0edac82688281.tar.gz
src-849dcdb1c0c50b13f97d67c912f0edac82688281.zip
Change strmode argument type to mode_t
Finally, we have the correct function definition for strmode. NetBSD/OpenBSD did this many years ago. This code is weird sign extension safe. Reviewed by: imp@ Pull Request: https://github.com/freebsd/freebsd-src/pull/493
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/string/strmode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/string/strmode.c b/lib/libc/string/strmode.c
index 50016be21ea1..d601bd0430e1 100644
--- a/lib/libc/string/strmode.c
+++ b/lib/libc/string/strmode.c
@@ -40,7 +40,7 @@ __FBSDID("$FreeBSD$");
#include <string.h>
void
-strmode(/* mode_t */ int mode, char *p)
+strmode(mode_t mode, char *p)
{
/* print type */
switch (mode & S_IFMT) {