Changeset 0c452f2


Ignore:
Timestamp:
10/06/14 19:56:14 (10 years ago)
Author:
Hal Finkel <hfinkel@…>
Branches:
master
Children:
ad7f485
Parents:
96316ba
git-author:
Hal Finkel <hfinkel@…> (10/06/14 19:56:14)
git-committer:
Hal Finkel <hfinkel@…> (10/06/14 19:56:14)
Message:

Rename the pointer argument of crc64_invert for clarity

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/CRC64.h

    r96316ba r0c452f2  
    8585 * appended to the original buffer, then the new total CRC64 should be -1. 
    8686 */ 
    87 void crc64_invert(uint64_t cs, void *buffer); 
     87void crc64_invert(uint64_t cs, void *check_bytes); 
    8888 
    8989/* 
  • src/CRC64.c

    r96316ba r0c452f2  
    13201320// Calculate the 'check bytes' for the provided checksum. If these bytes are 
    13211321// appended to the original buffer, then the new total checksum should be -1. 
    1322 void crc64_invert(uint64_t cs, void *buffer) { 
    1323   unsigned char *bytes = (unsigned char *) buffer; 
     1322void crc64_invert(uint64_t cs, void *check_bytes) { 
     1323  unsigned char *bytes = (unsigned char *) check_bytes; 
    13241324  cs ^= UINT64_C(0xffffffffffffffff); 
    13251325 
Note: See TracChangeset for help on using the changeset viewer.