From d9b1f4e04b3be881d9676bc2ff46fa957382d73c Mon Sep 17 00:00:00 2001 From: Michael Bouchaud Date: Wed, 4 Sep 2013 21:18:45 +0200 Subject: [PATCH] entrance: warn-- --- src/daemon/entrance_action.c | 1 - src/daemon/entrance_history.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/daemon/entrance_action.c b/src/daemon/entrance_action.c index dac945b..934a303 100644 --- a/src/daemon/entrance_action.c +++ b/src/daemon/entrance_action.c @@ -222,7 +222,6 @@ _entrance_action_grub2_get(void) char *action; char *local; char *tmp; - char *buf; r2 += 10; size -= 10; diff --git a/src/daemon/entrance_history.c b/src/daemon/entrance_history.c index 19aaf51..fbfc13c 100644 --- a/src/daemon/entrance_history.c +++ b/src/daemon/entrance_history.c @@ -125,7 +125,7 @@ entrance_history_push(const char *login, const char *session) } if (!el) { - if (el = calloc(1, sizeof(Entrance_Login))) + if ((el = calloc(1, sizeof(Entrance_Login)))) { el->login = eina_stringshare_add(login); el->session = eina_stringshare_add(session);