[Olsr-dev] [olsrd] [PATCH v1 26/29] gateway: remove an unused variable in olsr_update_gateway_entry

Henning Rogge (spam-protected)
Wed Jul 25 09:15:12 CEST 2012


On 07/24/2012 06:09 PM, Ferry Huberts wrote:
> From: Ferry Huberts <(spam-protected)>

*grml* shouldn't gcc complain about this?

Henning

> Signed-off-by: Ferry Huberts <(spam-protected)>
> ---
>   src/gateway.c |    2 --
>   1 file changed, 2 deletions(-)
>
> diff --git a/src/gateway.c b/src/gateway.c
> index bcbcd23..86b3676 100644
> --- a/src/gateway.c
> +++ b/src/gateway.c
> @@ -287,9 +287,7 @@ olsr_update_gateway_entry(union olsr_ip_addr *originator, union olsr_ip_addr *ma
>     uint8_t *ptr = OLSR_IP_ADDR_2_HNA_PTR(mask, prefixlen);
>
>     if (!gw) {
> -    struct ipaddr_str buf;
>       gw = olsr_cookie_malloc(gw_mem_cookie);
> -
>       gw->originator = *originator;
>       gw->node.key = &gw->originator;
>
>


-- 
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut für
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Neuenahrer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961,   Fax +49 228 9435 685
mailto:(spam-protected) http://www.fkie.fraunhofer.de
GPG: E1C6 0914 490B 3909 D944 F80D 4487 C67C 55EC CFE0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6169 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20120725/189289aa/attachment.bin>


More information about the Olsr-dev mailing list