vlc | branch: master | Rémi Denis-Courmont <r...@remlab.net> | Mon Dec 3 19:35:35 2018 +0200| [2219c816d5ff29c00560e616d78068305f11892d] | committer: Rémi Denis-Courmont
macosx: fix execl() calls The guarding nul pointer must be char *. NULL is either void * or an integer depending on the toolchain... > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2219c816d5ff29c00560e616d78068305f11892d --- modules/gui/macosx/VLCMain+OldPrefs.m | 2 +- modules/gui/macosx/VLCSimplePrefsController.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gui/macosx/VLCMain+OldPrefs.m b/modules/gui/macosx/VLCMain+OldPrefs.m index 7e7e0312fb..2ddecd5bb6 100644 --- a/modules/gui/macosx/VLCMain+OldPrefs.m +++ b/modules/gui/macosx/VLCMain+OldPrefs.m @@ -142,7 +142,7 @@ static const int kCurrentPreferencesVersion = 4; if (fork() != 0) { exit(0); } - execl(path, path, NULL); + execl(path, path, (char *)NULL); } @end diff --git a/modules/gui/macosx/VLCSimplePrefsController.m b/modules/gui/macosx/VLCSimplePrefsController.m index 23e273bdaa..f4cdce7bbd 100644 --- a/modules/gui/macosx/VLCSimplePrefsController.m +++ b/modules/gui/macosx/VLCSimplePrefsController.m @@ -836,7 +836,7 @@ static inline const char * __config_GetLabel(vlc_object_t *p_this, const char *p exit(0); return; } - execl(path, path, NULL); + execl(path, path, (char *)NULL); } }]; } _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits