diff options
author | Karel Zak | 2006-12-07 00:25:43 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:25:43 +0100 |
commit | 22853e4a82c6ef7b336527529acb94b14a0b0fd8 (patch) | |
tree | ee28e4598c8c449d7e811711d8ce8eb17caecfb6 /text-utils/ul.c | |
parent | Imported from util-linux-2.10f tarball. (diff) | |
download | kernel-qcow2-util-linux-22853e4a82c6ef7b336527529acb94b14a0b0fd8.tar.gz kernel-qcow2-util-linux-22853e4a82c6ef7b336527529acb94b14a0b0fd8.tar.xz kernel-qcow2-util-linux-22853e4a82c6ef7b336527529acb94b14a0b0fd8.zip |
Imported from util-linux-2.10m tarball.
Diffstat (limited to 'text-utils/ul.c')
-rw-r--r-- | text-utils/ul.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/text-utils/ul.c b/text-utils/ul.c index 7745cce4d..419efc938 100644 --- a/text-utils/ul.c +++ b/text-utils/ul.c @@ -282,7 +282,7 @@ void filter(FILE *f) flushln(); } -void flushln() +void flushln(void) { int lastmode; int i; @@ -321,7 +321,7 @@ void flushln() * For terminals that can overstrike, overstrike underlines and bolds. * We don't do anything with halfline ups and downs, or Greek. */ -void overstrike() +void overstrike(void) { register int i; #ifdef __GNUC__ @@ -362,7 +362,7 @@ void overstrike() } } -void iattr() +void iattr(void) { register int i; #ifdef __GNUC__ @@ -389,7 +389,7 @@ void iattr() putwchar('\n'); } -void initbuf() +void initbuf(void) { if (obuf == NULL) { /* First time. */ obuflen = INITBUF; @@ -401,13 +401,13 @@ void initbuf() } /* assumes NORMAL == 0 */ - bzero((char *)obuf, sizeof(struct CHAR) * obuflen); + memset(obuf, 0, sizeof(struct CHAR) * obuflen); setcol(0); maxcol = 0; mode &= ALTSET; } -void fwd() +void fwd(void) { int oldcol, oldmax; @@ -418,7 +418,7 @@ void fwd() maxcol = oldmax; } -void reverse() +void reverse(void) { upln++; fwd(); @@ -427,10 +427,8 @@ void reverse() upln++; } -void initinfo() +void initinfo(void) { - char *tigetstr(); - CURS_UP = tigetstr("cuu1"); CURS_RIGHT = tigetstr("cuf1"); CURS_LEFT = tigetstr("cub1"); |