diff options
author | imarom <imarom@cisco.com> | 2015-11-08 15:08:07 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2015-11-08 15:08:07 +0200 |
commit | 38dc2db83370ee9d2483a09f4451a5c0f1167cee (patch) | |
tree | 3f8b2d4f5efa627a2e8a7da4ca2623e1a91c2d80 /src/utl_json.cpp | |
parent | bc7d9ee81604fd33607569ac4f03ca8b91777b29 (diff) |
fixed all warnings
now compiles with -Wall -Werror
Diffstat (limited to 'src/utl_json.cpp')
-rwxr-xr-x | src/utl_json.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utl_json.cpp b/src/utl_json.cpp index 990346f5..fb55be0a 100755 --- a/src/utl_json.cpp +++ b/src/utl_json.cpp @@ -25,7 +25,7 @@ limitations under the License. std::string add_json(std::string name, uint32_t counter,bool last){ char buff[200]; - sprintf(buff,"\"%s\":%lu",name.c_str(),counter); + sprintf(buff,"\"%s\":%lu",name.c_str(), (ulong)counter); std::string s= std::string(buff); if (!last) { s+=","; @@ -35,7 +35,7 @@ std::string add_json(std::string name, uint32_t counter,bool last){ std::string add_json(std::string name, uint64_t counter,bool last){ char buff[200]; - sprintf(buff,"\"%s\":%llu",name.c_str(),counter); + sprintf(buff,"\"%s\":%llu",name.c_str(), (unsigned long long)counter); std::string s= std::string(buff); if (!last) { s+=","; |