diff options
author | brian <brian@FreeBSD.org> | 1998-06-15 19:06:58 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-06-15 19:06:58 +0000 |
commit | 67efb0adddd5c04e645535e5454772d1da2b7105 (patch) | |
tree | 31d8e8fa6ed4fbfe3381d37f32142615c81eec99 /usr.sbin/ppp/log.c | |
parent | 13defc3317e75eb1c300da13d71fcfca0afa9fea (diff) | |
download | FreeBSD-src-67efb0adddd5c04e645535e5454772d1da2b7105.zip FreeBSD-src-67efb0adddd5c04e645535e5454772d1da2b7105.tar.gz |
o De-staticise things that don't need to be static.
o Bring the static ``ttystate'' into struct prompt so that
the tilde context is per prompt and not global.
o Comment the remaining static variables so that it's
clear why they're static.
o Add some XXX comments suggesting that our interface list
and our hostname should be re-generated after a signal
(say SIGUSR1) so that a machine with PCCARDs has a chance.
Diffstat (limited to 'usr.sbin/ppp/log.c')
-rw-r--r-- | usr.sbin/ppp/log.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/log.c b/usr.sbin/ppp/log.c index 01de47a..0c9c276b 100644 --- a/usr.sbin/ppp/log.c +++ b/usr.sbin/ppp/log.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: log.c,v 1.29 1998/05/28 23:17:42 brian Exp $ + * $Id: log.c,v 1.30 1998/06/15 19:06:15 brian Exp $ */ #include <sys/types.h> @@ -290,7 +290,7 @@ log_Printf(int lev, const char *fmt,...) va_start(ap, fmt); if (log_IsKept(lev)) { - static char nfmt[200]; + char nfmt[200]; if ((log_IsKept(lev) & LOG_KEPT_LOCAL) && promptlist) { if ((log_IsKept(LogTUN) & LOG_KEPT_LOCAL) && LogTunno != -1) |