[glib] gunixmounts: remove warning on unused variable



commit 74ed1cf5b0538f71ae566219c14b6a1b954c1a74
Author: Lionel Landwerlin <llandwerlin gmail com>
Date:   Fri Apr 5 15:21:23 2013 +0100

    gunixmounts: remove warning on unused variable
    
    https://bugzilla.gnome.org/show_bug.cgi?id=697367

 gio/gunixmounts.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gunixmounts.c b/gio/gunixmounts.c
index 06d042e..03f1720 100644
--- a/gio/gunixmounts.c
+++ b/gio/gunixmounts.c
@@ -2317,7 +2317,6 @@ _resolve_dev_root (void)
         {
           dev_t root_dev = statbuf.st_dev;
           FILE *f;
-          char buf[1024];
       
           /* see if device with similar major:minor as /dev/root is mention
            * in /etc/mtab (it usually is) 
@@ -2328,6 +2327,7 @@ _resolve_dev_root (void)
              struct mntent *entp;
 #ifdef HAVE_GETMNTENT_R        
               struct mntent ent;
+              char buf[1024];
               while ((entp = getmntent_r (f, &ent, buf, sizeof (buf))) != NULL) 
                 {
 #else


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