summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-29 15:37:25 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-29 15:37:25 +0000
commit9b9765b308a319a1a3c09fdab3629989290a0779 (patch)
treecd3525b51d00abc45bdb8bf4f94b0d671520a1d1 /libc
parent00aa9ea56d3b6c06229bcd96ce5ca1217ee1d897 (diff)
rename local tty variable to not shadow tty func
Diffstat (limited to 'libc')
-rw-r--r--libc/misc/ttyent/getttyent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/misc/ttyent/getttyent.c b/libc/misc/ttyent/getttyent.c
index 13cbd6c84..e9cc9be2a 100644
--- a/libc/misc/ttyent/getttyent.c
+++ b/libc/misc/ttyent/getttyent.c
@@ -213,13 +213,13 @@ int endttyent(void)
}
libc_hidden_def(endttyent)
-struct ttyent * getttynam(const char *tty)
+struct ttyent * getttynam(const char *_tty)
{
register struct ttyent *t;
setttyent();
while ((t = getttyent()))
- if (!strcmp(tty, t->ty_name))
+ if (!strcmp(_tty, t->ty_name))
break;
endttyent();
return (t);