[vlc-commits] addons: fix compilation error

KO Myung-Hun git at videolan.org
Sat Feb 15 16:17:35 CET 2014


vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Sat Feb 15 18:00:22 2014 +0900| [4d67619bda8c1f62c54293840120410bb4fa660b] | committer: Francois Cartegnie

addons: fix compilation error

-----
  CC       addons/vorepository.lo
addons/vorepository.c: In function 'Close':
addons/vorepository.c:490:9: error: implicit declaration of function 'unlink' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
-----

Signed-off-by: Francois Cartegnie <fcvlcdev at free.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4d67619bda8c1f62c54293840120410bb4fa660b
---

 modules/misc/addons/vorepository.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/misc/addons/vorepository.c b/modules/misc/addons/vorepository.c
index 3a21791..b6b9a29 100644
--- a/modules/misc/addons/vorepository.c
+++ b/modules/misc/addons/vorepository.c
@@ -487,7 +487,7 @@ static void Close(vlc_object_t *p_this)
     addons_finder_t *p_finder = (addons_finder_t*) p_this;
     if ( p_finder->p_sys->psz_tempfile )
     {
-        unlink( p_finder->p_sys->psz_tempfile );
+        vlc_unlink( p_finder->p_sys->psz_tempfile );
         free( p_finder->p_sys );
     }
 }



More information about the vlc-commits mailing list