[clutter-gst] examples: consistently use exit codes
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gst] examples: consistently use exit codes
- Date: Mon, 6 Jun 2011 11:10:01 +0000 (UTC)
commit 71a1c3aded6002a20e10ed70a9697df775d4e2fa
Author: �yvind Kolås <pippin linux intel com>
Date: Mon Jun 6 12:08:34 2011 +0100
examples: consistently use exit codes
examples/video-player.c | 2 +-
examples/video-sink-navigation.c | 11 ++++++-----
examples/video-sink.c | 11 ++++++-----
3 files changed, 13 insertions(+), 11 deletions(-)
---
diff --git a/examples/video-player.c b/examples/video-player.c
index cc19eb3..7ea414b 100644
--- a/examples/video-player.c
+++ b/examples/video-player.c
@@ -415,5 +415,5 @@ main (int argc, char *argv[])
clutter_main ();
- return 0;
+ return EXIT_SUCCESS;
}
diff --git a/examples/video-sink-navigation.c b/examples/video-sink-navigation.c
index f196e0d..8bf77a6 100644
--- a/examples/video-sink-navigation.c
+++ b/examples/video-sink-navigation.c
@@ -77,10 +77,11 @@ main (int argc, char *argv[])
GstElement *colorspace;
GstElement *sink;
- if (argc < 1) {
- g_error ("Usage: %s", argv[0]);
- return 1;
- }
+ if (argc < 1)
+ {
+ g_error ("Usage: %s", argv[0]);
+ return EXIT_FAILURE;
+ }
if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
{
@@ -143,5 +144,5 @@ main (int argc, char *argv[])
clutter_main();
- return 0;
+ return EXIT_SUCCESS;
}
diff --git a/examples/video-sink.c b/examples/video-sink.c
index 9442f80..36b2a1b 100644
--- a/examples/video-sink.c
+++ b/examples/video-sink.c
@@ -75,10 +75,11 @@ main (int argc, char *argv[])
GstElement *colorspace;
GstElement *sink;
- if (argc < 1) {
- g_error ("Usage: %s", argv[0]);
- return 1;
- }
+ if (argc < 1)
+ {
+ g_error ("Usage: %s", argv[0]);
+ return EXIT_FAILURE;
+ }
if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
{
@@ -127,5 +128,5 @@ main (int argc, char *argv[])
clutter_main();
- return 0;
+ return EXIT_SUCCESS;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]