barcode/barcode-0.98-gcc4.patch

134 lines
4.9 KiB
Diff

diff -pur barcode-0.98/codabar.c barcode-0.98-fix/codabar.c
--- barcode-0.98/codabar.c 2000-11-08 17:13:27.000000000 +0000
+++ barcode-0.98-fix/codabar.c 2005-10-11 07:39:55.000000000 +0000
@@ -87,9 +87,9 @@ static int add_one(char *ptr, int code)
*/
int Barcode_cbr_encode(struct Barcode_Item *bc)
{
- static char *text;
- static char *partial; /* dynamic */
- static char *textinfo; /* dynamic */
+ static unsigned char *text;
+ static unsigned char *partial; /* dynamic */
+ static unsigned char *textinfo; /* dynamic */
char *c, *ptr, *textptr;
int i, code, textpos, usesum, checksum = 0, startpresent;
diff -pur barcode-0.98/code128.c barcode-0.98-fix/code128.c
--- barcode-0.98/code128.c 2002-02-27 13:58:08.000000000 +0000
+++ barcode-0.98-fix/code128.c 2005-10-11 07:43:16.000000000 +0000
@@ -85,9 +85,9 @@ int Barcode_128b_verify(unsigned char *t
int Barcode_128b_encode(struct Barcode_Item *bc)
{
- static char *text;
- static char *partial; /* dynamic */
- static char *textinfo; /* dynamic */
+ static unsigned char *text;
+ static unsigned char *partial; /* dynamic */
+ static unsigned char *textinfo; /* dynamic */
char *textptr;
int i, code, textpos, checksum = 0;
@@ -174,9 +174,9 @@ int Barcode_128c_verify(unsigned char *t
int Barcode_128c_encode(struct Barcode_Item *bc)
{
- static char *text;
- static char *partial; /* dynamic */
- static char *textinfo; /* dynamic */
+ static unsigned char *text;
+ static unsigned char *partial; /* dynamic */
+ static unsigned char *textinfo; /* dynamic */
char *textptr;
int i, code, textpos, checksum = 0;
@@ -413,9 +413,9 @@ static int *Barcode_128_make_array(struc
*/
int Barcode_128_encode(struct Barcode_Item *bc)
{
- static char *text;
- static char *partial; /* dynamic */
- static char *textinfo; /* dynamic */
+ static unsigned char *text;
+ static unsigned char *partial; /* dynamic */
+ static unsigned char *textinfo; /* dynamic */
char *textptr;
int *codes; /* dynamic */
int i, c, len;
@@ -523,9 +523,9 @@ int Barcode_128raw_verify(unsigned char
int Barcode_128raw_encode(struct Barcode_Item *bc)
{
- static char *text;
- static char *partial; /* dynamic */
- static char *textinfo; /* dynamic */
+ static unsigned char *text;
+ static unsigned char *partial; /* dynamic */
+ static unsigned char *textinfo; /* dynamic */
char *textptr;
int i, n, count, code, textpos, checksum = 0;
diff -pur barcode-0.98/code39.c barcode-0.98-fix/code39.c
--- barcode-0.98/code39.c 2002-02-27 13:59:06.000000000 +0000
+++ barcode-0.98-fix/code39.c 2005-10-11 07:44:02.000000000 +0000
@@ -101,9 +101,9 @@ static int add_one(char *ptr, int code)
*/
int Barcode_39_encode(struct Barcode_Item *bc)
{
- static char *text;
- static char *partial; /* dynamic */
- static char *textinfo; /* dynamic */
+ static unsigned char *text;
+ static unsigned char *partial; /* dynamic */
+ static unsigned char *textinfo; /* dynamic */
char *c, *ptr, *textptr;
int i, code, textpos, checksum = 0;
diff -pur barcode-0.98/code93.c barcode-0.98-fix/code93.c
--- barcode-0.98/code93.c 2001-10-16 16:42:51.000000000 +0000
+++ barcode-0.98-fix/code93.c 2005-10-11 07:47:20.000000000 +0000
@@ -87,8 +87,8 @@ int Barcode_93_verify(unsigned char *tex
int Barcode_93_encode(struct Barcode_Item *bc)
{
static unsigned char *text;
- static char *partial; /* dynamic */
- static char *textinfo; /* dynamic */
+ static unsigned char *partial; /* dynamic */
+ static unsigned char *textinfo; /* dynamic */
char *c, *textptr;
int *checksum_str;
int i, code, textpos, checksum_len=0;
diff -pur barcode-0.98/msi.c barcode-0.98-fix/msi.c
--- barcode-0.98/msi.c 2000-11-07 17:45:35.000000000 +0000
+++ barcode-0.98-fix/msi.c 2005-10-11 07:48:01.000000000 +0000
@@ -67,9 +67,9 @@ static int add_one(char *ptr, int code)
*/
int Barcode_msi_encode(struct Barcode_Item *bc)
{
- static char *text;
- static char *partial; /* dynamic */
- static char *textinfo; /* dynamic */
+ static unsigned char *text;
+ static unsigned char *partial; /* dynamic */
+ static unsigned char *textinfo; /* dynamic */
char *ptr, *textptr;
int i, code, textpos, usesum, checksum = 0;
diff -pur barcode-0.98/plessey.c barcode-0.98-fix/plessey.c
--- barcode-0.98/plessey.c 2000-11-07 17:43:18.000000000 +0000
+++ barcode-0.98-fix/plessey.c 2005-10-11 07:48:52.000000000 +0000
@@ -75,9 +75,9 @@ static int add_one(char *ptr, int code)
*/
int Barcode_pls_encode(struct Barcode_Item *bc)
{
- static char *text;
- static char *partial; /* dynamic */
- static char *textinfo; /* dynamic */
+ static unsigned char *text;
+ static unsigned char *partial; /* dynamic */
+ static unsigned char *textinfo; /* dynamic */
char *c, *ptr, *textptr;
unsigned char *checkptr;
int i, code, textpos;