Mercurial > hg > sidinfo
comparison sidlib.c @ 160:27365eae837b
Cleanup.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 05 Feb 2018 00:59:58 +0200 |
parents | 9cfa0553e7f9 |
children | 7359170fbb7f |
comparison
equal
deleted
inserted
replaced
159:5c8e9a1c25e4 | 160:27365eae837b |
---|---|
333 "Error allocating new node.\n"); | 333 "Error allocating new node.\n"); |
334 return NULL; | 334 return NULL; |
335 } | 335 } |
336 | 336 |
337 // Get hash value | 337 // Get hash value |
338 pos = 0; | 338 for (pos = 0, i = 0; i < TH_MD5HASH_LENGTH; i++, pos += 2) |
339 for (i = 0; i < TH_MD5HASH_LENGTH; i++, pos += 2) | |
340 { | 339 { |
341 unsigned int tmpu; | 340 unsigned int tmpu; |
342 sscanf(&line[pos], "%2x", &tmpu); | 341 sscanf(&line[pos], "%2x", &tmpu); |
343 node->hash[i] = tmpu; | 342 node->hash[i] = tmpu; |
344 } | 343 } |