Commit 74ed1cf5 authored by Lionel Landwerlin's avatar Lionel Landwerlin

gunixmounts: remove warning on unused variable
parent 907a9310
......@@ -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;
struct mntent ent;
char buf[1024];
while ((entp = getmntent_r (f, &ent, buf, sizeof (buf))) != NULL)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment