]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd: use MIN instead of min()
authorSage Weil <sage@newdream.net>
Wed, 1 Dec 2010 17:51:27 +0000 (09:51 -0800)
committerSage Weil <sage@newdream.net>
Wed, 1 Dec 2010 18:20:24 +0000 (10:20 -0800)
commitcbb562089c788e5eeb8cbee7a2be5de0b40d84b4
tree4da6d478524a0e7621f0b5ff726bf9a5c16084c6
parent792b04ba1ec57f0dc949c573b7161fb2910265a8
rbd: use MIN instead of min()

Not even sure where min() was coming from, but it seems to be missing on
i386 lucid.:

g++ -DHAVE_CONFIG_H -I.     -Wall -D__CEPH__ -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_THREAD_SAFE -rdynamic -g -O2 -MT rbd.o -MD -MP -MF .deps/rbd.Tpo -c -o rbd.o rbd.cc
rbd.cc: In function 'int do_import(void*, const char*, int, const char*)':
rbd.cc:837: error: no matching function for call to 'min(uint64_t&, off_t)'
make[3]: *** [rbd.o] Error 1

Reported-by: John Leach <john@johnleach.co.uk>
Signed-off-by: Sage Weil <sage@newdream.net>
src/rbd.cc