~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201207201942

« back to all changes in this revision

Viewing changes to lib/include/util_shared.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-10-18 12:28:19 UTC
  • mfrom: (1.1.7 upstream) (2.4.9 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091018122819-00vqew6m0ztpqcqp
Tags: 2009.10.15-201664-1
MergingĀ upstreamĀ versionĀ 2009.10.15-201664.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
}
75
75
   
76
76
static INLINE_SINGLE_CALLER uint32 
77
 
UtilCRCUpdate(uint32 crc, uint8 *buf, int len)
 
77
UtilCRCUpdate(uint32 crc, const uint8 *buf, int len)
78
78
{
79
79
   uint32 c = crc;
80
80
   int n;
108
108
 *----------------------------------------------------------------------
109
109
 */
110
110
uint32 
111
 
CRC_Compute(uint8 *buf, int len)
 
111
CRC_Compute(const uint8 *buf, int len)
112
112
{
113
113
   return UtilCRCUpdate(0xffffffffL, buf, len) ^ 0xffffffffL;
114
114
}