mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 17:56:17 +01:00
gunixmounts: remove warning on unused variable
https://bugzilla.gnome.org/show_bug.cgi?id=697367
This commit is contained in:
parent
907a931082
commit
74ed1cf5b0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user