pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/gnome-system-tools Don't return without value...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8d018a8b1447
branches:  trunk
changeset: 598228:8d018a8b1447
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Jan 20 17:01:07 2012 +0000

description:
Don't return without value in non-void functions.

diffstat:

 sysutils/gnome-system-tools/distinfo                                     |   6 +-
 sysutils/gnome-system-tools/patches/patch-src_common_gst-dialog.c        |  13 ++++
 sysutils/gnome-system-tools/patches/patch-src_common_gst-polkit-action.c |  13 ++++
 sysutils/gnome-system-tools/patches/patch-src_common_gst-service-role.c  |  13 ++++
 sysutils/gnome-system-tools/patches/patch-src_users_user-profiles.c      |  31 ++++++++++
 5 files changed, 75 insertions(+), 1 deletions(-)

diffs (101 lines):

diff -r 4507cb1a1bc5 -r 8d018a8b1447 sysutils/gnome-system-tools/distinfo
--- a/sysutils/gnome-system-tools/distinfo      Fri Jan 20 16:59:19 2012 +0000
+++ b/sysutils/gnome-system-tools/distinfo      Fri Jan 20 17:01:07 2012 +0000
@@ -1,6 +1,10 @@
-$NetBSD: distinfo,v 1.3 2009/07/17 18:43:15 hasso Exp $
+$NetBSD: distinfo,v 1.4 2012/01/20 17:01:07 joerg Exp $
 
 SHA1 (gnome-system-tools-2.22.2.tar.bz2) = 6ff3d2775acf5e36927d523f708aef90190e974b
 RMD160 (gnome-system-tools-2.22.2.tar.bz2) = 6850711c652bd2726fdb5556984fe5bc06c0c576
 Size (gnome-system-tools-2.22.2.tar.bz2) = 4461916 bytes
 SHA1 (patch-aa) = 65812c438b16316caf27cb0793743c744c4e1b6e
+SHA1 (patch-src_common_gst-dialog.c) = c38250b41396b22697e844e509ce632a03b99b82
+SHA1 (patch-src_common_gst-polkit-action.c) = 66496d51a3ce98ce4073f7c2187abe2b3e1b3bb2
+SHA1 (patch-src_common_gst-service-role.c) = 9361d58eec475515bfa1b23b6e62db06c5e377da
+SHA1 (patch-src_users_user-profiles.c) = bba51d0e2ebb8c98075450c088ad4e302a6f63cc
diff -r 4507cb1a1bc5 -r 8d018a8b1447 sysutils/gnome-system-tools/patches/patch-src_common_gst-dialog.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/gnome-system-tools/patches/patch-src_common_gst-dialog.c Fri Jan 20 17:01:07 2012 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_common_gst-dialog.c,v 1.1 2012/01/20 17:01:07 joerg Exp $
+
+--- src/common/gst-dialog.c.orig       2012-01-18 23:57:08.000000000 +0000
++++ src/common/gst-dialog.c
+@@ -449,7 +449,7 @@ gst_dialog_get_freeze_level (GstDialog *
+ {
+       GstDialogPrivate *priv;
+ 
+-      g_return_if_fail (GST_IS_DIALOG (dialog));
++      g_return_val_if_fail (GST_IS_DIALOG (dialog), 0);
+ 
+       priv = GST_DIALOG_GET_PRIVATE (dialog);
+       return priv->frozen;
diff -r 4507cb1a1bc5 -r 8d018a8b1447 sysutils/gnome-system-tools/patches/patch-src_common_gst-polkit-action.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/gnome-system-tools/patches/patch-src_common_gst-polkit-action.c  Fri Jan 20 17:01:07 2012 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_common_gst-polkit-action.c,v 1.1 2012/01/20 17:01:07 joerg Exp $
+
+--- src/common/gst-polkit-action.c.orig        2012-01-18 23:58:45.000000000 +0000
++++ src/common/gst-polkit-action.c
+@@ -378,7 +378,7 @@ gst_polkit_action_authenticate (GstPolKi
+       GtkWidget *toplevel;
+       guint32 xid;
+ 
+-      g_return_if_fail (GST_IS_POLKIT_ACTION (action));
++      g_return_val_if_fail (GST_IS_POLKIT_ACTION (action), FALSE);
+ 
+       priv = GST_POLKIT_ACTION_GET_PRIVATE (action);
+       xid = 0;
diff -r 4507cb1a1bc5 -r 8d018a8b1447 sysutils/gnome-system-tools/patches/patch-src_common_gst-service-role.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/gnome-system-tools/patches/patch-src_common_gst-service-role.c   Fri Jan 20 17:01:07 2012 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_common_gst-service-role.c,v 1.1 2012/01/20 17:01:07 joerg Exp $
+
+--- src/common/gst-service-role.c.orig 2012-01-18 23:58:15.000000000 +0000
++++ src/common/gst-service-role.c
+@@ -19,6 +19,8 @@
+  * Authors: Carlos Garnacho Parro <carlosg%gnome.org@localhost>.
+  */
+ 
++#include <stdlib.h>
++#include <string.h>
+ #include "gst-service-role.h"
+ 
+ typedef struct _ServiceRole ServiceRole;
diff -r 4507cb1a1bc5 -r 8d018a8b1447 sysutils/gnome-system-tools/patches/patch-src_users_user-profiles.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/gnome-system-tools/patches/patch-src_users_user-profiles.c       Fri Jan 20 17:01:07 2012 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-src_users_user-profiles.c,v 1.1 2012/01/20 17:01:07 joerg Exp $
+
+--- src/users/user-profiles.c.orig     2012-01-19 00:04:05.000000000 +0000
++++ src/users/user-profiles.c
+@@ -170,7 +170,7 @@ gst_user_profiles_set_current (GstUserPr
+ {
+       GstUserProfilesPrivate *priv;
+ 
+-      g_return_if_fail (GST_IS_USER_PROFILES (profiles));
++      g_return_val_if_fail (GST_IS_USER_PROFILES (profiles), NULL);
+ 
+       priv = GST_USER_PROFILES_GET_PRIVATE (profiles);
+ 
+@@ -184,7 +184,7 @@ gst_user_profiles_get_current (GstUserPr
+ {
+       GstUserProfilesPrivate *priv;
+ 
+-      g_return_if_fail (GST_IS_USER_PROFILES (profiles));
++      g_return_val_if_fail (GST_IS_USER_PROFILES (profiles), NULL);
+ 
+       priv = GST_USER_PROFILES_GET_PRIVATE (profiles);
+ 
+@@ -196,7 +196,7 @@ gst_user_profiles_get_default_profile (G
+ {
+       GstUserProfilesPrivate *priv;
+ 
+-      g_return_if_fail (GST_IS_USER_PROFILES (profiles));
++      g_return_val_if_fail (GST_IS_USER_PROFILES (profiles), NULL);
+ 
+       priv = GST_USER_PROFILES_GET_PRIVATE (profiles);
+ 



Home | Main Index | Thread Index | Old Index