Do not pass an enum type to va_arg

This commit is contained in:
Martin Willi
2011-01-17 18:18:58 +01:00
parent ff5538e5c0
commit d27a8e5011
+2 -2
View File
@@ -92,7 +92,7 @@ static status_t fetch(private_fetcher_manager_t *this,
va_start(args, response);
while (good)
{
opt = va_arg(args, fetcher_option_t);
opt = va_arg(args, int);
switch (opt)
{
case FETCH_REQUEST_DATA:
@@ -109,7 +109,7 @@ static status_t fetch(private_fetcher_manager_t *this,
good = fetcher->set_option(fetcher, opt, va_arg(args, u_int));
continue;
case FETCH_END:
break;;
break;
}
break;
}