]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
testrados: C, not C++
authorSage Weil <sage@newdream.net>
Tue, 12 May 2009 15:07:00 +0000 (08:07 -0700)
committerSage Weil <sage@newdream.net>
Tue, 12 May 2009 15:07:00 +0000 (08:07 -0700)
src/Makefile.am
src/include/librados.h

index 5fd699bcd64ad4e3f1191bda7c358bcd57ec6ef7..0c3697b0844da019207194f7808b71f505b4dc12 100644 (file)
@@ -109,7 +109,7 @@ librados_la_CFLAGS = ${AM_CFLAGS}
 librados_la_CXXFLAGS = ${AM_CXXFLAGS}
 lib_LTLIBRARIES += librados.la
 
-testrados_SOURCES = testrados.cc
+testrados_SOURCES = testrados.c
 testrados_LDADD = librados.la libcrush.la
 
 
index e00dc6b6278e542a26309f825117fc7b4ad17358..538156a17301c3cd614f9c5002e5a993049d3420 100644 (file)
@@ -8,6 +8,7 @@ extern "C" {
 #include <netinet/in.h>
 #include <linux/types.h>
 #include <string.h>
+#include <stdbool.h>
 
 #include "include/msgr.h"
 #include "include/rados.h"
@@ -17,8 +18,8 @@ int rados_initialize(int argc, const char **argv); /* arguments are optional */
 void rados_deinitialize();
 
 /* read/write objects */
-int rados_write(ceph_object *oid, const char *buf, off_t off, size_t len);
-int rados_read(ceph_object *oid, char *buf, off_t off, size_t len);
+int rados_write(struct ceph_object *oid, const char *buf, off_t off, size_t len);
+int rados_read(struct ceph_object *oid, char *buf, off_t off, size_t len);
 
 #ifdef __cplusplus
 }