aboutsummaryrefslogtreecommitdiff
path: root/paludis/fs_merger.cc
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2013-06-20 18:43:09 -0700
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2013-06-23 11:59:55 -0700
commit3f2aca298c28e50745926a96758f4641dc73cf51 (patch)
tree88c7cbdcc9e6bb6e530849f71ca9df4055f6f418 /paludis/fs_merger.cc
parentf5088a55a9c88793a53172b7029713f2f64e687a (diff)
downloadpaludis-3f2aca298c28e50745926a96758f4641dc73cf51.tar.gz
paludis-3f2aca298c28e50745926a96758f4641dc73cf51.tar.xz
C++11: auto convert to nullptr via cpp11-migrate
This is a blanket migration via the clang C++11 migration tool to convert NULL pointer to nullptr usage. Signed-off-by: Saleem Abdulrasool <compnerd@compnerd.org>
Diffstat (limited to 'paludis/fs_merger.cc')
-rw-r--r--paludis/fs_merger.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/paludis/fs_merger.cc b/paludis/fs_merger.cc
index 908ce1283..7b6d07449 100644
--- a/paludis/fs_merger.cc
+++ b/paludis/fs_merger.cc
@@ -803,7 +803,7 @@ FSMerger::try_to_copy_xattrs(const FSPath & src, int dst_fd, FSMergerStatusFlags
{
FDHolder src_fd(::open(stringify(src).c_str(), O_RDONLY));
- ssize_t list_sz(flistxattr(src_fd, 0, 0));
+ ssize_t list_sz(flistxattr(src_fd, nullptr, 0));
if (-1 == list_sz)
{
if (ENOTSUP != errno)
@@ -833,7 +833,7 @@ FSMerger::try_to_copy_xattrs(const FSPath & src, int dst_fd, FSMergerStatusFlags
std::string key(list_holder.get() + offset);
do
{
- ssize_t value_sz(fgetxattr(src_fd, key.c_str(), 0, 0));
+ ssize_t value_sz(fgetxattr(src_fd, key.c_str(), nullptr, 0));
if (-1 == value_sz)
{
Log::get_instance()->message("merger.xattrs.failure", ll_warning, lc_context) <<