From 67552adee22378999393a65346ae5e7c88df3ee9 Mon Sep 17 00:00:00 2001 From: hooper114 Date: Tue, 28 Jul 2009 21:05:19 +0000 Subject: [PATCH] Remove errno value --- backend/imail.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/imail.c b/backend/imail.c index ec4cbf14..64bb0926 100644 --- a/backend/imail.c +++ b/backend/imail.c @@ -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; }