From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marek Lindner Date: Sat, 12 May 2012 03:15:19 +0800 References: <1336760987-1523-1-git-send-email-sven@narfation.org> In-Reply-To: <1336760987-1523-1-git-send-email-sven@narfation.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201205120315.19641.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: Prefix non-static functions with batadv_ 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: , To: The list for a Better Approach To Mobile Ad-hoc Networking On Saturday, May 12, 2012 02:29:46 Sven Eckelmann wrote: > @@ -138,7 +138,8 @@ static uint8_t hop_penalty(uint8_t tq, const struct > bat_priv *bat_priv) static int bat_iv_ogm_aggr_packet(int buff_pos, int > packet_len, > int tt_num_changes) > { > - int next_buff_pos = buff_pos + BATMAN_OGM_HLEN + > tt_len(tt_num_changes); + int next_buff_pos = buff_pos + > BATMAN_OGM_HLEN + > + batadv_tt_len(tt_num_changes); > > return (next_buff_pos <= packet_len) && > (next_buff_pos <= MAX_AGGREGATION_BYTES); > @@ -189,7 +190,7 @@ static void bat_iv_ogm_send_to_if(struct forw_packet > *forw_packet, hard_iface->net_dev->dev_addr); > > buff_pos += BATMAN_OGM_HLEN + > - tt_len(batman_ogm_packet->tt_num_changes); > + batadv_tt_len(batman_ogm_packet->tt_num_changes > ); packet_num++; > batman_ogm_packet = (struct batman_ogm_packet *) > (forw_packet->skb->data + > buff_pos); Here we have indentation David does not like (although not problematic for checkpatch). > @@ -1222,7 +1226,7 @@ static int bat_iv_ogm_receive(struct sk_buff *skb, > tt_buff, if_incoming); > > buff_pos += BATMAN_OGM_HLEN + > - tt_len(batman_ogm_packet->tt_num_changes); > + batadv_tt_len(batman_ogm_packet- >tt_num_changes); > > batman_ogm_packet = (struct batman_ogm_packet *) > (packet_buff + buff_pos); Same here. Regards, Marek