libaacs | branch: refs/tags/0.8.1 | npzacs <npz...@gmail.com> | Fri Jan 30 
11:20:57 2015 +0200| [2742c55c73ee1e475c8e50b61fc5dff32e5c401b] | committer: 
npzacs

Hide unused variable warning when building without mntent.h

> http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=2742c55c73ee1e475c8e50b61fc5dff32e5c401b
---

 src/file/mmc_device_linux.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/file/mmc_device_linux.c b/src/file/mmc_device_linux.c
index 4b4ec46..3c195cf 100644
--- a/src/file/mmc_device_linux.c
+++ b/src/file/mmc_device_linux.c
@@ -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;
 

_______________________________________________
libaacs-devel mailing list
libaacs-devel@videolan.org
https://mailman.videolan.org/listinfo/libaacs-devel

Reply via email to