[MPlayer-cvslog] CVS: main m_option.c,1.41,1.42
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Thu Oct 13 20:33:59 CEST 2005
- Previous message: [MPlayer-cvslog] CVS: main/libmpdemux stream_file.c,1.8,1.9
- Next message: [MPlayer-cvslog] CVS: main/libmpdemux aviprint.c, 1.19, 1.20 cache2.c, 1.27, 1.28 demux_aac.c, 1.4, 1.5 demux_mkv.c, 1.48, 1.49 demux_ogg.c, 1.79, 1.80 demux_ts.c, 1.35, 1.36 demux_ty.c, 1.8, 1.9 demux_vqf.c, 1.3, 1.4 muxer_lavf.c, 1.10, 1.11 muxer_mpeg.c, 1.20, 1.21 network.c, 1.117, 1.118 stream.c, 1.79, 1.80 stream_file.c, 1.9, 1.10 stream_ftp.c, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv12401
Modified Files:
m_option.c
Log Message:
Use PRI?64 defines as format strings for 64 bit variables.
Index: m_option.c
===================================================================
RCS file: /cvsroot/mplayer/main/m_option.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- m_option.c 12 Oct 2005 16:35:37 -0000 1.41
+++ m_option.c 13 Oct 2005 18:33:56 -0000 1.42
@@ -289,7 +289,7 @@
if (param == NULL)
return M_OPT_MISSING_PARAM;
if (sscanf(param, sizeof(off_t) == sizeof(int) ?
- "%d%c" : "%lld%c", &tmp_off, &dummy) != 1) {
+ "%d%c" : "%"PRId64"%c", &tmp_off, &dummy) != 1) {
mp_msg(MSGT_CFGPARSER, MSGL_ERR, "The %s option must be an integer: %s\n",opt->name,param);
return M_OPT_INVALID;
}
@@ -297,20 +297,16 @@
if (opt->flags & M_OPT_MIN)
if (tmp_off < opt->min) {
mp_msg(MSGT_CFGPARSER, MSGL_ERR,
- (sizeof(off_t) == sizeof(int) ?
- "The %s option must be >= %d: %s\n" :
- "The %s option must be >= %lld: %s\n"),
- name, (off_t) opt->min, param);
+ "The %s option must be >= %"PRId64": %s\n",
+ name, (int64_t) opt->min, param);
return M_OPT_OUT_OF_RANGE;
}
if (opt->flags & M_OPT_MAX)
if (tmp_off > opt->max) {
mp_msg(MSGT_CFGPARSER, MSGL_ERR,
- (sizeof(off_t) == sizeof(int) ?
- "The %s option must be <= %d: %s\n" :
- "The %s option must be <= %lld: %s\n"),
- name, (off_t) opt->max, param);
+ "The %s option must be <= %"PRId64": %s\n",
+ name, (int64_t) opt->max, param);
return M_OPT_OUT_OF_RANGE;
}
@@ -320,7 +316,7 @@
}
static char* print_position(m_option_t* opt, void* val) {
- return dup_printf(sizeof(off_t) == sizeof(int) ? "%d" : "%lld",VAL(val));
+ return dup_printf("%"PRId64,(int64_t)VAL(val));
}
m_option_type_t m_option_type_position = {
- Previous message: [MPlayer-cvslog] CVS: main/libmpdemux stream_file.c,1.8,1.9
- Next message: [MPlayer-cvslog] CVS: main/libmpdemux aviprint.c, 1.19, 1.20 cache2.c, 1.27, 1.28 demux_aac.c, 1.4, 1.5 demux_mkv.c, 1.48, 1.49 demux_ogg.c, 1.79, 1.80 demux_ts.c, 1.35, 1.36 demux_ty.c, 1.8, 1.9 demux_vqf.c, 1.3, 1.4 muxer_lavf.c, 1.10, 1.11 muxer_mpeg.c, 1.20, 1.21 network.c, 1.117, 1.118 stream.c, 1.79, 1.80 stream_file.c, 1.9, 1.10 stream_ftp.c, 1.5, 1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list