mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
type_to_string: move formatting to appropriate files.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "bitcoin/pullpush.h"
|
||||
#include "netaddr.h"
|
||||
#include "type_to_string.h"
|
||||
#include "utils.h"
|
||||
#include <arpa/inet.h>
|
||||
#include <assert.h>
|
||||
@@ -86,3 +87,4 @@ bool netaddr_from_fd(int fd, int type, int protocol, struct netaddr *a)
|
||||
return getpeername(fd, &a->saddr.s, &a->addrlen) == 0;
|
||||
}
|
||||
|
||||
REGISTER_TYPE_TO_STRING(netaddr, netaddr_name);
|
||||
|
||||
Reference in New Issue
Block a user