diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-11 17:19:18 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-11 17:19:18 +0100 |
commit | 42cf823e2fd39a3a936fe3077296a94ec24d89b0 (patch) | |
tree | 4c91465c51b135410dcda6f4d76a12f6ba43e426 /src | |
parent | 5408d96b20eba19c2c8c618ed15693e3ab1a142a (diff) |
misc: Address warnings coming from clang
* Include stdlib.h before the snmp headers to have a free declaration
* Use sprintf(dest, "%s", str) to avoid format string attacks
* Avoid bogus assignment. This pattern was used for marking something
as unused in the past.
Diffstat (limited to 'src')
-rw-r--r-- | src/sctp_m2ua.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/sctp_m2ua.c b/src/sctp_m2ua.c index a94ec85..43deb52 100644 --- a/src/sctp_m2ua.c +++ b/src/sctp_m2ua.c @@ -47,7 +47,6 @@ int sctp_m2ua_conn_count(struct sctp_m2ua_transport *trans) static struct mtp_m2ua_link *find_m2ua_link(struct sctp_m2ua_transport *trans, int link_index) { struct mtp_m2ua_link *link; - link_index = link_index; llist_for_each_entry(link, &trans->links, entry) { if (link->link_index == link_index) |