mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 12:25:48 +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;
|
dev_t root_dev = statbuf.st_dev;
|
||||||
FILE *f;
|
FILE *f;
|
||||||
char buf[1024];
|
|
||||||
|
|
||||||
/* see if device with similar major:minor as /dev/root is mention
|
/* see if device with similar major:minor as /dev/root is mention
|
||||||
* in /etc/mtab (it usually is)
|
* in /etc/mtab (it usually is)
|
||||||
@ -2328,6 +2327,7 @@ _resolve_dev_root (void)
|
|||||||
struct mntent *entp;
|
struct mntent *entp;
|
||||||
#ifdef HAVE_GETMNTENT_R
|
#ifdef HAVE_GETMNTENT_R
|
||||||
struct mntent ent;
|
struct mntent ent;
|
||||||
|
char buf[1024];
|
||||||
while ((entp = getmntent_r (f, &ent, buf, sizeof (buf))) != NULL)
|
while ((entp = getmntent_r (f, &ent, buf, sizeof (buf))) != NULL)
|
||||||
{
|
{
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user