From 8d594babacdc431036d186d68ed471275904d0f0 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Mon, 9 Jun 2014 00:06:15 +0300 Subject: [PATCH] Fixed compilation issue. Conflicts: projects/stargazer/build --- projects/stargazer/build | 4 ++-- .../plugins/store/postgresql/postgresql_store_tariffs.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/projects/stargazer/build b/projects/stargazer/build index 686d781f..6d2aea89 100755 --- a/projects/stargazer/build +++ b/projects/stargazer/build @@ -342,7 +342,7 @@ else fi fi -printf "Checking for -lnfnetlink " +printf "Checking for -lnfnetlink... " $CC $CFLAGS $LDFLAGS build_check.c -lnfnetlink -o fake > /dev/null 2> /dev/null if [ $? != 0 ] then @@ -354,7 +354,7 @@ else fi rm -f fake -printf "Checking for -lnetfilter_queue " +printf "Checking for -lnetfilter_queue... " $CC $CFLAGS $LDFLAGS build_check.c -lnetfilter_queue -o fake > /dev/null 2> /dev/null if [ $? != 0 ] then diff --git a/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp b/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp index ab78f00f..d4fdd390 100644 --- a/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp +++ b/projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp @@ -288,13 +288,14 @@ if (tuples != 1) return -1; } +int32_t id; + { std::stringstream tuple; tuple << PQgetvalue(result, 0, 0); PQclear(result); - int32_t id; tuple >> id; } -- 2.44.2