]> git.sesse.net Git - vlc/commitdiff
compilation fix
authorFelix Paul Kühne <fkuehne@videolan.org>
Thu, 27 Aug 2009 13:09:43 +0000 (15:09 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Thu, 27 Aug 2009 13:09:54 +0000 (15:09 +0200)
The actual folders still need to be implemented

src/config/dirs_macos.c

index 46d3b5e808c78ef28a8e65b1b037eef3b62ca785..0d4a63844bdf524238e629e3d7e1465e9343f568 100644 (file)
@@ -43,7 +43,7 @@ const char *config_GetDataDir( void )
 #warning FIXME: thread-safety!
     if( *path == '\0' )
     {
-        snprintf( path, sizeof( path ), "%s" DIR_SEP DIR_SHARE, psz_vlcpath );
+        snprintf( path, sizeof( path ), "%s" DIR_SEP "share", psz_vlcpath );
         path[sizeof( path ) - 1] = '\0';
     }
     return path;
@@ -91,7 +91,7 @@ const char *config_GetConfDir( void )
 #warning FIXME: system config is not the same as shared app data...
     if( *path == '\0' )
     {
-        snprintf( path, sizeof( path ), "%s"DIR_SEP DIR_SHARE, /* FIXME: Duh? */
+        snprintf( path, sizeof( path ), "%s" DIR_SEP "share", /* FIXME: Duh? */
                   psz_vlcpath );
         path[sizeof( path ) - 1] = '\0';
     }
@@ -126,7 +126,7 @@ static char *config_GetHomeDir (void)
 static char *config_GetAppDir (void)
 {
     char *psz_dir;
-    const char *psz_parent = GetDir (false);
+    const char *psz_parent = GetDir ();
 
     if( asprintf( &psz_dir, "%s/Library/Preferences/VLC", psz_parent ) == -1 )
         psz_dir = NULL;