silence warnings

This commit is contained in:
Thomas Hindoe Paaboel Andersen
2014-04-21 00:03:22 +02:00
parent 57bd6899b3
commit 6e37cd2f4a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1092,7 +1092,7 @@ int socket_read_message(sd_rtnl *rtnl) {
struct nlmsghdr *new_msg;
size_t len;
int r;
unsigned i;
unsigned i = 0;
assert(rtnl);
assert(rtnl->rbuffer);
+1 -1
View File
@@ -140,7 +140,7 @@ void link_config_ctx_free(link_config_ctx *ctx) {
static int load_link(link_config_ctx *ctx, const char *filename) {
_cleanup_free_ link_config *link = NULL;
_cleanup_fclose_ FILE *file;
_cleanup_fclose_ FILE *file = NULL;
int r;
assert(ctx);