summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-11-08 09:29:58 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-11-08 09:29:58 -0800
commitb35fd1fb11d26dbe2be060a77a8a275b98d28251 (patch)
treeaf5122f7919a406bbf2b7e7177cfa99e8071c87b
parent67506ce7948065ae81f370bb821645de4c7daf9b (diff)
Use SEEK_* names instead of raw numbers for fseek whence argument
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--DviP.h2
-rw-r--r--page.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/DviP.h b/DviP.h
index 4d1d7c8..f1aae33 100644
--- a/DviP.h
+++ b/DviP.h
@@ -209,7 +209,7 @@ extern int DviGetAndPut(DviWidget, int *);
#define DviGetC(dw, cp)\
(dw->dvi.readingTmp ? (\
((*cp = getc (dw->dvi.tmpFile)) == EOF) ? (\
- fseek (dw->dvi.tmpFile, 0l, 2),\
+ fseek (dw->dvi.tmpFile, 0l, SEEK_END),\
(dw->dvi.readingTmp = 0),\
DviGetIn (dw,cp)\
) : (\
diff --git a/page.c b/page.c
index 61f6ec4..4f5489d 100644
--- a/page.c
+++ b/page.c
@@ -72,8 +72,8 @@ FileSeek(DviWidget dw, long position)
{
if (dw->dvi.tmpFile) {
dw->dvi.readingTmp = 1;
- fseek (dw->dvi.tmpFile, position, 0);
+ fseek (dw->dvi.tmpFile, position, SEEK_SET);
} else
- fseek (dw->dvi.file, position, 0);
+ fseek (dw->dvi.file, position, SEEK_SET);
}