Commit 2742c55c authored by npzacs's avatar npzacs
Browse files

Hide unused variable warning when building without mntent.h

parent 9f3c846b
......@@ -116,7 +116,6 @@ MMCDEV *device_open(const char *path)
struct stat st;
int fd = -1;
MMCDEV *dev = NULL;
FILE *proc_mounts;
/* resolve path */
if (!aacs_resolve_path(path, resolved_path)) {
......@@ -154,6 +153,7 @@ MMCDEV *device_open(const char *path)
#if defined(HAVE_MNTENT_H)
if (fd < 0) {
/* resolve mount point to block device */
FILE *proc_mounts;
if ((proc_mounts = setmntent("/proc/mounts", "r"))) {
struct mntent* mount_entry;
......
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