--- libaitcrc/example/test.c 2010/01/20 00:04:44 1.2 +++ libaitcrc/example/test.c 2012/08/29 09:00:44 1.3 @@ -5,13 +5,10 @@ int main() { - register int cx = 0; - int opt; - char buf[200]; u_char pd[7] = { 0xFF, 0x01, 0x00, 0x04, 0x3F, 0x00, 0x01 }; u_char pp[8] = { 0xA0, 0x00, 0x00, 0x04, 0x20, 0x00, 0xAF, 0x01 }; - printf("reflect=%lu\n", crcReflect(3001123, 32)); + printf("reflect=%u\n", crcReflect(3001123, 32)); printf("pelco_d=0x%x pelco_p=0x%x\n", crcPelco('d', pd), crcPelco('p', pp));