From: Maxim Mamontov Date: Sun, 8 Jun 2014 21:06:15 +0000 (+0300) Subject: Fixed compilation issue. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/3899282dbba9860e0cc121ea698a82217bed78ca?hp=c1095d51e3e3323455ba758ac7ad0b5988c35244 Fixed compilation issue. --- 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; }