summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipng
diff options
context:
space:
mode:
authorVladimir Volovich <vvv@vsu.ru>2008-05-15 08:18:08 +0000
committerVladimir Volovich <vvv@vsu.ru>2008-05-15 08:18:08 +0000
commit5351eeea29b0ae4d11dc0fd4a09a7f6040a07f91 (patch)
treed5e848de910e3546306baf97af6b1ec16dc4ffce /Build/source/texk/dvipng
parentaa3085b653dfe3a00109d66b15adf4709a2e10fc (diff)
misc.c: fix the field name: mmap => data
(oversight from old code?) special.c: portability fix - put variable declarations at the beginning of the block. git-svn-id: svn://tug.org/texlive/trunk@8148 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipng')
-rw-r--r--Build/source/texk/dvipng/misc.c2
-rw-r--r--Build/source/texk/dvipng/special.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/dvipng/misc.c b/Build/source/texk/dvipng/misc.c
index 345ef4f4d93..9debdeb1537 100644
--- a/Build/source/texk/dvipng/misc.c
+++ b/Build/source/texk/dvipng/misc.c
@@ -780,7 +780,7 @@ bool MmapFile (char *filename,struct filemmap *fmmap)
close(fmmap->fd);
return(true);
}
- if (read(fmmap->fd,fmmap->mmap,fmmap->size)<fmmap->size) {
+ if (read(fmmap->fd,fmmap->data,fmmap->size)<fmmap->size) {
Warning("too little data in <%s>",filename);
free(fmmap->data);
fmmap->data=NULL;
diff --git a/Build/source/texk/dvipng/special.c b/Build/source/texk/dvipng/special.c
index 9fc47a373b3..2aee471169d 100644
--- a/Build/source/texk/dvipng/special.c
+++ b/Build/source/texk/dvipng/special.c
@@ -621,9 +621,9 @@ void SetSpecial(char * special, int32_t hh, int32_t vv)
if (dvi->flags & DVI_PREVIEW_BOP_HOOK && ~page_flags & PAGE_PREVIEW_BOP
&& strncmp(special,"ps::",4)==0) {
+ dviunits adj_llx,adj_lly,adj_urx,adj_ury,ht,dp,wd;
page_flags |= PAGE_PREVIEW_BOP;
/* Hokay, decode bounding box */
- dviunits adj_llx,adj_lly,adj_urx,adj_ury,ht,dp,wd;
adj_llx = strtol(special+4,&special,10);
adj_lly = strtol(special,&special,10);
adj_urx = strtol(special,&special,10);