summaryrefslogtreecommitdiffstats
path: root/contrib/mdocml/test-getsubopt.c
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2016-01-15 23:28:12 +0000
committerbapt <bapt@FreeBSD.org>2016-01-15 23:28:12 +0000
commite1581ec0f03f2f2c260785ce05fca5a98c8d65b4 (patch)
treeae81f04244baa70cf59bab257864c9dd79596a69 /contrib/mdocml/test-getsubopt.c
parentcb734ceab666d0372162796ee007f4777451d293 (diff)
parente15bccbf37b1a75c96083f38f1d7580cfa8aa1ea (diff)
downloadFreeBSD-src-e1581ec0f03f2f2c260785ce05fca5a98c8d65b4.zip
FreeBSD-src-e1581ec0f03f2f2c260785ce05fca5a98c8d65b4.tar.gz
Update mandoc to 20160116
Diffstat (limited to 'contrib/mdocml/test-getsubopt.c')
-rw-r--r--contrib/mdocml/test-getsubopt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/mdocml/test-getsubopt.c b/contrib/mdocml/test-getsubopt.c
index b083569..afcc559 100644
--- a/contrib/mdocml/test-getsubopt.c
+++ b/contrib/mdocml/test-getsubopt.c
@@ -1,4 +1,4 @@
-/* $Id: test-getsubopt.c,v 1.3 2014/08/17 20:53:50 schwarze Exp $ */
+/* $Id: test-getsubopt.c,v 1.4 2015/10/06 18:32:20 schwarze Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -29,6 +29,6 @@ main(void)
char token0[] = "k";
char *const tokens[] = { token0, NULL };
char *value = NULL;
- return( ! (0 == getsubopt(&options, tokens, &value)
- && value == buf+2 && options == buf+3));
+ return ! (getsubopt(&options, tokens, &value) == 0
+ && value == buf+2 && options == buf+3);
}
OpenPOWER on IntegriCloud