mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
- Use strlen instead of hardcoding a number
- Terminate a sentence with a period Approved by: cognet
This commit is contained in:
parent
415dfa833a
commit
ae5cb1b14b
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue