copy: factor out a tiny sparse-testing function
commit846d826096fc8fb621d751f8b3db1da68a8bbd06
authorJim Meyering <meyering@redhat.com>
Wed, 20 Apr 2011 08:23:32 +0000 (20 10:23 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 20 Apr 2011 16:48:48 +0000 (20 18:48 +0200)
tree6f24c73b7e12cc90ea4dbd85ee6ea0cd361d8e0a
parentbef4fa1e1a20c636979db159647a93e5954bc542
copy: factor out a tiny sparse-testing function

* src/copy.c (HAVE_STRUCT_STAT_ST_BLOCKS): Define to 0 if undefined,
so we can use it in the return expression, here:
(is_probably_sparse): New function, factored out of...
(copy_reg): ...here.  Use the new function.
src/copy.c