]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: run_cmd: fix bad implicit conversion
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 25 Mar 2011 21:01:29 +0000 (14:01 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 25 Mar 2011 21:04:50 +0000 (14:04 -0700)
commit0f241fcda6a9ffd10364b1e92bdbf47ee914f90b
tree19a6fee81ee97e4dedba68b37414cd37cafedf40
parent45cc761c34d4d58e0b9a500537f16cfb141d9b10
common: run_cmd: fix bad implicit conversion

Since NULL is really just a macro defined to be 0, we must use
(char*)NULL or similar to force the compiler to use a true pointer value
as the last argument to the run_cmd varargs function. Otherwise, the 0
gets promoted to an int, which probably is not the same length as a
pointer these days (32 vs. 64.)

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/mon/MonitorStore.cc
src/os/FileStore.cc
src/test/run_cmd.cc