From: Alan Cox Date: Sun, 11 Feb 2018 21:31:22 +0000 (+0000) Subject: libc: const pedanticism X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=54b13effc3b1036d9c6e1f6a008aa86c9cc14c78;p=FUZIX.git libc: const pedanticism --- diff --git a/Library/libs/termcap.c b/Library/libs/termcap.c index c463d187..5884adfd 100644 --- a/Library/libs/termcap.c +++ b/Library/libs/termcap.c @@ -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) diff --git a/Library/libs/tgetent.c b/Library/libs/tgetent.c index ab696f33..a9ef907c 100644 --- a/Library/libs/tgetent.c +++ b/Library/libs/tgetent.c @@ -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