]> granicus.if.org Git - sudo/commitdiff
added cast for ttyname()
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 19 Jun 1995 20:10:34 +0000 (20:10 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 19 Jun 1995 20:10:34 +0000 (20:10 +0000)
logging.c

index bfb1244c58ccd023f7ec96e54593aeafdd7e2a33..c0a60af120dbdd5b733d7e9eb0859153cba93f6a 100644 (file)
--- a/logging.c
+++ b/logging.c
@@ -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";