Changeset dbde51 for src/dispatch_key.c
- Timestamp:
- 02/01/09 16:02:41 (3 years ago)
- Branches:
- master
- Children:
- eece31
- Parents:
- eef7e5
- git-author:
- Tomash Brechko <tomash.brechko@…> (02/01/09 15:44:09)
- git-committer:
- Tomash Brechko <tomash.brechko@…> (02/01/09 16:02:41)
- File:
-
- 1 edited
-
src/dispatch_key.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/dispatch_key.c
r9729a3 rdbde51 1 1 /* 2 Copyright (C) 2007-200 8Tomash Brechko. All rights reserved.2 Copyright (C) 2007-2009 Tomash Brechko. All rights reserved. 3 3 4 4 When used to build Perl module: … … 162 162 { 163 163 static const char delim = '\0'; 164 unsigned int crc32 ;164 unsigned int crc32, point; 165 165 int count, i; 166 166 … … 174 174 crc32 = compute_crc32_add(crc32, &delim, 1); 175 175 crc32 = compute_crc32_add(crc32, port, port_len); 176 point = 0; 176 177 177 178 for (i = 0; i < count; ++i) 178 179 { 179 180 char buf[4]; 180 unsigned int point;181 181 struct continuum_point *p; 182 182 … … 185 185 of int as 4 8-bit bytes. 186 186 */ 187 buf[0] = i& 0xff;188 buf[1] = ( i>> 8) & 0xff;189 buf[2] = ( i>> 16) & 0xff;190 buf[3] = ( i>> 24) & 0xff;187 buf[0] = point & 0xff; 188 buf[1] = (point >> 8) & 0xff; 189 buf[2] = (point >> 16) & 0xff; 190 buf[3] = (point >> 24) & 0xff; 191 191 192 192 point = compute_crc32_add(crc32, buf, 4);
Note: See TracChangeset
for help on using the changeset viewer.
