chiark
/
gitweb
/
~bjharris
/
bedstead.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3c7769
)
Fix a couple of minor warnings from GCC.
author
Ben Harris
<bjh21@bjh21.me.uk>
Wed, 30 Sep 2009 16:44:04 +0000
(17:44 +0100)
committer
Ben Harris
<bjh21@bjh21.me.uk>
Wed, 30 Sep 2009 16:44:04 +0000
(17:44 +0100)
ttxt.c
patch
|
blob
|
history
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;