]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
more: fix compiler warnings
authorKarel Zak <kzak@redhat.com>
Fri, 19 Dec 2014 13:34:03 +0000 (14:34 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 19 Dec 2014 13:34:03 +0000 (14:34 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/more.c

index a75cd7a803fef53188b5ed65a8529f94b7a85425..5c484575bdf50f9195ed0cdcca899de597152025 100644 (file)
@@ -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;