diff options
author | Karel Zak | 2014-12-19 14:34:03 +0100 |
---|---|---|
committer | Karel Zak | 2014-12-19 14:34:03 +0100 |
commit | 2e28ebff999612bfc02a4f85e297e136efbe514d (patch) | |
tree | 9ff9c787fa11034b205902121a3b64867dd51e15 /text-utils | |
parent | Merge remote-tracking branch 'sami/2014wk49' (diff) | |
download | kernel-qcow2-util-linux-2e28ebff999612bfc02a4f85e297e136efbe514d.tar.gz kernel-qcow2-util-linux-2e28ebff999612bfc02a4f85e297e136efbe514d.tar.xz kernel-qcow2-util-linux-2e28ebff999612bfc02a4f85e297e136efbe514d.zip |
more: fix compiler warnings
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils')
-rw-r--r-- | text-utils/more.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/text-utils/more.c b/text-utils/more.c index a75cd7a80..5c484575b 100644 --- a/text-utils/more.c +++ b/text-utils/more.c @@ -1092,10 +1092,10 @@ void clreos(void) } -static UL_ASAN_BLACKLIST xmbrtowc(wchar_t *wc, const char *s, size_t n, +static UL_ASAN_BLACKLIST size_t xmbrtowc(wchar_t *wc, const char *s, size_t n, mbstate_t *mbstate) { - const size_t mblength = mbrtowc(&wc, s, n, &mbstate); + const size_t mblength = mbrtowc(wc, s, n, mbstate); if (mblength == (size_t)-2 || mblength == (size_t)-1) return 1; return mblength; |