Repository: thrift Updated Branches: refs/heads/master 5af3b8abf -> 79e971e7d
c_glib: fix some warnings Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/79e971e7 Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/79e971e7 Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/79e971e7 Branch: refs/heads/master Commit: 79e971e7de6bfe586872323e548e8c23f79c5f08 Parents: 5af3b8a Author: Roger Meier <[email protected]> Authored: Sun Apr 12 13:11:33 2015 +0200 Committer: Roger Meier <[email protected]> Committed: Sun Apr 12 13:11:33 2015 +0200 ---------------------------------------------------------------------- lib/c_glib/test/testthrifttestclient.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/79e971e7/lib/c_glib/test/testthrifttestclient.cpp ---------------------------------------------------------------------- diff --git a/lib/c_glib/test/testthrifttestclient.cpp b/lib/c_glib/test/testthrifttestclient.cpp index 4241f1c..0a711d6 100755 --- a/lib/c_glib/test/testthrifttestclient.cpp +++ b/lib/c_glib/test/testthrifttestclient.cpp @@ -77,7 +77,7 @@ class TestHandler : public ThriftTestIf { } int64_t testI64(const int64_t thing) { - printf("[C -> C++] testI64(%lld)\n", thing); + printf("[C -> C++] testI64(%ld)\n", thing); return thing; } @@ -92,13 +92,13 @@ class TestHandler : public ThriftTestIf { } void testStruct(Xtruct& out, const Xtruct &thing) { - printf("[C -> C++] testStruct({\"%s\", %d, %d, %lld})\n", thing.string_thing.c_str(), (int)thing.byte_thing, thing.i32_thing, thing.i64_thing); + printf("[C -> C++] testStruct({\"%s\", %d, %d, %ld})\n", thing.string_thing.c_str(), (int)thing.byte_thing, thing.i32_thing, thing.i64_thing); out = thing; } void testNest(Xtruct2& out, const Xtruct2& nest) { const Xtruct &thing = nest.struct_thing; - printf("[C -> C++] testNest({%d, {\"%s\", %d, %d, %lld}, %d})\n", (int)nest.byte_thing, thing.string_thing.c_str(), (int)thing.byte_thing, thing.i32_thing, thing.i64_thing, nest.i32_thing); + printf("[C -> C++] testNest({%d, {\"%s\", %d, %d, %ld}, %d})\n", (int)nest.byte_thing, thing.string_thing.c_str(), (int)thing.byte_thing, thing.i32_thing, thing.i64_thing, nest.i32_thing); out = nest; } @@ -172,7 +172,7 @@ class TestHandler : public ThriftTestIf { } UserId testTypedef(const UserId thing) { - printf("[C -> C++] testTypedef(%lld)\n", thing); + printf("[C -> C++] testTypedef(%ld)\n", thing); return thing; } void testMapMap(map<int32_t, map<int32_t,int32_t> > &mapmap, const int32_t hello) { @@ -228,7 +228,7 @@ class TestHandler : public ThriftTestIf { printf(" = {"); map<UserId, map<Numberz::type,Insanity> >::const_iterator i_iter; for (i_iter = insane.begin(); i_iter != insane.end(); ++i_iter) { - printf("%lld => {", i_iter->first); + printf("%ld => {", i_iter->first); map<Numberz::type,Insanity>::const_iterator i2_iter; for (i2_iter = i_iter->second.begin(); i2_iter != i_iter->second.end(); @@ -238,7 +238,7 @@ class TestHandler : public ThriftTestIf { map<Numberz::type, UserId>::const_iterator um; printf("{"); for (um = userMap.begin(); um != userMap.end(); ++um) { - printf("%d => %lld, ", um->first, um->second); + printf("%d => %ld, ", um->first, um->second); } printf("}, "); @@ -246,7 +246,7 @@ class TestHandler : public ThriftTestIf { vector<Xtruct>::const_iterator x; printf("{"); for (x = xtructs.begin(); x != xtructs.end(); ++x) { - printf("{\"%s\", %d, %d, %lld}, ", x->string_thing.c_str(), (int)x->byte_thing, x->i32_thing, x->i64_thing); + printf("{\"%s\", %d, %d, %ld}, ", x->string_thing.c_str(), (int)x->byte_thing, x->i32_thing, x->i64_thing); } printf("}");
