summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2008-06-17 14:05:03 +0000
committered <ed@FreeBSD.org>2008-06-17 14:05:03 +0000
commit9e714aa90161eefeb85ef40e4bb2188af5e856fc (patch)
treecf7452d18799e275a93130c19d2eafaa148ad9da /lib/libc
parenta786ca56c9127075011e96db24deac7c1cb1d03f (diff)
downloadFreeBSD-src-9e714aa90161eefeb85ef40e4bb2188af5e856fc.zip
FreeBSD-src-9e714aa90161eefeb85ef40e4bb2188af5e856fc.tar.gz
Don't export the unused __use_pts() routine.
The __use_pts() routine was once probably used by libutil to determine if we are using BSD or UNIX98 style PTY device names. It doesn't seem to be used outside grantpt.c, which means we can make it static and remove it from the Symbol.map. Reviewed by: cognet, kib Approved by: philip (mentor)
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdlib/Symbol.map1
-rw-r--r--lib/libc/stdlib/grantpt.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/stdlib/Symbol.map b/lib/libc/stdlib/Symbol.map
index cbb9fb1..23cb391 100644
--- a/lib/libc/stdlib/Symbol.map
+++ b/lib/libc/stdlib/Symbol.map
@@ -94,7 +94,6 @@ FBSD_1.0 {
};
FBSDprivate_1.0 {
- __use_pts;
_malloc_prefork;
_malloc_postfork;
__system;
diff --git a/lib/libc/stdlib/grantpt.c b/lib/libc/stdlib/grantpt.c
index 8570f8b..43a86c8 100644
--- a/lib/libc/stdlib/grantpt.c
+++ b/lib/libc/stdlib/grantpt.c
@@ -73,7 +73,7 @@ __FBSDID("$FreeBSD$");
*/
#define _PATH_PTCHOWN "/usr/libexec/pt_chown"
-int
+static int
__use_pts(void)
{
int use_pts;
OpenPOWER on IntegriCloud