Skip to content

Commit

Permalink
erlang: fix compile warning unused but set variable
Browse files Browse the repository at this point in the history
- get rid of this variable

(cherry picked from commit 32c3435)
  • Loading branch information
seudin committed Apr 13, 2016
1 parent c118610 commit 65d55ff
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions modules/erlang/erl_helpers.c
Expand Up @@ -235,7 +235,6 @@ int erl_init_ec(ei_cnode *ec, const str *alivename, const str *hostname, const s
char nodename[MAXNODELEN];

int result;
int port;

/* copy the nodename into something we can modify */
if (snprintf(nodename, MAXNODELEN, "%.*s@%.*s", STR_FMT(alivename), STR_FMT(hostname)) >= MAXNODELEN) {
Expand All @@ -256,8 +255,6 @@ int erl_init_ec(ei_cnode *ec, const str *alivename, const str *hostname, const s
return -1;
}

port = sockaddr_port(addr);

LM_DBG("initialized ec for cnode '%s' on %.*s[%s] creation %d.\n", nodename, STR_FMT(hostname), ip_addr2strz(&ip), creation);

freeaddrinfo(ai);
Expand Down

0 comments on commit 65d55ff

Please sign in to comment.