aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/page/gfx.c
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2020-01-10 14:44:21 +0000
committerDan Cross <cross@gajendra.net>2020-01-10 14:54:30 +0000
commitfa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch)
tree81d26256d152435135bcb1ae43121979a49f5f2b /src/cmd/page/gfx.c
parent77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff)
downloadplan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.gz
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.bz2
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.zip
Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
Diffstat (limited to 'src/cmd/page/gfx.c')
-rw-r--r--src/cmd/page/gfx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/page/gfx.c b/src/cmd/page/gfx.c
index 22e08665..793d75a4 100644
--- a/src/cmd/page/gfx.c
+++ b/src/cmd/page/gfx.c
@@ -77,7 +77,7 @@ initgfx(Biobuf *b, int argc, char **argv, uchar *buf, int nbuf)
doc = emalloc(sizeof(*doc));
gfx = emalloc(sizeof(*gfx));
gfx->g = nil;
-
+
doc->npage = 0;
doc->drawpage = gfxdrawpage;
doc->pagename = gfxpagename;
@@ -141,7 +141,7 @@ genaddpage(Document *doc, char *name, uchar *buf, int nbuf)
memset(g, 0, sizeof *g);
if(memcmp(buf, "GIF", 3) == 0)
g->type = Igif;
- else if(memcmp(buf, "\111\111\052\000", 4) == 0)
+ else if(memcmp(buf, "\111\111\052\000", 4) == 0)
g->type = Itiff;
else if(memcmp(buf, "\115\115\000\052", 4) == 0)
g->type = Itiff;
@@ -186,7 +186,7 @@ genaddpage(Document *doc, char *name, uchar *buf, int nbuf)
return doc->npage++;
}
-static int
+static int
addpage(Document *doc, char *name)
{
return genaddpage(doc, name, nil, 0);
@@ -257,7 +257,7 @@ convert(Graphic *g)
if(fd < 0) {
fprint(2, "cannot spawn converter: %r\n");
wexits("convert");
- }
+ }
}
im = readimage(display, fd, 0);