From 3899282dbba9860e0cc121ea698a82217bed78ca Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Mon, 9 Jun 2014 00:06:15 +0300 Subject: [PATCH] Fixed compilation issue. --- 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 754f83f7..12ec9d23 100755 --- a/projects/stargazer/build +++ b/projects/stargazer/build @@ -354,7 +354,7 @@ else fi rm -f fake -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 @@ -366,7 +366,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