Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jean-Baptiste Kempf
libaacs
Commits
2742c55c
Commit
2742c55c
authored
Jan 30, 2015
by
npzacs
Browse files
Hide unused variable warning when building without mntent.h
parent
9f3c846b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/file/mmc_device_linux.c
View file @
2742c55c
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment