From: Danny Al-Gaaf Date: Fri, 13 Apr 2018 13:47:58 +0000 (+0200) Subject: krbd.cc: fix parameter to variadic function X-Git-Tag: v13.1.0~237^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7e83dc6726034b5d2dc471e3be1a432b22c91c50;p=ceph.git krbd.cc: fix parameter to variadic function Fix for: [src/krbd.cc:549]: (portability) Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/krbd.cc b/src/krbd.cc index c7baaebc922..97ba92ac3a7 100644 --- a/src/krbd.cc +++ b/src/krbd.cc @@ -546,7 +546,7 @@ static int do_unmap(struct udev *udev, dev_t devno, const string& buf) * libudev does not provide the "wait until the queue is empty" * API or the sufficient amount of primitives to build it from. */ - string err = run_cmd("udevadm", "settle", "--timeout", "10", NULL); + string err = run_cmd("udevadm", "settle", "--timeout", "10", (char*)NULL); if (!err.empty()) cerr << "rbd: " << err << std::endl; }