diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-10-26 10:48:24 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-10-26 10:48:24 +0000 |
commit | 4ccc53146ceecf9658327a570297c15ff5ab375d (patch) | |
tree | 825b7b97e03c562f068b8e7074e089038f460e38 /src/input/media_helper.c | |
parent | 65755ffce4852d5ddefe3b77bb4f2cbf76fadbfe (diff) | |
download | xine-lib-4ccc53146ceecf9658327a570297c15ff5ab375d.tar.gz xine-lib-4ccc53146ceecf9658327a570297c15ff5ab375d.tar.bz2 |
fix some prominent compiler warnings
CVS patchset: 5600
CVS date: 2003/10/26 10:48:24
Diffstat (limited to 'src/input/media_helper.c')
-rw-r--r-- | src/input/media_helper.c | 10 |
1 files changed, 3 insertions, 7 deletions
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; |