summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2008-09-29 01:07:17 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2008-09-29 01:07:17 +0200
commit356c625a9914e445b2c424efac215a4c24b7408e (patch)
tree8622682e448d446ab664a662b7647678eb73401c /apps
parent35e23a1ad066b438e110e0b0fa2c1ea067fb28a9 (diff)
downloadmupdf-356c625a9914e445b2c424efac215a4c24b7408e.tar.xz
Use sane variable names.
Diffstat (limited to 'apps')
-rw-r--r--apps/pdftool.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/pdftool.c b/apps/pdftool.c
index b661997b..8cf2b8e3 100644
--- a/apps/pdftool.c
+++ b/apps/pdftool.c
@@ -584,8 +584,8 @@ drawpnm(int pagenum, struct benchmark *loadtimes, struct benchmark *drawtimes)
fz_matrix ctm;
fz_irect bbox;
fz_pixmap *pix;
- char namebuf[256];
- char buf[256];
+ char name[256];
+ char pnmhdr[256];
int x, y, w, h, b, bh;
int fd = -1;
long start;
@@ -609,13 +609,13 @@ drawpnm(int pagenum, struct benchmark *loadtimes, struct benchmark *drawtimes)
if (drawpattern)
{
- sprintf(namebuf, drawpattern, drawcount++);
- fd = open(namebuf, O_BINARY|O_WRONLY|O_CREAT|O_TRUNC, 0666);
+ sprintf(name, drawpattern, drawcount++);
+ fd = open(name, O_BINARY|O_WRONLY|O_CREAT|O_TRUNC, 0666);
if (fd < 0)
- die(fz_throw("ioerror: could not open file '%s'", namebuf));
+ die(fz_throw("ioerror: could not open file '%s'", name));
- sprintf(buf, "P6\n%d %d\n255\n", w, h);
- write(fd, buf, strlen(buf));
+ sprintf(pnmhdr, "P6\n%d %d\n255\n", w, h);
+ write(fd, pnmhdr, strlen(pnmhdr));
}
error = fz_newpixmap(&pix, bbox.x0, bbox.y0, w, bh, 4);