mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 15:04:19 +01:00
cleanup: Addressing comments from #165
Thanks @rustyrussell for the feedback :-)
This commit is contained in:
@@ -169,11 +169,11 @@ void fromwire_ipaddr(const u8 **cursor, size_t *max, struct ipaddr *addr)
|
||||
{
|
||||
/* Skip any eventual padding */
|
||||
while (**cursor == 0) {
|
||||
*cursor += 1;
|
||||
(*cursor)++;
|
||||
}
|
||||
|
||||
addr->type = **cursor;
|
||||
*cursor += 1;
|
||||
(*cursor)++;
|
||||
switch (addr->type) {
|
||||
case 1:
|
||||
addr->addrlen = 4;
|
||||
|
||||
Reference in New Issue
Block a user