chiark / gitweb /
Fix a couple of minor warnings from GCC.
authorBen Harris <bjh21@bjh21.me.uk>
Wed, 30 Sep 2009 16:44:04 +0000 (17:44 +0100)
committerBen Harris <bjh21@bjh21.me.uk>
Wed, 30 Sep 2009 16:44:04 +0000 (17:44 +0100)
ttxt.c

diff --git a/ttxt.c b/ttxt.c
index e749c3a93d611fac95f1cb29e41ca5655abbe64c..89f33b4124b6d610d391e490c47eac3e756d42cb 100644 (file)
--- a/ttxt.c
+++ b/ttxt.c
@@ -143,6 +143,7 @@ main(int argc, char **argv)
                printf("grestore\n");
        }
        printf("showpage\n");
+       return 0;
 }
 
 typedef struct vec {
@@ -325,9 +326,8 @@ emit_path()
                p = &points[i];
                if (p->next) {
                        while (p->next) {
-                               printf("  %d %d %s %% %d\n", p->v.x, p->v.y,
-                                   p == &points[i] ? "moveto" : "lineto",
-                                       p - points);
+                               printf("  %d %d %s\n", p->v.x, p->v.y,
+                                   p == &points[i] ? "moveto" : "lineto");
                                p1 = p->next;
                                p->prev = p->next = NULL;
                                p = p1;