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.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/openbsd-compat/strmode.c b/openbsd-compat/strmode.c
index e64d19869..adf5e273e 100644
--- a/openbsd-compat/strmode.c
+++ b/openbsd-compat/strmode.c
@@ -10,11 +10,7 @@
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the 11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution. 12 * documentation and/or other materials provided with the distribution.
13 * 3. All advertising materials mentioning features or use of this software 13 * 3. Neither the name of the University nor the names of its contributors
14 * must display the following acknowledgement:
15 * This product includes software developed by the University of
16 * California, Berkeley and its contributors.
17 * 4. Neither the name of the University nor the names of its contributors
18 * may be used to endorse or promote products derived from this software 14 * may be used to endorse or promote products derived from this software
19 * without specific prior written permission. 15 * without specific prior written permission.
20 * 16 *
@@ -35,15 +31,17 @@
35#ifndef HAVE_STRMODE 31#ifndef HAVE_STRMODE
36 32
37#if defined(LIBC_SCCS) && !defined(lint) 33#if defined(LIBC_SCCS) && !defined(lint)
38static char *rcsid = "$OpenBSD: strmode.c,v 1.3 1997/06/13 13:57:20 deraadt Exp $"; 34static char *rcsid = "$OpenBSD: strmode.c,v 1.5 2003/06/11 21:08:16 deraadt Exp $";
39#endif /* LIBC_SCCS and not lint */ 35#endif /* LIBC_SCCS and not lint */
40 36
41#include <sys/types.h> 37#include <sys/types.h>
42#include <sys/stat.h> 38#include <sys/stat.h>
43#include <string.h> 39#include <string.h>
44 40
41/* XXX mode should be mode_t */
42
45void 43void
46strmode(register mode_t mode, register char *p) 44strmode(int mode, char *p)
47{ 45{
48 /* print type */ 46 /* print type */
49 switch (mode & S_IFMT) { 47 switch (mode & S_IFMT) {