From dd9e49ce314c122f970da3336ca3b1d1306f4490 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 6 Dec 2000 23:31:05 +0000 Subject: [PATCH] make some variables volatile git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12886 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/telnet/telnet/ChangeLog | 5 +++++ src/appl/telnet/telnet/commands.c | 2 +- src/appl/telnet/telnet/main.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/appl/telnet/telnet/ChangeLog b/src/appl/telnet/telnet/ChangeLog index c2898829a..86f106418 100644 --- a/src/appl/telnet/telnet/ChangeLog +++ b/src/appl/telnet/telnet/ChangeLog @@ -1,3 +1,8 @@ +2000-12-06 Ken Raeburn + + * commands.c (tn): Local var "user" should be volatile. + * main.c (main): Local var "argp" should be volatile. + 2000-11-01 Ezra Peisach * configure.in: Use AC_CHECK_HEADER and AC_FUNC_VFORK instead of diff --git a/src/appl/telnet/telnet/commands.c b/src/appl/telnet/telnet/commands.c index 8ffba2e32..050248141 100644 --- a/src/appl/telnet/telnet/commands.c +++ b/src/appl/telnet/telnet/commands.c @@ -2377,7 +2377,7 @@ tn(argc, argv) char *srp = 0; unsigned long sourceroute(), srlen; #endif - char *cmd, *hostp = 0, *portp = 0, *user = 0; + char *cmd, *hostp = 0, *portp = 0, *volatile user = 0; /* clear the socket address prior to use */ memset((char *)&sin, 0, sizeof(sin)); diff --git a/src/appl/telnet/telnet/main.c b/src/appl/telnet/telnet/main.c index 7696857c7..d22b1affe 100644 --- a/src/appl/telnet/telnet/main.c +++ b/src/appl/telnet/telnet/main.c @@ -308,7 +308,7 @@ main(argc, argv) argv += optind; if (argc) { - char *args[7], **argp = args; + char *args[7], **volatile argp = args; if (argc > 2) usage(); -- 2.26.2