]> git.stg.codes - stg.git/commitdiff
Fixed compilation issue.
authorMaxim Mamontov <faust.madf@gmail.com>
Sun, 8 Jun 2014 21:06:15 +0000 (00:06 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Sun, 8 Jun 2014 21:06:15 +0000 (00:06 +0300)
projects/stargazer/build
projects/stargazer/plugins/store/postgresql/postgresql_store_tariffs.cpp

index 754f83f77ffebd9f0e2a1a7b424aaa481f0a64aa..12ec9d23b896065584c3503ecdab2a04133af8af 100755 (executable)
@@ -354,7 +354,7 @@ else
 fi
 rm -f fake
 
 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
 $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
 
 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
 $CC $CFLAGS $LDFLAGS build_check.c -lnetfilter_queue -o fake > /dev/null 2> /dev/null
 if [ $? != 0 ]
 then
index ab78f00fee74a2e1d6e2d8c681a24a38e5bf4272..d4fdd3902cf96393ac951a6a6b83c771eeab7db3 100644 (file)
@@ -288,13 +288,14 @@ if (tuples != 1)
     return -1;
     }
 
     return -1;
     }
 
+int32_t id;
+
     {
     std::stringstream tuple;
     tuple << PQgetvalue(result, 0, 0);
 
     PQclear(result);
 
     {
     std::stringstream tuple;
     tuple << PQgetvalue(result, 0, 0);
 
     PQclear(result);
 
-    int32_t id;
     tuple >> id;
     }
 
     tuple >> id;
     }