Skip to content

Commit 58eacb5

Browse files
committed
lint
1 parent 20344e5 commit 58eacb5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/c/error_main.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// Example of Fortran erroring with C main
2+
#include <stdlib.h>
23

34
extern void error_fortran(int*);
45

56
int main(void) {
67
int code = 42;
78
error_fortran(&code);
8-
return 0;
9+
return EXIT_SUCCESS;
910
}

src/cxx/error_main.cxx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// Example of Fortran erroring with C++ main
2+
#include <cstdlib>
23

34
extern "C" void error_fortran(int*);
45

56
int main() {
67
int code = 42;
78
error_fortran(&code);
8-
return 0;
9+
return EXIT_SUCCESS;
910
}

0 commit comments

Comments
 (0)