Ver Fonte

rename local tty variable to not shadow tty func

Mike Frysinger há 18 anos atrás
pai
commit
9b9765b308
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      libc/misc/ttyent/getttyent.c

+ 2 - 2
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);