From: Maxim Mamontov Date: Sun, 8 Jun 2014 21:06:15 +0000 (+0300) Subject: Fixed compilation issue. X-Git-Tag: 2.409~308 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/8d594babacdc431036d186d68ed471275904d0f0 Fixed compilation issue. Conflicts: projects/stargazer/build --- 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; }