libc: const pedanticism
authorAlan Cox <alan@linux.intel.com>
Sun, 11 Feb 2018 21:31:22 +0000 (21:31 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 11 Feb 2018 21:31:22 +0000 (21:31 +0000)
Library/libs/termcap.c
Library/libs/tgetent.c

index c463d18..5884adf 100644 (file)
@@ -247,7 +247,7 @@ char *tgoto(const char *cm, int destcol, int destline)
 
 int tputs(const char *cp, int affcnt, int (*outc)(int ch))
 {
-    if (cp == (char *) NULL)
+    if (cp == (const char *) NULL)
        return (1);
     /* Do any padding interpretation - left null for MINIX just now */
     while (*cp)
index ab696f3..a9ef907 100644 (file)
@@ -72,7 +72,7 @@ int tgetent(char *bp, const char *name)
     /* Definition and TERM equals "name" then use TERMCAP as the   */
     /* Definition. Otherwise use "/etc/termcap" as the path name.  */
 
-    if ((file = getenv("TERMCAP")) == (char *) NULL)
+    if ((file = getenv("TERMCAP")) == (const char *) NULL)
        file = "/etc/termcap";
     else if (*file != '/')
        if ((term = getenv("TERM")) != (char *) NULL