[BACK]Return to patch-src_config_file.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / multimedia / vlc21 / patches

Annotation of pkgsrc/multimedia/vlc21/patches/patch-src_config_file.c, Revision 1.1

1.1     ! wiz         1: $NetBSD$
        !             2:
        !             3: Rename strtoi to vlc_strtoi to avoid conflict with NetBSD built-in
        !             4: function strtoi.
        !             5:
        !             6: --- src/config/file.c.orig     2013-06-24 18:00:39.000000000 +0000
        !             7: +++ src/config/file.c
        !             8: @@ -140,7 +140,7 @@ static FILE *config_OpenConfigFile( vlc_
        !             9:  }
        !            10:
        !            11:
        !            12: -static int64_t strtoi (const char *str)
        !            13: +static int64_t vlc_strtoi (const char *str)
        !            14:  {
        !            15:      char *end;
        !            16:      long long l;
        !            17: @@ -225,7 +225,7 @@ int config_LoadConfigFile( vlc_object_t
        !            18:                  int64_t l;
        !            19:
        !            20:                  errno = 0;
        !            21: -                l = strtoi (psz_option_value);
        !            22: +                l = vlc_strtoi (psz_option_value);
        !            23:                  if ((l > item->max.i) || (l < item->min.i))
        !            24:                      errno = ERANGE;
        !            25:                  if (errno)

CVSweb <webmaster@jp.NetBSD.org>