style fixes. no functional change.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36099 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9f568b889d
commit
d2a0e98609
@ -73,18 +73,17 @@ get_string(const char* val, const char* sep, u_int8_t* buf, int* lenp)
|
||||
| tohex((u_char) val[1]);
|
||||
#undef tohex
|
||||
val += 2;
|
||||
} else {
|
||||
} else
|
||||
*p++ = *val++;
|
||||
}
|
||||
}
|
||||
len = p - buf;
|
||||
/* The string "-" is treated as the empty string. */
|
||||
if (!hexstr && len == 1 && buf[0] == '-') {
|
||||
len = 0;
|
||||
memset(buf, 0, *lenp);
|
||||
} else if (len < *lenp) {
|
||||
} else if (len < *lenp)
|
||||
memset(p, 0, *lenp - len);
|
||||
}
|
||||
|
||||
*lenp = len;
|
||||
return val;
|
||||
}
|
||||
@ -253,12 +252,10 @@ show_status(const char* dev, int s)
|
||||
print_string(data, len);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
} else
|
||||
print_string(data, len);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
usage()
|
||||
|
Loading…
x
Reference in New Issue
Block a user