From: nekral-guest Date: Sun, 23 Nov 2008 00:56:30 +0000 (+0000) Subject: COmpile fix. buf does not exist anymore and is no more needed. X-Git-Tag: 4.1.2.2~2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=6e7fe9f0ea121cf55fdb0bbda27f0e82dc1daab6;p=thirdparty%2Fshadow.git COmpile fix. buf does not exist anymore and is no more needed. --- diff --git a/libmisc/chowntty.c b/libmisc/chowntty.c index 6cd0383e8..8f8a3b153 100644 --- a/libmisc/chowntty.c +++ b/libmisc/chowntty.c @@ -77,8 +77,7 @@ void chown_tty (const struct passwd *info) fchmod (STDIN_FILENO, getdef_num ("TTYPERM", 0600))) { int err = errno; - snprintf (buf, sizeof buf, _("Unable to change tty stdin")); - perror (buf); + perror (_("Unable to change tty stdin")); SYSLOG ((LOG_WARN, "unable to change tty stdin for user `%s'\n", info->pw_name));