Skip to content

Commit 13e9686

Browse files
committed
vms: Use proper declaration for main() function in tests
Do not list parameter list empty. Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
1 parent 0f02ced commit 13e9686

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vms/configure.com

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ $!
226226
$ OS
227227
$ WS "#include <stdio.h>"
228228
$ WS "#include <stdlib.h>"
229-
$ WS "int main()"
229+
$ WS "int main(void)"
230230
$ WS "{"
231231
$ WS "char *ptr;
232232
$ WS "asprintf(&ptr,""%d"",1);"
@@ -271,7 +271,7 @@ $!
271271
$ OS
272272
$ WS "#include <stdlib.h>"
273273
$ WS "#include <string.h>"
274-
$ WS "int main()"
274+
$ WS "int main(void)"
275275
$ WS "{"
276276
$ WS "char *word, *brkt, mystr[4];"
277277
$ WS "strcpy(mystr,""1^2"");"
@@ -290,7 +290,7 @@ $ OS
290290
$ WS "#include <stdarg.h>"
291291
$ WS "#include <stdio.h>"
292292
$ WS "#include <stdlib.h>"
293-
$ WS "int main()"
293+
$ WS "int main(void)"
294294
$ WS "{"
295295
$ WS "char ptr[15];"
296296
$ WS "snprintf(ptr,sizeof(ptr),""%d,%d"",1,2);"
@@ -307,7 +307,7 @@ $!
307307
$ OS
308308
$ WS "#include <stdlib.h>"
309309
$ WS "#include <stdint.h>"
310-
$ WS "int main()"
310+
$ WS "int main(void)"
311311
$ WS "{"
312312
$ WS "exit(0);"
313313
$ WS "}"

0 commit comments

Comments
 (0)