--- embedtools/src/ub_env.c 2014/01/30 01:03:24 1.1.2.17 +++ embedtools/src/ub_env.c 2014/01/30 07:36:53 1.1.2.18 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: ub_env.c,v 1.1.2.17 2014/01/30 01:03:24 misho Exp $ + * $Id: ub_env.c,v 1.1.2.18 2014/01/30 07:36:53 misho Exp $ * ************************************************************************* The ELWIX and AITNET software is distributed under the following @@ -93,7 +93,7 @@ ub_flash_io(const char *csSec, int mode) } if (mode & O_RDWR) { - env->env_crc = crc32(0, (u_char*) env->env_data, esiz); + env->env_crc = crc_32(0, (u_char*) env->env_data, esiz); VERB(5) printf("Write CRC32 0x%x\n", env->env_crc); rlen = write(f, env, siz); if (rlen != siz) @@ -109,7 +109,7 @@ ub_flash_io(const char *csSec, int mode) else VERB(3) printf("Readed %d bytes\n", rlen); - crc = crc32(0, (u_char*) env->env_data, esiz); + crc = crc_32(0, (u_char*) env->env_data, esiz); VERB(5) printf("Calculated CRC32 0x%x\n", crc); if (crc != env->env_crc) VERB(1) printf("Warning:: Bad CRC, Flash crc32 0x%x != 0x%x\n",