diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-11-08 09:29:58 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2014-11-08 09:29:58 -0800 |
commit | b35fd1fb11d26dbe2be060a77a8a275b98d28251 (patch) | |
tree | af5122f7919a406bbf2b7e7177cfa99e8071c87b | |
parent | 67506ce7948065ae81f370bb821645de4c7daf9b (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.h | 2 | ||||
-rw-r--r-- | page.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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)\ ) : (\ @@ -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); } |