glib r7692 - branches/glib-2-18/gio



Author: matthiasc
Date: Fri Nov 28 07:06:27 2008
New Revision: 7692
URL: http://svn.gnome.org/viewvc/glib?rev=7692&view=rev

Log:
2008-11-28  Matthias Clasen  <mclasen redhat com>

        Bug 541715 â win32 : patch for warnings and signature problems in
        recent code

        * glocalvfs.c: Avoid unused variables. Pointed out by Jody
        Goldberg.



Modified:
   branches/glib-2-18/gio/ChangeLog
   branches/glib-2-18/gio/glocalvfs.c

Modified: branches/glib-2-18/gio/glocalvfs.c
==============================================================================
--- branches/glib-2-18/gio/glocalvfs.c	(original)
+++ branches/glib-2-18/gio/glocalvfs.c	Fri Nov 28 07:06:27 2008
@@ -115,11 +115,9 @@
 {
   GFile *file;
   char *filename;
-  char *user_name;
   char *user_prefix;
   const char *user_start, *user_end;
   char *rest;
-  struct passwd *passwd_file_entry;
   
   g_return_val_if_fail (G_IS_VFS (vfs), NULL);
   g_return_val_if_fail (parse_name != NULL, NULL);
@@ -143,6 +141,9 @@
 	  else
 	    {
 #ifdef HAVE_PWD_H
+              struct passwd *passwd_file_entry;
+              char *user_name;
+
 	      user_name = g_strndup (user_start, user_end - user_start);
 	      passwd_file_entry = getpwnam (user_name);
 	      g_free (user_name);



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