Forráskód Böngészése

rename local tty variable to not shadow tty func

Mike Frysinger 18 éve
szülő
commit
9b9765b308
1 módosított fájl, 2 hozzáadás és 2 törlés
  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);