summaryrefslogtreecommitdiffstats
path: root/lib/utils/copyfd.cpp
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2010-08-24 12:09:21 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2010-08-24 12:09:21 +0200
commitd19af002e83237b5f8b67eae171a008c9bd3ccc5 (patch)
treeff3476622994cfa8e32e7a45cf9a8d3436d6678d /lib/utils/copyfd.cpp
parent14abf4481f0fb60c0141d9ab32d8a73d4f974875 (diff)
downloadabrt-d19af002e83237b5f8b67eae171a008c9bd3ccc5.tar.gz
abrt-d19af002e83237b5f8b67eae171a008c9bd3ccc5.tar.xz
abrt-d19af002e83237b5f8b67eae171a008c9bd3ccc5.zip
make abrtlib.h include'able from .c files, not only .cpp
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'lib/utils/copyfd.cpp')
-rw-r--r--lib/utils/copyfd.cpp4
1 files changed, 2 insertions, 2 deletions
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;