summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
23164d1)
Fixed a number of -Wconversion warnings
Signed-off-by: Steve Dickson <steved@redhat.com>
memset(u, 0, uuidlen);
for ( ; *val ; val++) {
memset(u, 0, uuidlen);
for ( ; *val ; val++) {
if (!isxdigit(c))
continue;
if (isalpha(c)) {
if (!isxdigit(c))
continue;
if (isalpha(c)) {
c = c - '0' + 0;
if ((i&1) == 0)
c <<= 4;
c = c - '0' + 0;
if ((i&1) == 0)
c <<= 4;
i++;
if (i == uuidlen*2)
i = 0;
i++;
if (i == uuidlen*2)
i = 0;