Ticket #64: 0001-use-CLEAR-to-clear-all-of-netlist-more-in-line-with-.patch

File 0001-use-CLEAR-to-clear-all-of-netlist-more-in-line-with-.patch, 761 bytes (added by Gert Döring, 12 years ago)

same effect, but with CLEAR() [on top of first patch]

  • route.c

    From f9ec243ea8f4783d921e56d12a0afb3fad02f0c6 Mon Sep 17 00:00:00 2001
    From: Gert Doering <gert@greenie.muc.de>
    Date: Thu, 21 Oct 2010 10:35:29 +0200
    Subject: [PATCH] use CLEAR() to clear all of "netlist" - more in line with the coding style
     and easier to read [dazo]
    
    Signed-off-by: Gert Doering <gert@greenie.muc.de>
    ---
     route.c |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/route.c b/route.c
    index d50821e..20f62d5 100644
    a b init_route_list (struct route_list *rl, 
    450450        struct route r;
    451451        int k;
    452452
    453         netlist.len = 0;                /* won't be set for special routes */
     453        CLEAR(netlist);         /* init_route() will not always init this */
    454454
    455455        if (!init_route (&r,
    456456                         &netlist,