summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/devname.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-03-11 11:29:42 +0000
committerpeter <peter@FreeBSD.org>1997-03-11 11:29:42 +0000
commite8e23405def4966834a6703435257f5f00ed1ac1 (patch)
treedbcfbcbf175d67996919b391d49ba44933521f9e /lib/libc/gen/devname.c
parentf635e3d3fe547173e7c723038996fbe151718b1d (diff)
parente0e06d68d52707cbac25844a417ab6919613e9eb (diff)
downloadFreeBSD-src-e8e23405def4966834a6703435257f5f00ed1ac1.zip
FreeBSD-src-e8e23405def4966834a6703435257f5f00ed1ac1.tar.gz
This commit was generated by cvs2svn to compensate for changes in r23658,
which included commits to RCS files with non-trunk default branches.
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