summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-07-14 19:05:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-07-14 19:05:12 +0000
commita50f293cc23c707f9d8c5f406c88e6b3ef0c23f3 (patch)
treeab495eceb7d583231539f4908bbc3a1cc09dd072
parentae6322daac87801badbc3fa9e9d0bbb1ab37bee3 (diff)
The first argument to devname(3) should be dev_t, not int.
The man page was already correct.
-rw-r--r--include/stdlib.h4
-rw-r--r--lib/libc/gen/devname.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 13f2c7acf6d..ba4f32c9ea1 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdlib.h,v 1.64 2015/02/08 02:58:50 tedu Exp $ */
+/* $OpenBSD: stdlib.h,v 1.65 2015/07/14 19:05:11 millert Exp $ */
/* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */
/*-
@@ -283,7 +283,7 @@ int cgetstr(char *, const char *, char **);
int cgetustr(char *, const char *, char **);
int daemon(int, int);
-char *devname(int, mode_t);
+char *devname(dev_t, mode_t);
int getloadavg(double [], int);
const char *
diff --git a/lib/libc/gen/devname.c b/lib/libc/gen/devname.c
index a840db396cf..8916540e3d8 100644
--- a/lib/libc/gen/devname.c
+++ b/lib/libc/gen/devname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: devname.c,v 1.8 2015/07/13 12:41:54 millert Exp $ */
+/* $OpenBSD: devname.c,v 1.9 2015/07/14 19:05:11 millert Exp $ */
/*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
@@ -40,7 +40,7 @@
#include <stdlib.h>
char *
-devname(int dev, mode_t type)
+devname(dev_t dev, mode_t type)
{
struct {
mode_t type;