util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] cal: use a const char*
@ 2020-03-28 22:33 Aurelien LAJOIE
  2020-03-28 22:33 ` [PATCH 2/3] cal: Correctly center the year Aurelien LAJOIE
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Aurelien LAJOIE @ 2020-03-28 22:33 UTC (permalink / raw)
  To: util-linux; +Cc: Aurelien LAJOIE

A put string function should not modify the char*

Signed-off-by: Aurelien LAJOIE <orel@melix.net>
---
 misc-utils/cal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc-utils/cal.c b/misc-utils/cal.c
index 6f192ccea..728600377 100644
--- a/misc-utils/cal.c
+++ b/misc-utils/cal.c
@@ -108,7 +108,7 @@ static int setup_terminal(char *term
 	return 0;
 }
 
-static void my_putstring(char *s)
+static void my_putstring(const char *s)
 {
 #if defined(HAVE_LIBNCURSES) || defined(HAVE_LIBNCURSESW)
 	if (has_term)
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-04-01 16:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-28 22:33 [PATCH 1/3] cal: use a const char* Aurelien LAJOIE
2020-03-28 22:33 ` [PATCH 2/3] cal: Correctly center the year Aurelien LAJOIE
2020-03-29 14:39   ` J William Piggott
2020-03-30 11:14     ` Aurélien Lajoie
2020-03-31 13:41     ` Karel Zak
2020-03-31 15:06       ` J William Piggott
2020-03-31 16:55         ` Aurélien Lajoie
2020-04-01 16:05           ` J William Piggott
2020-03-31 16:44       ` Bruce Dubbs
2020-03-28 22:33 ` [PATCH 3/3] cal: correctly set the week width Aurelien LAJOIE
2020-03-28 22:40 ` [PATCH 1/3] cal: use a const char* Aurélien Lajoie
2020-03-30 19:18   ` Karel Zak
2020-03-31 13:34 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).