From patchwork Tue Dec 25 09:03:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Lindner X-Patchwork-Id: 2650 Return-Path: Received: from nm9-vm0.bullet.mail.ukl.yahoo.com (nm9-vm0.bullet.mail.ukl.yahoo.com [217.146.183.240]) by open-mesh.org (Postfix) with ESMTPS id 5D0F4601A04 for ; Tue, 25 Dec 2012 10:04:05 +0100 (CET) Received: from [217.12.10.88] by nm9.bullet.mail.ukl.yahoo.com with NNFMP; 25 Dec 2012 09:04:05 -0000 Received: from [77.238.184.65] by tm18.bullet.mail.ukl.yahoo.com with NNFMP; 25 Dec 2012 09:04:05 -0000 Received: from [127.0.0.1] by smtp134.mail.ukl.yahoo.com with NNFMP; 25 Dec 2012 09:04:05 -0000 X-Yahoo-Newman-Id: 4232.22167.bm@smtp134.mail.ukl.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 3s4yFB0VM1mZxXCOwEPayBY4wC6UK9IbijyZ57odyXd7IZe m3C7XgZwDFLVctXXlVWlArPkDv2XYIVQ9AllxIa5BTV1T7WdTN88I2B6ndES rz7bQftRQpNWv4xjCJSI3jwhx4JOtl4H0FX4S3Kx6Bm9WepLklXJgsYI5tjA _NqxdMVMGrAtWvvzKQ1AnKtUc3XAeo.THaGmJk50vxKAQyRCwS9jvoaA3BXV 0silnd5WwkNjlrUM1i4YRkELiTBydyO9vubWDCAp6pjXSOrMJyX3A10vFb.1 evUcOG8P9rZIYf81ncWWgJf6TuZYOL7DanUVHk.dBE98zvOjVEYFWYbHwkof Kw2iRuTD7WQNzdQYH3JzT_1H4kIYDCaiy2b1tyZembo0ti0nFbJZkenqFoab RqJHngJPzEw1TpVrh65UFMAvpURMfHRdB_nIfslHIltOTvy7Y X-Yahoo-SMTP: tW.h3tiswBBMXO2coYcbPigGD5Lt6zY_.Zc- Received: from localhost (lindner_marek@79.205.251.202 with plain) by smtp134.mail.ukl.yahoo.com with SMTP; 25 Dec 2012 09:04:04 +0000 GMT From: Marek Lindner To: b.a.t.m.a.n@lists.open-mesh.org Date: Tue, 25 Dec 2012 17:03:23 +0800 Message-Id: <1356426206-8667-5-git-send-email-lindner_marek@yahoo.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1356426206-8667-1-git-send-email-lindner_marek@yahoo.de> References: <1356426206-8667-1-git-send-email-lindner_marek@yahoo.de> Cc: Marek Lindner Subject: [B.A.T.M.A.N.] [PATCH 5/8] batman-adv: rename batadv_recvlist_node struct to make clear it is used by vis X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Dec 2012 09:04:05 -0000 Signed-off-by: Marek Lindner --- types.h | 2 +- vis.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/types.h b/types.h index d17517c..c56e0d9 100644 --- a/types.h +++ b/types.h @@ -453,7 +453,7 @@ struct batadv_vis_info_entry { uint8_t quality; /* quality = 0 client */ } __packed; -struct batadv_recvlist_node { +struct batadv_vis_recvlist_node { struct list_head list; uint8_t mac[ETH_ALEN]; }; diff --git a/vis.c b/vis.c index f7c25ce..34bf605 100644 --- a/vis.c +++ b/vis.c @@ -38,7 +38,7 @@ static void batadv_free_info(struct kref *ref) { struct batadv_vis_info *info; struct batadv_priv *bat_priv; - struct batadv_recvlist_node *entry, *tmp; + struct batadv_vis_recvlist_node *entry, *tmp; info = container_of(ref, struct batadv_vis_info, refcount); bat_priv = info->bat_priv; @@ -307,7 +307,7 @@ static void batadv_send_list_del(struct batadv_vis_info *info) static void batadv_recv_list_add(struct batadv_priv *bat_priv, struct list_head *recv_list, const char *mac) { - struct batadv_recvlist_node *entry; + struct batadv_vis_recvlist_node *entry; entry = kmalloc(sizeof(*entry), GFP_ATOMIC); if (!entry) @@ -324,7 +324,7 @@ static int batadv_recv_list_is_in(struct batadv_priv *bat_priv, const struct list_head *recv_list, const char *mac) { - const struct batadv_recvlist_node *entry; + const struct batadv_vis_recvlist_node *entry; spin_lock_bh(&bat_priv->vis.list_lock); list_for_each_entry(entry, recv_list, list) {