diff options
author | rsc <devnull@localhost> | 2006-05-06 19:54:50 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2006-05-06 19:54:50 +0000 |
commit | 7f629d9d7bcee04534a325fe350c38542a21f67d (patch) | |
tree | 4e0cf1aef77fd0d5c775c11f059c887aa5779caa /src/cmd | |
parent | 0e851eb105a3467043ee6fba7fa706c33c3d4c6c (diff) | |
download | plan9port-7f629d9d7bcee04534a325fe350c38542a21f67d.tar.gz plan9port-7f629d9d7bcee04534a325fe350c38542a21f67d.tar.bz2 plan9port-7f629d9d7bcee04534a325fe350c38542a21f67d.zip |
shut up gcc volatile
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/sam/sam.c | 9 |
1 files changed, 6 insertions, 3 deletions
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){ |