X-Git-Url: https://pd.if.org/git/?p=hexagon;a=blobdiff_plain;f=astar.c;h=6e897589bf3561f5edceb37d6e243211c3490448;hp=5bfc60fc2077ae94b16d8ba24e68d7829efc899c;hb=76ad26d2a8a12b8d090411b98f176f498a4fca39;hpb=4bc7629f4228ee00db424b9fb535cdcce15122d7 diff --git a/astar.c b/astar.c index 5bfc60f..6e89758 100644 --- 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;