Changeset 1bbcb9f0db5392f291b31f03db9048e18db4e4bf

Show
Ignore:
Timestamp:
03/11/08 09:05:24 (6 months ago)
Author:
Rafaël Carré <funman@videolan.org>
git-committer:
Rafaël Carré <funman@videolan.org> 1205222724 +0100
git-parent:

[13e1b6f48378b9cced92b2b9efb814b34824ea98]

git-author:
Rafaël Carré <funman@videolan.org> 1205191110 +0100
Message:

cleanup : remove useless headers, not used functions, msg_Err when we don't have enough memory, add a declaration

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/config/cmdline.c

    r0d0f59a r1bbcb9f  
    2929#include "../libvlc.h" 
    3030#include "vlc_keys.h" 
    31 #include "vlc_charset.h" 
    32  
    33 #include <errno.h>                                                  /* errno */ 
    34 #include <limits.h> 
    35  
    36 #ifdef HAVE_UNISTD_H 
    37 #    include <unistd.h>                                          /* getuid() */ 
    38 #endif 
    3931 
    4032#ifdef HAVE_GETOPT_LONG 
     
    4436#else 
    4537#   include "../extras/getopt.h" 
    46 #endif 
    47  
    48 #if defined(HAVE_GETPWUID) 
    49 #   include <pwd.h>                                            /* getpwuid() */ 
    50 #endif 
    51  
    52 #if defined( HAVE_SYS_STAT_H ) 
    53 #   include <sys/stat.h> 
    54 #endif 
    55 #if defined( HAVE_SYS_TYPES_H ) 
    56 #   include <sys/types.h> 
    57 #endif 
    58 #if defined( WIN32 ) 
    59 #   if !defined( UNDER_CE ) 
    60 #       include <direct.h> 
    61 #   endif 
    62 #include <tchar.h> 
    6338#endif 
    6439 
     
    133108    if( p_longopts == NULL ) 
    134109    { 
    135         msg_Err( p_this, "out of memory" ); 
    136110        vlc_list_release( p_list ); 
    137111        return -1; 
     
    141115    if( psz_shortopts == NULL ) 
    142116    { 
    143         msg_Err( p_this, "out of memory" ); 
    144117        free( p_longopts ); 
    145118        vlc_list_release( p_list ); 
     
    155128        if( argv_copy == NULL ) 
    156129        { 
    157             msg_Err( p_this, "out of memory" ); 
    158130            free( psz_shortopts ); 
    159131            free( p_longopts ); 
  • src/config/core.c

    r751d2f1 r1bbcb9f  
    4040#endif 
    4141 
    42 #ifdef HAVE_GETOPT_LONG 
    43 #   ifdef HAVE_GETOPT_H 
    44 #       include <getopt.h>                                       /* getopt() */ 
    45 #   endif 
    46 #else 
    47 #   include "../extras/getopt.h" 
    48 #endif 
    49  
    5042#if defined(HAVE_GETPWUID) 
    5143#   include <pwd.h>                                            /* getpwuid() */ 
     
    7163{ 
    7264    return src ? strdup (src) : NULL; 
    73 } 
    74  
    75 static inline char *_strdupnull (const char *src) 
    76 { 
    77     return src ? strdup (_(src)) : NULL; 
    7865} 
    7966 
     
    730717 *   - on other OSes it's the same as the home directory. 
    731718 */ 
     719char *config_GetUserDir( void ); /* XXX why does gcc wants a declaration ? 
     720                                  * --funman */ 
    732721char *config_GetUserDir( void ) 
    733722{ 
  • src/config/file.c

    r249229a r1bbcb9f  
    4545    return src ? strdup (src) : NULL; 
    4646} 
    47  
    48 static inline char *_strdupnull (const char *src) 
    49 { 
    50     return src ? strdup (_(src)) : NULL; 
    51 } 
    52  
    5347 
    5448static FILE *config_OpenConfigFile( vlc_object_t *p_obj, const char *mode )