aboutsummaryrefslogtreecommitdiffstats
path: root/meta-selftest/recipes-test/devtool/files/0001-helloword.c-exit-with-EXIT_SUCCESS-instead-of-a-magi.patch
blob: 2294a094b24c162a8fdc7cc5bbdcd521b86e8837 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 0f37affbc6e6c71687301d99d7259f1968e57c48 Mon Sep 17 00:00:00 2001
From: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Date: Wed, 26 Aug 2015 12:42:23 +0000
Subject: [PATCH] helloword.c: exit with EXIT_SUCCESS instead of a magic number

---
 helloworld.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/helloworld.c b/helloworld.c
index 71f2e46..54bf50b 100644
--- a/helloworld.c
+++ b/helloworld.c
@@ -1,8 +1,9 @@
 #include <stdio.h>
+#include <stdlib.h>
 
 int main(int argc, char **argv)
 {
     printf("Hello World!\n");
 
-    return 0;
+    return EXIT_SUCCESS;
 }
-- 
1.8.4.5