diff options
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.10 1997/12/19 18:34:23 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.11 1997/12/22 18:05:23 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -135,6 +135,7 @@ int main (int argc, char *argv[]) | |||
135 | break; | 135 | break; |
136 | default: | 136 | default: |
137 | print_message(); | 137 | print_message(); |
138 | exit(1); | ||
138 | } | 139 | } |
139 | } | 140 | } |
140 | else if (strchr(argv[i], '=')) | 141 | else if (strchr(argv[i], '=')) |
@@ -146,7 +147,7 @@ int main (int argc, char *argv[]) | |||
146 | fprintf(stderr, "lua: cannot execute file "); | 147 | fprintf(stderr, "lua: cannot execute file "); |
147 | perror(argv[i]); | 148 | perror(argv[i]); |
148 | } | 149 | } |
149 | return 1; | 150 | exit(1); |
150 | } | 151 | } |
151 | } | 152 | } |
152 | } | 153 | } |