diff options
author | johans <johans@FreeBSD.org> | 2011-07-26 03:45:10 +0800 |
---|---|---|
committer | johans <johans@FreeBSD.org> | 2011-07-26 03:45:10 +0800 |
commit | 8cf21b8e5933a39c8d8c55c1b4735aa950ae35a5 (patch) | |
tree | fe4fb65a6d9276cdcba91bc894e7f52f378a4fc4 /net | |
parent | 62f88d3ba9135249c5cc0a6bb1d072ec901c00fa (diff) | |
download | freebsd-ports-gnome-8cf21b8e5933a39c8d8c55c1b4735aa950ae35a5.tar.gz freebsd-ports-gnome-8cf21b8e5933a39c8d8c55c1b4735aa950ae35a5.tar.zst freebsd-ports-gnome-8cf21b8e5933a39c8d8c55c1b4735aa950ae35a5.zip |
Fix mrouted build with clang
Diffstat (limited to 'net')
-rw-r--r-- | net/mrouted/files/patch-route.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/mrouted/files/patch-route.c b/net/mrouted/files/patch-route.c new file mode 100644 index 000000000000..dcdb802bfce4 --- /dev/null +++ b/net/mrouted/files/patch-route.c @@ -0,0 +1,15 @@ +--- route.c.orig 2011-07-25 21:42:18.000000000 +0200 ++++ route.c 2011-07-25 21:42:46.000000000 +0200 +@@ -1399,8 +1399,10 @@ void dump_routes(FILE *fp) + inet_fmts(r->rt_origin, r->rt_originmask, s1, sizeof(s1)), + (r->rt_gateway == 0) ? "" : inet_fmt(r->rt_gateway, s2, sizeof(s2))); + +- fprintf(fp, (r->rt_metric == UNREACHABLE) ? " NR " : "%4u ", +- r->rt_metric); ++ if (r->rt_metric == UNREACHABLE) ++ fprintf(fp, " NR "); ++ else ++ fprintf(fp, "%4u ", r->rt_metric); + + fprintf(fp, " %3u %c%c %3u ", r->rt_timer, + (r->rt_flags & RTF_CHANGED) ? 'C' : '.', |