]> git.cameronkatri.com Git - mandoc.git/blobdiff - test-getsubopt.c
Without HAVE_ERR, don't try to include <err.h>, it probably isn't there.
[mandoc.git] / test-getsubopt.c
index b0835697e83cb17f912ff557b8938a26cc7b5fbc..afcc5599d75f2b5adc49e3be1ca30ac1cea6ccd8 100644 (file)
@@ -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);
 }