warnings --

This commit is contained in:
taipanromania 2008-10-03 08:22:08 +00:00
parent 749d37721d
commit a4dd78018d
3 changed files with 30 additions and 25 deletions

View file

@ -93,7 +93,7 @@ int plessey(struct zint_symbol *symbol, unsigned char source[])
concat(dest, "331311313");
expand(symbol, dest);
strcpy(symbol->text, source);
strcpy(symbol->text, (char*)source);
return error_number;
}
@ -129,7 +129,7 @@ int msi_plessey(struct zint_symbol *symbol, unsigned char source[])
concat (dest, "121");
expand(symbol, dest);
strcpy(symbol->text, source);
strcpy(symbol->text, (char*)source);
return error_number;
}
@ -227,7 +227,7 @@ int msi_plessey_mod10(struct zint_symbol *symbol, unsigned char source[])
source[h] = itoc(pump);
source[h + 1] = '\0';
expand(symbol, dest);
strcpy(symbol->text, source);
strcpy(symbol->text, (char*)source);
return error_number;
}
@ -382,7 +382,7 @@ int msi_plessey_mod1010(struct zint_symbol *symbol, unsigned char source[])
source[h + 1] = itoc(chwech);
source[h + 2] = '\0';
expand(symbol, dest);
strcpy(symbol->text, source);
strcpy(symbol->text, (char*)source);
return error_number;
}
@ -452,7 +452,7 @@ int msi_plessey_mod11(struct zint_symbol *symbol, unsigned char source[])
concat (dest, "121");
expand(symbol, dest);
strcpy(symbol->text, source);
strcpy(symbol->text, (char*)source);
return error_number;
}
@ -578,13 +578,15 @@ int msi_plessey_mod1110(struct zint_symbol *symbol, unsigned char source[])
source[h + 1] = '\0';
expand(symbol, dest);
strcpy(symbol->text, source);
strcpy(symbol->text, (char*)source);
return error_number;
}
int msi_handle(struct zint_symbol *symbol, unsigned char source[]) {
int error_number;
error_number=0;
if((symbol->option_2 < 0) || (symbol->option_2 > 4)) {
symbol->option_2 = 0;
}