[babl] Make use of system return value to avoid warnings



commit 13541095db663c954cc068872eb97edfc5fbdb32
Author: Danny Robson <danny blubinc net>
Date:   Sun Jul 19 19:31:47 2009 +1000

    Make use of system return value to avoid warnings
    
    Make (minimal) use of system's return value to avoid gcc complaining, as
    it's declared using the warn_unused_result attribute.

 babl/babl-internal.c |    4 ++--
 babl/babl-internal.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/babl/babl-internal.c b/babl/babl-internal.c
index 596e268..7026370 100644
--- a/babl/babl-internal.c
+++ b/babl/babl-internal.c
@@ -58,14 +58,14 @@ int babl_hmpf_on_name_lookups = 0;
 #include <sys/types.h>
 #include <unistd.h>
 
-void
+int
 babl_backtrack (void)
 {
   char buf[512];
 
   sprintf (buf, "echo bt>/tmp/babl.gdb;"
            "gdb -q --batch -x /tmp/babl.gdb --pid=%i 2>/dev/null", getpid ());
-  system (buf);
+  return system (buf);
 }
 
 void
diff --git a/babl/babl-internal.h b/babl/babl-internal.h
index 884b971..1323c12 100644
--- a/babl/babl-internal.h
+++ b/babl/babl-internal.h
@@ -132,7 +132,7 @@ static void hack_hack (void)
 /**** LOGGER ****/
 #include <stdarg.h>
 
-void babl_backtrack (void);
+int babl_backtrack (void);
 
 static inline void
 real_babl_log (const char *file,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]