From: Eric S. Raymond Date: Wed, 27 Nov 2013 22:57:16 +0000 (-0500) Subject: Partial splint cleanup. X-Git-Tag: 3.14~3 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=de62764f8fcdbd95824db21ea2156a4f1e7ee211;p=ascii.git Partial splint cleanup. --- diff --git a/Makefile b/Makefile index dcf1658..bd564e9 100644 --- a/Makefile +++ b/Makefile @@ -30,6 +30,10 @@ CPPCHECKOPTS = cppcheck: nametable.h splashscreen.h cppcheck -DREVISION=$(VERS) $(CPPCHECKOPTS) ascii.c +SPLINT_SUPPRESSIONS = -boolops -nullret -initallelements +charintliteral +splint: + splint +quiet +posixlib $(SPLINT_SUPPRESSIONS) ascii.c + install: ascii ascii.1 cp ascii $(DESTDIR)$(PREFIX)/bin/ascii cp ascii.1 $(DESTDIR)$(PREFIX)/share/man/man1 diff --git a/ascii.c b/ascii.c index 6ba637b..4c1cc9d 100644 --- a/ascii.c +++ b/ascii.c @@ -13,12 +13,15 @@ * For license terms, see the file COPYING. */ +#ifndef S_SPLINT_S #include -#include #include +#endif /* S_SPLINT_S */ +#include #include #include #include +#include #ifdef __CYGWIN__ #undef stricmp @@ -400,6 +403,5 @@ int main(int argc, char **argv) exit(0); } -/******************************************************************/ /* ascii.c ends here */