]> pd.if.org Git - hexagon/commitdiff
style fix
authorNathan Wagner <nw@hydaspes.if.org>
Fri, 18 Dec 2015 07:48:26 +0000 (01:48 -0600)
committerNathan Wagner <nw@hydaspes.if.org>
Fri, 18 Dec 2015 07:48:26 +0000 (01:48 -0600)
astar.c

diff --git a/astar.c b/astar.c
index 5bfc60fc2077ae94b16d8ba24e68d7829efc899c..6e897589bf3561f5edceb37d6e243211c3490448 100644 (file)
--- a/astar.c
+++ b/astar.c
@@ -136,7 +136,7 @@ struct HL_astar_hex *in_closed(struct HL_astar *s, int hex) {
        struct HL_astar_hex *h;
        if (!s) return 0;
 
-       for(h = s->closed; h; h = h->next) {
+       for (h = s->closed; h; h = h->next) {
                if (h->hex == hex) return h;
        }
        return NULL;
@@ -146,7 +146,7 @@ struct HL_astar_hex *in_open(struct HL_astar *s, int hex) {
        struct HL_astar_hex *h;
        if (!s) return 0;
 
-       for(h = s->open; h; h = h->next) {
+       for (h = s->open; h; h = h->next) {
                if (h->hex == hex) return h;
        }
        return NULL;