summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-01-27 11:02:30 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-01-27 11:02:30 -0500
commit89392c9bc88b5615a2f7fccea327e3e53b0041e9 (patch)
tree48bdbf38653653d087e44269f23d8c655080d852
parent7b0ae083b7ec7afe8c273195c12d075a3c16d13f (diff)
downloadgpsd-89392c9bc88b5615a2f7fccea327e3e53b0041e9.tar.gz
Clean up a silly clang warning. All tests continue to pass with a clang build.
-rw-r--r--test_json.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test_json.c b/test_json.c
index 7982f933..1729c25d 100644
--- a/test_json.c
+++ b/test_json.c
@@ -396,7 +396,8 @@ static void jsontest(int i)
#endif /* JSON_MINIMAL */
default:
- (int)fputs("Unknown test number\n", stderr);
+ if (fputs("Unknown test number\n", stderr) == EOF)
+ exit(1);
break;
}
}