This is an automated email from the git hooks/post-receive script.

rubund-guest pushed a commit to branch upstream
in repository sosi2osm.

commit ab78a82ec803b502b88c1d28885f6a8585bd41fa
Author: Knut Karevoll <gnonth...@gmail.com>
Date:   Tue Sep 30 13:50:07 2014 +0200

    Use bool instead of char* to get rid of compiler warning
---
 sosi2osm.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sosi2osm.cpp b/sosi2osm.cpp
index 25a2049..10ae604 100644
--- a/sosi2osm.cpp
+++ b/sosi2osm.cpp
@@ -41,16 +41,16 @@ void outputRelation() {
     printf("<relation id=\"%ld\" version=\"1\" visible=\"true\">", 
-getSOSIId());
     outputTags();
     
-    char* role = "outer";
+    bool outer = true;
     long refsLen = getSOSIRefsSize();
     long* refs = getSOSIRefs();
     for (int i = 0; i < refsLen; i++) {
         if (refs[i] == START_OY)
-            role = "inner";
+            outer = false;
         else if (refs[i] == SLUTT_OY)
-            role = "outer";
+            outer = true;
         else
-            printf("<member ref=\"%d\" role=\"%s\" type=\"way\"/>", 
-abs(refs[i]), role);
+            printf("<member ref=\"%d\" role=\"%s\" type=\"way\"/>", 
-abs(refs[i]), outer?"outer":"inner");
     }
     
     free(refs);

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-grass/sosi2osm.git

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to