Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | From 0f37affbc6e6c71687301d99d7259f1968e57c48 Mon Sep 17 00:00:00 2001 |
| 2 | From: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> |
| 3 | Date: Wed, 26 Aug 2015 12:42:23 +0000 |
| 4 | Subject: [PATCH] helloword.c: exit with EXIT_SUCCESS instead of a magic number |
| 5 | |
| 6 | --- |
| 7 | helloworld.c | 3 ++- |
| 8 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 9 | |
| 10 | diff --git a/helloworld.c b/helloworld.c |
| 11 | index 71f2e46..54bf50b 100644 |
| 12 | --- a/helloworld.c |
| 13 | +++ b/helloworld.c |
| 14 | @@ -1,8 +1,9 @@ |
| 15 | #include <stdio.h> |
| 16 | +#include <stdlib.h> |
| 17 | |
| 18 | int main(int argc, char **argv) |
| 19 | { |
| 20 | printf("Hello World!\n"); |
| 21 | |
| 22 | - return 0; |
| 23 | + return EXIT_SUCCESS; |
| 24 | } |
| 25 | -- |
| 26 | 1.8.4.5 |
| 27 | |