]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cal: use a const char*
authorAurelien LAJOIE <orel@melix.net>
Sat, 28 Mar 2020 22:33:39 +0000 (23:33 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 31 Mar 2020 13:31:52 +0000 (15:31 +0200)
A put string function should not modify the char*

Signed-off-by: Aurelien LAJOIE <orel@melix.net>
misc-utils/cal.c

index 6f192cceaaaefafc7b7f4e389b63c2e05d491526..7286003779e18eb9cc40eb3951a943c211f3d7bc 100644 (file)
@@ -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)