summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/devname.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/devname.c')
-rw-r--r--lib/libc/gen/devname.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/devname.c b/lib/libc/gen/devname.c
index 3929f92..39178fe 100644
--- a/lib/libc/gen/devname.c
+++ b/lib/libc/gen/devname.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)devname.c 8.1 (Berkeley) 6/4/93";
+static char sccsid[] = "@(#)devname.c 8.2 (Berkeley) 4/29/95";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -64,7 +64,7 @@ devname(dev, type)
failure = 1;
}
if (failure)
- return ("??");
+ return (NULL);
/*
* Keys are a mode_t followed by a dev_t. The former is the type of
@@ -76,5 +76,5 @@ devname(dev, type)
bkey.type = type;
key.data = &bkey;
key.size = sizeof(bkey);
- return ((db->get)(db, &key, &data, 0) ? "??" : (char *)data.data);
+ return ((db->get)(db, &key, &data, 0) ? NULL : (char *)data.data);
}
OpenPOWER on IntegriCloud