From d19af002e83237b5f8b67eae171a008c9bd3ccc5 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 24 Aug 2010 12:09:21 +0200 Subject: make abrtlib.h include'able from .c files, not only .cpp Signed-off-by: Denys Vlasenko --- lib/utils/copyfd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/utils/copyfd.cpp') diff --git a/lib/utils/copyfd.cpp b/lib/utils/copyfd.cpp index cbcf7005..61acc479 100644 --- a/lib/utils/copyfd.cpp +++ b/lib/utils/copyfd.cpp @@ -134,7 +134,7 @@ off_t copyfd_size(int fd1, int fd2, off_t size, int flags) void copyfd_exact_size(int fd1, int fd2, off_t size) { - off_t sz = copyfd_size(fd1, fd2, size); + off_t sz = copyfd_size(fd1, fd2, size, /*flags:*/ 0); if (sz == size) return; if (sz != -1) @@ -164,7 +164,7 @@ off_t copy_file(const char *src_name, const char *dst_name, int mode) perror_msg("Can't open '%s'", dst_name); return -1; } - r = copyfd_eof(src, dst); + r = copyfd_eof(src, dst, /*flags:*/ 0); close(src); close(dst); return r; -- cgit