Fixed a return error code

This commit is contained in:
Pierre Pronchery 2004-03-26 00:34:01 +00:00
parent 3159898d0e
commit 69820cb6c7

View File

@ -15,11 +15,11 @@ static int _tty(void)
if((tty = ttyname(0)) == NULL)
return 2;
printf("%s\n", ttyname(0));
printf("%s\n", tty);
return 0;
}
printf("not a tty\n");
return 1;
return 2;
}