]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ul: use correct types
authorSami Kerola <kerolasa@iki.fi>
Sun, 7 Jul 2013 19:54:46 +0000 (20:54 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 9 Jul 2013 12:25:36 +0000 (14:25 +0200)
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
text-utils/ul.c

index 7b50ede509edd51c528357fd8355ca84bed62420..26d2b172d2cbfc1f319336232419ae77711875a2 100644 (file)
@@ -463,11 +463,11 @@ static void iattr(void)
 {
        register int i;
 #ifdef __GNUC__
-       register char *lbuf = __builtin_alloca((maxcol+1)*sizeof(char));
+       register wchar_t *lbuf = __builtin_alloca((maxcol+1)*sizeof(wchar_t));
 #else
-       char lbuf[BUFSIZ];
+       wchar_t lbuf[BUFSIZ];
 #endif
-       register char *cp = lbuf;
+       register wchar_t *cp = lbuf;
 
        for (i = 0; i < maxcol; i++)
                switch (obuf[i].c_mode) {