added cast for ttyname()

This commit is contained in:
Todd C. Miller
1995-06-19 20:10:34 +00:00
parent 20c9ac303d
commit b377600890

View File

@@ -107,7 +107,7 @@ void log_error(code)
* Get our ttyname or set to "none"
*/
if (isatty(0))
tty = ttyname(0);
tty = (char *) ttyname(0);
else
tty = "none";