summaryrefslogtreecommitdiffstats
path: root/src/utl_json.cpp
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-11-08 15:08:07 +0200
committerimarom <imarom@cisco.com>2015-11-08 15:08:07 +0200
commit38dc2db83370ee9d2483a09f4451a5c0f1167cee (patch)
tree3f8b2d4f5efa627a2e8a7da4ca2623e1a91c2d80 /src/utl_json.cpp
parentbc7d9ee81604fd33607569ac4f03ca8b91777b29 (diff)
fixed all warnings
now compiles with -Wall -Werror
Diffstat (limited to 'src/utl_json.cpp')
-rwxr-xr-xsrc/utl_json.cpp4
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+=",";