1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Fix code for undefined USE_NLS_PROGRESS_BAR in progress.c

Reported-by: Gisle Vanem
This commit is contained in:
Tim Ruehsen 2014-11-20 21:48:04 +01:00
parent e15ef0b4da
commit bc75d2ecdf
2 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2014-11-20 Tim Ruehsen <tim.ruehsen@gmx.de>
* progress.c: Fix code for undefined USE_NLS_PROGRESS_BAR
Reported-by: Gisle Vanem
2014-11-20 Gisle Vanem <gvanem@yahoo.no>
* build_info.c.in: Assume large file for WINDOWS

View File

@ -840,11 +840,13 @@ cols_to_bytes (const char *mbs, const int cols, int *ncols)
return bytes;
}
#else
# define count_cols(mbs) ((int)(strlen(mbs)))
# define cols_to_bytes(mbs, cols, *ncols) do { \
*ncols = cols; \
bytes = cols; \
}while (0)
static int count_cols (const char *mbs) { return (int) strlen(mbs); }
static int
cols_to_bytes (const char *mbs _GL_UNUSED, const int cols, int *ncols)
{
*ncols = cols;
return cols;
}
#endif
static const char *