From 7f629d9d7bcee04534a325fe350c38542a21f67d Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 6 May 2006 19:54:50 +0000 Subject: shut up gcc volatile --- src/cmd/sam/sam.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/cmd') diff --git a/src/cmd/sam/sam.c b/src/cmd/sam/sam.c index e34fb13a..120c53ac 100644 --- a/src/cmd/sam/sam.c +++ b/src/cmd/sam/sam.c @@ -38,12 +38,15 @@ void usage(void); extern int notify(void(*)(void*,char*)); void -main(int argc, char **argv) +main(int _argc, char **_argv) { - int i; + volatile int i, argc; + char **volatile argv; String *t; char *termargs[10], **ap; + argc = _argc; + argv = _argv; ap = termargs; *ap++ = "samterm"; ARGBEGIN{ @@ -88,7 +91,7 @@ main(int argc, char **argv) if(home == 0) home = "/"; if(!dflag) - startup(machine, Rflag, termargs, argv); + startup(machine, Rflag, termargs, (char**)argv); notify(notifyf); getcurwd(); if(argc>0){ -- cgit v1.2.3