about summary refs log tree commit diff
path: root/misc/ttyslot.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/ttyslot.c')
-rw-r--r--misc/ttyslot.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/ttyslot.c b/misc/ttyslot.c
index 9c69589dae..0ed14d73ea 100644
--- a/misc/ttyslot.c
+++ b/misc/ttyslot.c
@@ -53,20 +53,20 @@ ttyslot (void)
 
 	name = __alloca (buflen);
 
-	setttyent();
+	__setttyent();
 	for (cnt = 0; cnt < 3; ++cnt)
 		if (__ttyname_r (cnt, name, buflen) == 0) {
 			if ((p = rindex(name, '/')))
 				++p;
 			else
 				p = name;
-			for (slot = 1; (ttyp = getttyent()); ++slot)
+			for (slot = 1; (ttyp = __getttyent()); ++slot)
 				if (!strcmp(ttyp->ty_name, p)) {
-					endttyent();
+					__endttyent();
 					return(slot);
 				}
 			break;
 		}
-	endttyent();
+	__endttyent();
 	return(0);
 }