summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorben <ben@FreeBSD.org>2001-02-21 12:10:19 +0000
committerben <ben@FreeBSD.org>2001-02-21 12:10:19 +0000
commit855f3f1d18493414d808b23608cdabb74da2aacd (patch)
tree2ffbaadef767cf18ccb6a5dcb76b9a53fa98eb7c /share
parentfb40cd6e4334a05b1acc5e9d139c07d00e37e91f (diff)
downloadFreeBSD-src-855f3f1d18493414d808b23608cdabb74da2aacd.zip
FreeBSD-src-855f3f1d18493414d808b23608cdabb74da2aacd.tar.gz
Don't suggest
if (error = function(a1, a2)) since it causes a warning with -Wall. Change it so it has an explicit test against zero, if ((error = function(a1, a2)) != 0)
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/style.92
1 files changed, 1 insertions, 1 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9
index b5f1762..3001cf6 100644
--- a/share/man/man9/style.9
+++ b/share/man/man9/style.9
@@ -348,7 +348,7 @@ or
.Sq \&)
characters.
.Bd -literal
- if (error = function(a1, a2))
+ if ((error = function(a1, a2)) != 0)
exit(error);
.Ed
.Pp
OpenPOWER on IntegriCloud