From: Christos Zoulas Date: Wed, 26 Jun 2013 14:46:54 +0000 (+0000) Subject: make this compile again. X-Git-Tag: FILE5_15~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33dc616d82f1f327a14f0ac50b86b12a68240088;p=file make this compile again. --- diff --git a/src/file.c b/src/file.c index ed9ee746..325210e2 100644 --- a/src/file.c +++ b/src/file.c @@ -32,7 +32,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: file.c,v 1.150 2013/06/04 21:51:00 ian Exp $") +FILE_RCSID("@(#)$File: file.c,v 1.151 2013/06/09 00:13:36 christos Exp $") #endif /* lint */ #include "magic.h" @@ -446,7 +446,7 @@ protected size_t file_mbswidth(const char *s) { #if defined(HAVE_WCHAR_H) && defined(HAVE_MBRTOWC) && defined(HAVE_WCWIDTH) - size_t bytesconsumed, old_n, n, w = 0; + size_t bytesconsumed, old_n, n, width = 0; mbstate_t state; wchar_t nextchar; (void)memset(&state, 0, sizeof(mbstate_t)); @@ -466,7 +466,7 @@ file_mbswidth(const char *s) */ width++; } else { - w = wcwidth(nextchar); + int w = wcwidth(nextchar); if (w > 0) width += w; }