1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 01:55:22 +03:00

silence warnings

This commit is contained in:
Thomas Hindoe Paaboel Andersen 2014-04-21 00:02:35 +02:00
parent 57bd6899b3
commit 6e37cd2f4a
2 changed files with 2 additions and 2 deletions

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);

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);