Remove unused replay variable in conftests seq number reset hook
authorMartin Willi <martin@revosec.ch>
Fri, 6 Jul 2012 12:05:14 +0000 (14:05 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 16 Jul 2012 12:53:37 +0000 (14:53 +0200)
src/conftest/hooks/reset_seq.c

index ccf8e99..6fb7a2e 100644 (file)
@@ -51,7 +51,6 @@ static job_requeue_t reset_cb(struct xfrm_usersa_id *data)
        struct nlmsghdr *hdr;
        struct xfrm_aevent_id *id;
        struct rtattr *rthdr;
-       struct xfrm_replay_state *replay;
        struct sockaddr_nl addr;
        int s, len;
 
@@ -74,8 +73,6 @@ static job_requeue_t reset_cb(struct xfrm_usersa_id *data)
        rthdr->rta_len = RTA_LENGTH(sizeof(struct xfrm_replay_state));
        hdr->nlmsg_len += rthdr->rta_len;
 
-       replay = (struct xfrm_replay_state*)RTA_DATA(rthdr);
-
        s = socket(AF_NETLINK, SOCK_RAW, NETLINK_XFRM);
        if (s == -1)
        {