diff options
author | 2015-08-26 01:54:08 +0000 | |
---|---|---|
committer | 2015-08-26 01:54:08 +0000 | |
commit | b3b7ef2e4e6be9caa31c33f1642745eba9e6b35d (patch) | |
tree | 81be9910dee3a3339f55d5edfa25d7c588d02bb8 /lib/libc/gen/devname.c | |
parent | Replace clock_gettime UPTIME with MONOTONIC to improve worm portability. (diff) | |
download | wireguard-openbsd-b3b7ef2e4e6be9caa31c33f1642745eba9e6b35d.tar.xz wireguard-openbsd-b3b7ef2e4e6be9caa31c33f1642745eba9e6b35d.zip |
Hide many (194!) symbols that nothing should be using.
Delete exect(2); it wasn't portable across archs and nothing used it.
ports test build by naddy@
ok deraadt@ kettenis@
Diffstat (limited to 'lib/libc/gen/devname.c')
-rw-r--r-- | lib/libc/gen/devname.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/libc/gen/devname.c b/lib/libc/gen/devname.c index 824eedefcf0..7518c91cc8b 100644 --- a/lib/libc/gen/devname.c +++ b/lib/libc/gen/devname.c @@ -1,4 +1,4 @@ -/* $OpenBSD: devname.c,v 1.10 2015/07/14 19:05:52 millert Exp $ */ +/* $OpenBSD: devname.c,v 1.11 2015/08/26 01:54:09 guenther Exp $ */ /* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. @@ -76,16 +76,15 @@ devname_nodb(dev_t dev, mode_t type) * type of the file (mode & S_IFMT), the latter is the st_rdev field. * Note that the structure may contain padding. */ -struct { - mode_t type; - dev_t dev; -} bkey; - char * devname(dev_t dev, mode_t type) { static DB *db; static bool failure; + struct { + mode_t type; + dev_t dev; + } bkey; DBT data, key; char *name = NULL; |