summaryrefslogtreecommitdiff
path: root/openbsd-compat/strmode.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/strmode.c')
-rw-r--r--openbsd-compat/strmode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbsd-compat/strmode.c b/openbsd-compat/strmode.c
index f01352328..adf5e273e 100644
--- a/openbsd-compat/strmode.c
+++ b/openbsd-compat/strmode.c
@@ -31,15 +31,17 @@
31#ifndef HAVE_STRMODE 31#ifndef HAVE_STRMODE
32 32
33#if defined(LIBC_SCCS) && !defined(lint) 33#if defined(LIBC_SCCS) && !defined(lint)
34static char *rcsid = "$OpenBSD: strmode.c,v 1.4 2003/06/02 20:18:38 millert Exp $"; 34static char *rcsid = "$OpenBSD: strmode.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $";
35#endif /* LIBC_SCCS and not lint */ 35#endif /* LIBC_SCCS and not lint */
36 36
37#include <sys/types.h> 37#include <sys/types.h>
38#include <sys/stat.h> 38#include <sys/stat.h>
39#include <string.h> 39#include <string.h>
40 40
41/* XXX mode should be mode_t */
42
41void 43void
42strmode(register mode_t mode, register char *p) 44strmode(int mode, char *p)
43{ 45{
44 /* print type */ 46 /* print type */
45 switch (mode & S_IFMT) { 47 switch (mode & S_IFMT) {