Portability problems in ZMODEM (zm.c)
caf at omen.UUCP
caf at omen.UUCP
Sun Jan 25 06:36:09 AEST 1987
The recent ZMODEM sources posted to the net reveal that compilers
have varying ideas about whether a hex constant is unsigned or
not. The presence of a hex constant in calls to the UPDC32 macro
resulted in a a 32 bit Tower of Babel syndrome, even among different
versions of the Microsoft C compiler. The two lines in zm.c that
contain the hex all one's preset should be changed as shown below.
crc = 0xFFFFFFFF; crc = UPDC32(type, crc);
crc = 0xFFFFFFFF; crc = UPDC32(c, crc);
Chuck Forsberg WA7KGX Author of Pro-YAM communications Tools for PCDOS and Unix
...!tektronix!reed!omen!caf Omen Technology Inc "The High Reliability Software"
Voice: 503-621-3406 17505-V Northwest Sauvie Island Road Portland OR 97231
TeleGodzilla BBS: 621-3746 2400/1200 CIS:70007,2304 Genie:CAF Source:TCE022
omen Any ACU 1200 1-503-621-3746 se:--se: link ord: Giznoid in:--in: uucp
omen!/usr/spool/uucppublic/FILES lists all uucp-able files, updated hourly
More information about the Comp.sources.unix
mailing list