]> err.no Git - mapper/commitdiff
Formating only
authorKaj-Michael Lang <milang@angel.tal.org>
Thu, 25 Oct 2007 10:26:45 +0000 (13:26 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Thu, 25 Oct 2007 10:26:45 +0000 (13:26 +0300)
src/path.c
src/path.h

index 9dcbd211db16dc230d16a4652221d3f94a686977..516a095fde86a6cbb6fd7df19b5d2ad95b638145 100644 (file)
@@ -6,9 +6,10 @@
 #include "mapper-types.h"
 
 #include "track.h"
+#include "path.h"
 
 void 
-path_resize(Path * path, guint size)
+path_resize(Path *path, guint size)
 {
 if (path->head + size != path->cap) {
        Point *old_head = path->head;
@@ -20,14 +21,13 @@ if (path->head + size != path->cap) {
 
                /* Adjust all of the waypoints. */
                for (curr = path->whead - 1; curr++ != path->wtail;)
-                       curr->point =
-                           path->head + (curr->point - old_head);
+                       curr->point = path->head + (curr->point - old_head);
        }
 }
 }
 
 void 
-path_wresize(Path * path, guint wsize)
+path_wresize(Path *path, guint wsize)
 {
 if (path->whead + wsize != path->wcap) {
        WayPoint *old_whead = path->whead;
index 4a41b5d7b831a3cf0f418ab90dadc533d0373ca8..7d0f0d728e308d090fa2dfeca6ea20a1758c9e26 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef _PATH_H
 #define _PATH_H
 
-void path_resize(Path * path, guint size);
-void path_wresize(Path * path, guint wsize);
+void path_resize(Path *path, guint size);
+void path_wresize(Path *path, guint wsize);
 
 #endif