mirror of
https://github.com/NLnetLabs/unbound.git
synced 2024-09-21 06:37:08 +00:00
whitespace nicer.
git-svn-id: file:///svn/unbound/trunk@3245 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
f1bcc1032f
commit
588532af80
@ -28,7 +28,7 @@ void *memmove(void *dest, const void *src, size_t n)
|
|||||||
to[i] = from[i];
|
to[i] = from[i];
|
||||||
return dest;
|
return dest;
|
||||||
}
|
}
|
||||||
if (from > to && from-to < (int)n) {
|
if (from > to && from-to < (int)n) {
|
||||||
/* to overlaps with from */
|
/* to overlaps with from */
|
||||||
/* <from......> */
|
/* <from......> */
|
||||||
/* <to........> */
|
/* <to........> */
|
||||||
|
@ -288,9 +288,9 @@ sldns_parse_escape(uint8_t *ch_p, const char** str_p)
|
|||||||
{
|
{
|
||||||
uint16_t val;
|
uint16_t val;
|
||||||
|
|
||||||
if ((*str_p)[0] && isdigit((unsigned char)(*str_p)[0]) &&
|
if ((*str_p)[0] && isdigit((unsigned char)(*str_p)[0]) &&
|
||||||
(*str_p)[1] && isdigit((unsigned char)(*str_p)[1]) &&
|
(*str_p)[1] && isdigit((unsigned char)(*str_p)[1]) &&
|
||||||
(*str_p)[2] && isdigit((unsigned char)(*str_p)[2])) {
|
(*str_p)[2] && isdigit((unsigned char)(*str_p)[2])) {
|
||||||
|
|
||||||
val = (uint16_t)(((*str_p)[0] - '0') * 100 +
|
val = (uint16_t)(((*str_p)[0] - '0') * 100 +
|
||||||
((*str_p)[1] - '0') * 10 +
|
((*str_p)[1] - '0') * 10 +
|
||||||
|
Loading…
Reference in New Issue
Block a user