diff options
Diffstat (limited to 'src')
-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){ |