summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strmode.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-02-03 20:25:36 +0000
committerimp <imp@FreeBSD.org>2009-02-03 20:25:36 +0000
commit8d1a287c1a30ae986090c8a6016c4d00b6d9276c (patch)
treef2cddc02e1da83f8c3218c2edfcf3842b5045c78 /lib/libc/string/strmode.c
parent85ebf973414dfbc79b1b194bd303e31ad364fc40 (diff)
downloadFreeBSD-src-8d1a287c1a30ae986090c8a6016c4d00b6d9276c.zip
FreeBSD-src-8d1a287c1a30ae986090c8a6016c4d00b6d9276c.tar.gz
Fix the functions to match prototypes. The K&R definitions differ
from the ANSI-C prototype due to the 'int promotion' rule.
Diffstat (limited to 'lib/libc/string/strmode.c')
-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 855e1b5..57295d7 100644
--- a/lib/libc/string/strmode.c
+++ b/lib/libc/string/strmode.c
@@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$");
#include <string.h>
void
-strmode(mode_t mode, char *p)
+strmode(/* mode_t */ int mode, char *p)
{
/* print type */
switch (mode & S_IFMT) {
OpenPOWER on IntegriCloud