mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-04-19 02:24:03 +03:00
tests: Use fseek instead of rewind to simplify error checking
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Norbert Pocs <norbertpocs0@gmail.com>
This commit is contained in:
parent
69c169e4cb
commit
bd10ec1162
@ -82,7 +82,8 @@ static void torture_retrieve_dhgroup_file(UNUSED_PARAM(void **state))
|
||||
int rc;
|
||||
|
||||
fwrite(moduli_content, 1, sizeof(moduli_content), moduli);
|
||||
rewind(moduli);
|
||||
rc = fseek(moduli, 0L, SEEK_SET);
|
||||
assert_int_equal(rc, 0);
|
||||
rc = ssh_retrieve_dhgroup_file(moduli,
|
||||
1024,
|
||||
2048,
|
||||
|
Loading…
x
Reference in New Issue
Block a user