summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2014-06-03 07:11:22 +0000
committergahr <gahr@FreeBSD.org>2014-06-03 07:11:22 +0000
commit9bd431f63298f472cfadf410aeae6eb01aa5ff0e (patch)
treec3f28f74b75e4579bddcfa24ddd91d80f46072eb /tools
parente14476b9d55828d50be9d6cddad9945f47a9087a (diff)
downloadFreeBSD-src-9bd431f63298f472cfadf410aeae6eb01aa5ff0e.zip
FreeBSD-src-9bd431f63298f472cfadf410aeae6eb01aa5ff0e.tar.gz
- Use strlen instead of hardcoding a number
- Terminate a sentence with a period Approved by: cognet
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/lib/libc/stdio/test-fmemopen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/regression/lib/libc/stdio/test-fmemopen.c b/tools/regression/lib/libc/stdio/test-fmemopen.c
index 469cc1a..9f63664 100644
--- a/tools/regression/lib/libc/stdio/test-fmemopen.c
+++ b/tools/regression/lib/libc/stdio/test-fmemopen.c
@@ -268,7 +268,7 @@ test_append_binary_pos()
*/
char buf[] = "Hello";
fp = fmemopen(buf, sizeof(buf), "ab+");
- assert(ftell(fp) == 5);
+ assert(ftell(fp) == strlen(buf));
fclose(fp);
}
@@ -276,7 +276,7 @@ void
test_size_0()
{
/*
- * POSIX mandates that we return EINVAL if size is 0
+ * POSIX mandates that we return EINVAL if size is 0.
*/
FILE *fp;
OpenPOWER on IntegriCloud