summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2005-05-23 00:11:15 +0000
committerAlexander Barton <alex@barton.de>2005-05-23 00:11:15 +0000
commit9c3c7e5a09c131874be099547896107df1919a5f (patch)
treea511e132aab928b6bf15a9630f4f7b4c120414cb /src
parentcd0dc8627dca26918169b646873936ce30a61e55 (diff)
downloadngircd-9c3c7e5a09c131874be099547896107df1919a5f.tar.gz
ngircd-9c3c7e5a09c131874be099547896107df1919a5f.zip
Handle splint errors more gracefully.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/Makefile.am b/src/ngircd/Makefile.am
index f6b0c479..075954c7 100644
--- a/src/ngircd/Makefile.am
+++ b/src/ngircd/Makefile.am
@@ -8,7 +8,7 @@
 # (at your option) any later version.
 # Please read the file COPYING, README and AUTHORS for more information.
 #
-# $Id: Makefile.am,v 1.45 2005/04/09 18:23:37 alex Exp $
+# $Id: Makefile.am,v 1.46 2005/05/23 00:11:15 alex Exp $
 #
 
 AUTOMAKE_OPTIONS = ../portab/ansi2knr
@@ -64,7 +64,7 @@ lint:
 	  waswarning=1; \
 	  echo; grep -v "^Command Line: " lint.out; echo; \
 	  w=$$( grep "code warning" lint.out | awk "{ print \$$4 }" ); \
-	  warnings=`expr $$warnings + $$w`; \
+	  [ "$$w" -gt 0 ] && warnings=`expr $$warnings + $$w`; \
 	  files=`expr $$files + 1`; \
 	 else \
 	  waswarning=0; \