diff options
author | Karl Berry <karl@freefriends.org> | 2010-02-01 01:26:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-02-01 01:26:01 +0000 |
commit | 5c05d687532025446333316d8631d87eee32f799 (patch) | |
tree | 5077661087e0133a065b04ce0d11113c5e0df9cc /Build/source/texk/dvipsk | |
parent | 24a1e484a0f4fb99f26a202ec0d1afdcff826654 (diff) |
cast to byte* to avoid warning
git-svn-id: svn://tug.org/texlive/trunk@16887 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipsk')
-rw-r--r-- | Build/source/texk/dvipsk/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/dvipsk/writet1.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog index 250984f8555..3ac311f6ae3 100644 --- a/Build/source/texk/dvipsk/ChangeLog +++ b/Build/source/texk/dvipsk/ChangeLog @@ -1,3 +1,7 @@ +2010-02-01 Karl Berry <karl@tug.org> + + * writet1.c (append_cs_return): cast to byte * to avoid warning. + 2010-01-03 Karl Berry <karl@tug.org> * output.c (copyfile_general) <default>: write newline diff --git a/Build/source/texk/dvipsk/writet1.c b/Build/source/texk/dvipsk/writet1.c index d092eacdecf..ef05d94e702 100644 --- a/Build/source/texk/dvipsk/writet1.c +++ b/Build/source/texk/dvipsk/writet1.c @@ -1,6 +1,6 @@ /* $Id$ -Copyright 1996-2005, 2009 Han The Thanh, <thanh@pdftex.org> +Copyright 1996-2005, 2009, 2010 Han The Thanh, <thanh@pdftex.org> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -971,7 +971,7 @@ static void append_cs_return(cs_entry *ptr) assert(ptr != NULL && ptr->valid && ptr->used); /* decrypt the cs data to t1_buf_array, append CS_RETURN */ - p = t1_buf_array; + p = (byte *) t1_buf_array; data = ptr->data + 4; cr = 4330; for (i = 0; i < ptr->cslen; i++) @@ -982,7 +982,7 @@ static void append_cs_return(cs_entry *ptr) new_data = xtalloc(ptr->len + 1, byte); memcpy(new_data, ptr->data, 4); p = new_data + 4; - q = t1_buf_array; + q = (byte *) t1_buf_array; cr = 4330; for (i = 0; i < ptr->cslen + 1; i++) *p++ = cencrypt(*q++, &cr); |