[MPlayer-cvslog] r34679 - trunk/gui/cfg.c
ib
subversion at mplayerhq.hu
Fri Feb 10 14:48:42 CET 2012
Author: ib
Date: Fri Feb 10 14:48:42 2012
New Revision: 34679
Log:
Use macro FF_ARRAY_ELEMS() instead of numeric constant.
Modified:
trunk/gui/cfg.c
Modified: trunk/gui/cfg.c
==============================================================================
--- trunk/gui/cfg.c Fri Feb 10 14:44:25 2012 (r34678)
+++ trunk/gui/cfg.c Fri Feb 10 14:48:42 2012 (r34679)
@@ -353,7 +353,7 @@ void cfg_write(void)
{
char *fname;
FILE *file;
- int i;
+ unsigned int i;
// configuration
@@ -426,7 +426,7 @@ void cfg_write(void)
file = fopen(fname, "wt+");
if (file) {
- for (i = 0; i < 5; i++)
+ for (i = 0; i < FF_ARRAY_ELEMS(fsHistory); i++)
if (fsHistory[i])
fprintf(file, "%s\n", fsHistory[i]);
More information about the MPlayer-cvslog
mailing list