]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - ggo.c
Build receivers, filters and writers without -h and -V support.
[paraslash.git] / ggo.c
diff --git a/ggo.c b/ggo.c
index b2e079ab426a5e0a4547d5db465570e00a803695..e3aa5794cee33815e7c04e1fd033a9a7c34bf244 100644 (file)
--- a/ggo.c
+++ b/ggo.c
@@ -15,7 +15,7 @@
  *
  * \param fmt Usual format string.
  */
-__printf_1_2 void printf_or_die(const char *fmt, ...)
+__printf_1_2 int printf_or_die(const char *fmt, ...)
 {
        va_list argp;
        int ret;
@@ -24,7 +24,7 @@ __printf_1_2 void printf_or_die(const char *fmt, ...)
        ret = vprintf(fmt, argp);
        va_end(argp);
        if (ret >= 0)
-               return;
+               return ret;
        exit(EXIT_FAILURE);
 }
 
@@ -46,7 +46,6 @@ void ggo_print_help(struct ggo_help *help, int detailed_help)
                p = help->short_help;
        if (!p)
                return;
-       p += 3; /* skip -h and -V */
        for (; *p; p++)
                printf_or_die("\t%s\n", *p);
 }