remove C99-ism (mixed declaration and code),

10l to Uoti Urpala for breaking GCC-2.95 support yet again even though any post-2.95 GCC version print a clear warning about it
Patch by Carl Eugen Hoyos % cehoyos A ag P or P at %


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22374 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
gpoirier 2007-02-28 09:18:42 +00:00
parent 309dc7e6c6
commit 2793a70e0f
1 changed files with 3 additions and 1 deletions

View File

@ -1204,10 +1204,12 @@ static double parse_timestring(char *str)
static int parse_time(m_option_t* opt,char *name, char *param, void* dst, int src) static int parse_time(m_option_t* opt,char *name, char *param, void* dst, int src)
{ {
double time;
if (param == NULL || strlen(param) == 0) if (param == NULL || strlen(param) == 0)
return M_OPT_MISSING_PARAM; return M_OPT_MISSING_PARAM;
double time = parse_timestring(param); time = parse_timestring(param);
if (time == -1e100) { if (time == -1e100) {
mp_msg(MSGT_CFGPARSER, MSGL_ERR, "Option %s: invalid time: '%s'\n", mp_msg(MSGT_CFGPARSER, MSGL_ERR, "Option %s: invalid time: '%s'\n",
name,param); name,param);