mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-28 14:04:19 -04:00
Remove errno value
This commit is contained in:
parent
ab82dc6cfa
commit
67552adee2
1 changed files with 6 additions and 6 deletions
|
@ -308,18 +308,18 @@ void breakup(short int fcs_bit[], unsigned short usps_crc)
|
|||
int imail(struct zint_symbol *symbol, unsigned char source[])
|
||||
{
|
||||
char data_pattern[200];
|
||||
int errno;
|
||||
int error_number;
|
||||
|
||||
errno = 0;
|
||||
error_number = 0;
|
||||
|
||||
if(ustrlen(source) > 32) {
|
||||
strcpy(symbol->errtxt, "Input too long");
|
||||
return ERROR_TOO_LONG;
|
||||
}
|
||||
errno = is_sane(NASET, source);
|
||||
if(errno == ERROR_INVALID_DATA) {
|
||||
error_number = is_sane(NASET, source);
|
||||
if(error_number == ERROR_INVALID_DATA) {
|
||||
strcpy(symbol->errtxt, "Invalid characters in data");
|
||||
return errno;
|
||||
return error_number;
|
||||
}
|
||||
|
||||
int i, j, read;
|
||||
|
@ -688,5 +688,5 @@ int imail(struct zint_symbol *symbol, unsigned char source[])
|
|||
|
||||
symbol->rows = 3;
|
||||
symbol->width = read - 1;
|
||||
return errno;
|
||||
return error_number;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue