builtin-mailinfo.c: check error status from rewind and ftruncate
[git/spearce.git] / t / t4109 / patch4.patch
blob4b085909b160a093e9edb4f91de87f7637f218b5
1 diff --git a/main.c b/main.c
2 --- a/main.c
3 +++ b/main.c
4 @@ -1,13 +1,14 @@
5 #include <stdio.h>
7 int func(int num);
8 -void print_int(int num);
9 +int func2(int num);
11 int main() {
12 int i;
14 for (i = 0; i < 10; i++) {
15 - print_int(func(i));
16 + printf("%d", func(i));
17 + printf("%d", func3(i));
20 return 0;
21 @@ -17,7 +18,7 @@
22 return num * num;
25 -void print_int(int num) {
26 - printf("%d", num);
27 +int func2(int num) {
28 + return num * num * num;