From 7e1be3986b3b8229f0162431b6e02c24e04a5dba Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 7 Oct 2019 14:53:50 +0200 Subject: Cleanup: move read_data function to libtar Its the only user. The other code doesn't touch raw file descriptors anymore. Signed-off-by: David Oberhollenzer --- tests/tar_xattr_bsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/tar_xattr_bsd.c') diff --git a/tests/tar_xattr_bsd.c b/tests/tar_xattr_bsd.c index 2e9479c..50c0150 100644 --- a/tests/tar_xattr_bsd.c +++ b/tests/tar_xattr_bsd.c @@ -51,7 +51,7 @@ int main(void) assert(hdr.mtime == 1543094477); assert(strcmp(hdr.name, "input.txt") == 0); assert(!hdr.unknown_record); - assert(read_data("data0", fd, buffer, 5) == 0); + assert(read_retry("data0", fd, buffer, 5) == 0); buffer[5] = '\0'; assert(strcmp(buffer, "test\n") == 0); -- cgit v1.2.3