summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-10-04 07:33:47 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-10-04 07:33:47 +0000
commit5997d801a070aab259ee6479edf14f59da513c35 (patch)
tree93a674e56b522965e2fbd42b1ae4593c37e51add /lib
parent39baf296de5b1e3805bd51ef815c2c210db7e4c0 (diff)
wrap _fwalk() so internal calls are direct (at least until we stop
exporting it)
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/stdio/fwalk.c3
-rw-r--r--lib/libc/stdio/local.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/stdio/fwalk.c b/lib/libc/stdio/fwalk.c
index 8ac6628aa2b..fffa5c76274 100644
--- a/lib/libc/stdio/fwalk.c
+++ b/lib/libc/stdio/fwalk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fwalk.c,v 1.10 2009/11/09 00:18:27 kurt Exp $ */
+/* $OpenBSD: fwalk.c,v 1.11 2015/10/04 07:33:46 guenther Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
@@ -51,3 +51,4 @@ _fwalk(int (*function)(FILE *))
}
return (ret);
}
+DEF_STRONG(_fwalk);
diff --git a/lib/libc/stdio/local.h b/lib/libc/stdio/local.h
index 56cdf22d9f1..79f23654524 100644
--- a/lib/libc/stdio/local.h
+++ b/lib/libc/stdio/local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: local.h,v 1.21 2015/08/27 04:37:09 guenther Exp $ */
+/* $OpenBSD: local.h,v 1.22 2015/10/04 07:33:46 guenther Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -43,6 +43,7 @@
void _cleanup(void);
int _fwalk(int (*)(FILE *));
+PROTO_NORMAL(_fwalk);
extern void __atexit_register_cleanup(void (*)(void));