From 4ccc53146ceecf9658327a570297c15ff5ab375d Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Sun, 26 Oct 2003 10:48:24 +0000 Subject: fix some prominent compiler warnings CVS patchset: 5600 CVS date: 2003/10/26 10:48:24 --- src/input/media_helper.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/input/media_helper.c') diff --git a/src/input/media_helper.c b/src/input/media_helper.c index 9c209f333..ce8f0d701 100644 --- a/src/input/media_helper.c +++ b/src/input/media_helper.c @@ -51,20 +51,16 @@ #define LOG_MEDIA_EJECT -static int media_umount_media(char *device) +static int media_umount_media(const char *device) { #ifndef WIN32 - char *argv[10]; int i; pid_t pid; int status; - argv[0]="umount"; - argv[1]=device; - argv[2]=0; pid=fork(); if (pid == 0) { - i= execv("/bin/umount", argv); + i= execl("/bin/umount", "umount", device, NULL); exit(127); } do { @@ -83,7 +79,7 @@ static int media_umount_media(char *device) #endif /* WIN32 */ } -int media_eject_media (char *device) { +int media_eject_media (const char *device) { #ifndef WIN32 int ret, status; -- cgit v1.2.3