summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/devname.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-07-14 19:05:11 +0000
committermillert <millert@openbsd.org>2015-07-14 19:05:11 +0000
commit8fb4bdfc7656531b3a94ab711310d2b245c076e5 (patch)
tree9a306ab024731403b1343dc77a15178fcc3b49ab /lib/libc/gen/devname.c
parentDon't dereference a freed pointer when updating the value of p. (diff)
downloadwireguard-openbsd-8fb4bdfc7656531b3a94ab711310d2b245c076e5.tar.xz
wireguard-openbsd-8fb4bdfc7656531b3a94ab711310d2b245c076e5.zip
The first argument to devname(3) should be dev_t, not int.
The man page was already correct.
Diffstat (limited to 'lib/libc/gen/devname.c')
-rw-r--r--lib/libc/gen/devname.c4
1 files changed, 2 insertions, 2 deletions
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;