Lint part 1, unused variables, routines, and return codes.

This commit is contained in:
jwalz
2002-03-10 00:30:53 +00:00
parent 570a6e8bbd
commit bab78d03c8
18 changed files with 43 additions and 90 deletions

View File

@@ -336,7 +336,7 @@ register int x,y;
char *et;
unsigned maxelen = BUFSZ - sizeof("You feel the words: \"\". ");
if (strlen(ep->engr_txt) > maxelen) {
strncpy(buf, ep->engr_txt, maxelen);
(void) strncpy(buf, ep->engr_txt, maxelen);
buf[maxelen] = '\0';
et = buf;
} else