diff options
author | Ruediger Meier | 2016-02-07 12:59:57 +0100 |
---|---|---|
committer | Ruediger Meier | 2016-02-18 12:53:48 +0100 |
commit | b0b24b11f8072fc854dbf6ee31be0feba93beba3 (patch) | |
tree | dd77194b56ba820ba7e14c87f0f66c9ed6c82346 /text-utils/ul.c | |
parent | tests: fix ts_option helpers (diff) | |
download | kernel-qcow2-util-linux-b0b24b11f8072fc854dbf6ee31be0feba93beba3.tar.gz kernel-qcow2-util-linux-b0b24b11f8072fc854dbf6ee31be0feba93beba3.tar.xz kernel-qcow2-util-linux-b0b24b11f8072fc854dbf6ee31be0feba93beba3.zip |
lib: rename strmode() and setmode()
On BSD they are part of the standard C library.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'text-utils/ul.c')
-rw-r--r-- | text-utils/ul.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/text-utils/ul.c b/text-utils/ul.c index 7765b571e..115b88232 100644 --- a/text-utils/ul.c +++ b/text-utils/ul.c @@ -81,7 +81,7 @@ static void fwd(void); static void reverse(void); static void initinfo(void); static void outc(wint_t c, int width); -static void setmode(int newmode); +static void xsetmode(int newmode); static void setcol(int newcol); static void needcol(int col); static void sig_handler(int signo); @@ -368,7 +368,7 @@ static void flushln(void) for (i = 0; i < maxcol; i++) { if (obuf[i].c_mode != lastmode) { hadmodes++; - setmode(obuf[i].c_mode); + xsetmode(obuf[i].c_mode); lastmode = obuf[i].c_mode; } if (obuf[i].c_char == '\0') { @@ -382,7 +382,7 @@ static void flushln(void) i += obuf[i].c_width - 1; } if (lastmode != NORMAL) { - setmode(0); + xsetmode(0); } if (must_overstrike && hadmodes) overstrike(); @@ -560,11 +560,11 @@ static void outc(wint_t c, int width) { } } -static void setmode(int newmode) +static void xsetmode(int newmode) { if (!iflag) { if (curmode != NORMAL && newmode != NORMAL) - setmode(NORMAL); + xsetmode(NORMAL); switch (newmode) { case NORMAL: switch (curmode) { |