summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/deflate.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-06-15 19:06:58 +0000
committerbrian <brian@FreeBSD.org>1998-06-15 19:06:58 +0000
commit67efb0adddd5c04e645535e5454772d1da2b7105 (patch)
tree31d8e8fa6ed4fbfe3381d37f32142615c81eec99 /usr.sbin/ppp/deflate.c
parent13defc3317e75eb1c300da13d71fcfca0afa9fea (diff)
downloadFreeBSD-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/deflate.c')
-rw-r--r--usr.sbin/ppp/deflate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/deflate.c b/usr.sbin/ppp/deflate.c
index 08e5f85..4bc8bce 100644
--- a/usr.sbin/ppp/deflate.c
+++ b/usr.sbin/ppp/deflate.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: deflate.c,v 1.6.4.16 1998/05/15 18:21:03 brian Exp $
+ * $Id: deflate.c,v 1.8 1998/05/21 21:45:00 brian Exp $
*/
#include <sys/types.h>
@@ -433,7 +433,7 @@ DeflateDictSetup(void *v, struct ccp *ccp, u_short proto, struct mbuf *mi)
static const char *
DeflateDispOpts(struct lcp_opt *o)
{
- static char disp[7];
+ static char disp[7]; /* Must be used immediately */
sprintf(disp, "win %d", (o->data[0]>>4) + 8);
return disp;
OpenPOWER on IntegriCloud