fix warnings

Prevent use of uninitialized variable and removed a now unused
cleanup function for freeaddrinfo
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2014-06-06 23:31:25 +02:00
parent 4457430353
commit e5a1c18d70
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -47,9 +47,6 @@
static const char *arg_remote_host = NULL;
#define _cleanup_freeaddrinfo_ _cleanup_(freeaddrinfop)
DEFINE_TRIVIAL_CLEANUP_FUNC(struct addrinfo *, freeaddrinfo);
typedef struct Context {
sd_event *event;
sd_resolve *resolve;