From 9e714aa90161eefeb85ef40e4bb2188af5e856fc Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 17 Jun 2008 14:05:03 +0000 Subject: 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) --- lib/libc/stdlib/Symbol.map | 1 - lib/libc/stdlib/grantpt.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/libc') 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; -- cgit v1.1