[mednaffe] 34/99: Reduce scope of variables

Stephen Kitt skitt at moszumanska.debian.org
Tue Aug 2 21:00:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

skitt pushed a commit to branch master
in repository mednaffe.

commit 6ba77e7f9c863fee631dbcaefd41384c603bfc17
Author: amatcoder at gmail.com <amatcoder at gmail.com@44025b82-9115-564b-7d03-7f3fc60b4744>
Date:   Tue Dec 10 05:15:05 2013 +0000

    Reduce scope of variables
---
 src/command.c | 3 ++-
 src/prefs.c   | 5 +++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/command.c b/src/command.c
index 28a36df..8dca4a4 100644
--- a/src/command.c
+++ b/src/command.c
@@ -157,12 +157,13 @@ void child_watch(GPid pid, gint status, guidata *gui)
   
   #ifdef G_OS_WIN32
     DWORD lpExitCode=0;
-    const gchar *err="Mednafen error.\nRead stdout.txt for details.";
+    
 
     GetExitCodeProcess( pid, &lpExitCode);
     if (lpExitCode!=0)
     {
 	  GtkWidget *dialog;
+	  const gchar *err="Mednafen error.\nRead stdout.txt for details.";
 	  
       dialog = gtk_message_dialog_new (GTK_WINDOW(gui->topwindow),
                                        GTK_DIALOG_DESTROY_WITH_PARENT,
diff --git a/src/prefs.c b/src/prefs.c
index 6c5a1de..031fa4a 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -190,8 +190,6 @@ void load_combo(GKeyFile *key_file, guidata *gui)
 void load_systems_showed(GKeyFile *key_file, guidata *gui)
 {
   GtkTreeIter iter, iter2;
-  GtkListStore *store;
-  GtkTreeModel *model;
   gboolean *showed;
   gsize length = 0;
   gint n_items = 0;
@@ -200,6 +198,9 @@ void load_systems_showed(GKeyFile *key_file, guidata *gui)
                                                         &length, NULL);
   if (showed)
   {
+    GtkListStore *store;
+    GtkTreeModel *model;
+
     store = GTK_LIST_STORE(gtk_builder_get_object(gui->builder, "liststore3"));                                                    
     model = gtk_tree_view_get_model(GTK_TREE_VIEW(gtk_builder_get_object(
                                           gui->settings, "treeview1")));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mednaffe.git



More information about the Pkg-games-commits mailing list