Author: mitayai
Date: 24-08-06 16:37
The easiest way i can think of is to change the instances of %"PRId64" with %lld
if (sscanf(param, sizeof(off_t) == sizeof(int) ?
"%d%c" : "%lld%c", &tmp_off, &dummy) != 1) {
mp_msg(MSGT_CFGPARSER, MSGL_ERR, "The %s option must be an integer: %s\n",o
pt->name,param);
return M_OPT_INVALID;
}
if (opt->flags & M_OPT_MIN)
if (tmp_off < opt->min) {
mp_msg(MSGT_CFGPARSER, MSGL_ERR,
"The %s option must be >= %lld: %s\n",
name, (int64_t) opt->min, param);
return M_OPT_OUT_OF_RANGE;
}
static char* print_position(m_option_t* opt, void* val) {
return dup_printf("%lld",(int64_t)VAL(val));
}
|
|