summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-03-31 00:41:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-03-31 00:41:22 +0000
commita3fdd6d98f3bec1c692f6c8d398eec1c6a72d166 (patch)
tree68ebee88cc37966f423229ba25fa4bb266af47c7
parente3cbc82253dae49fa547776f94b27ed9cbc76aaf (diff)
after we changed mode_t to be an int, the devname() man page was
updated but the function itself never was; ok millert
-rw-r--r--include/stdlib.h4
-rw-r--r--lib/libc/gen/devname.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index c73b6465d00..3440665e105 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdlib.h,v 1.37 2006/01/13 17:58:09 millert Exp $ */
+/* $OpenBSD: stdlib.h,v 1.38 2006/03/31 00:41:21 deraadt Exp $ */
/* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */
/*-
@@ -229,7 +229,7 @@ int cgetstr(char *, const char *, char **);
int cgetustr(char *, const char *, char **);
int daemon(int, int);
-char *devname(int, int);
+char *devname(int, mode_t);
int getloadavg(double [], int);
void cfree(void *);
diff --git a/lib/libc/gen/devname.c b/lib/libc/gen/devname.c
index 6c2e08e18b8..36c5eb694a5 100644
--- a/lib/libc/gen/devname.c
+++ b/lib/libc/gen/devname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: devname.c,v 1.6 2005/08/08 08:05:33 espie Exp $ */
+/* $OpenBSD: devname.c,v 1.7 2006/03/31 00:41:20 deraadt Exp $ */
/*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
@@ -40,9 +40,8 @@
#include <stdlib.h>
char *
-devname(int dev, int t)
+devname(int dev, mode_t type)
{
- mode_t type = t;
struct {
mode_t type;
dev_t dev;