[PATCH] cal: remove libtermcap arguments to my_tgetstr()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Missed in commit b4566a8a8d0cf345e637194f9c95091a1ef4dfe0.

Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 misc-utils/cal.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/misc-utils/cal.c b/misc-utils/cal.c
index c687c6c..2a53b89 100644
--- a/misc-utils/cal.c
+++ b/misc-utils/cal.c
@@ -108,7 +108,7 @@ static void my_putstring(char *s)
 		fputs(s, stdout);
 }
 
-static const char *my_tgetstr(char *s __attribute__ ((__unused__)), char *ss)
+static const char *my_tgetstr(char *ss)
 {
 	const char *ret = NULL;
 
@@ -288,8 +288,8 @@ int main(int argc, char **argv)
 		if (term) {
 			has_term = setup_terminal(term) == 0;
 			if (has_term) {
-				Senter = my_tgetstr("so", "smso");
-				Sexit = my_tgetstr("se", "rmso");
+				Senter = my_tgetstr("smso");
+				Sexit = my_tgetstr("rmso");
 			}
 		}
 	}
-- 
2.7.2

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux