aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/iprule.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-09-30 16:22:36 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-09-30 16:22:36 +0000
commit605b20e277c558eb284595aacbcd3c21168894d3 (patch)
tree11869f7d7a674459627eeeb5a30500ac45c10cf4 /networking/libiproute/iprule.c
parent1eecaf26b0025e91183f18dc5fd686e8832f8ee2 (diff)
downloadbusybox-605b20e277c558eb284595aacbcd3c21168894d3.tar.gz
replace printf with fputs where appropriate
Diffstat (limited to 'networking/libiproute/iprule.c')
-rw-r--r--networking/libiproute/iprule.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/networking/libiproute/iprule.c b/networking/libiproute/iprule.c
index 18ae6b5ef..3c276e666 100644
--- a/networking/libiproute/iprule.c
+++ b/networking/libiproute/iprule.c
@@ -87,11 +87,10 @@ static int print_rule(struct sockaddr_nl *who ATTRIBUTE_UNUSED,
r->rtm_src_len
);
} else {
- fprintf(fp, "%s", format_host(r->rtm_family,
+ fputs(format_host(r->rtm_family,
RTA_PAYLOAD(tb[RTA_SRC]),
RTA_DATA(tb[RTA_SRC]),
- abuf, sizeof(abuf))
- );
+ abuf, sizeof(abuf)), fp);
}
} else if (r->rtm_src_len) {
fprintf(fp, "0/%d", r->rtm_src_len);
@@ -154,7 +153,7 @@ static int print_rule(struct sockaddr_nl *who ATTRIBUTE_UNUSED,
} else
fprintf(fp, "masquerade");
} else if (r->rtm_type != RTN_UNICAST)
- fprintf(fp, "%s", rtnl_rtntype_n2a(r->rtm_type, b1, sizeof(b1)));
+ fputs(rtnl_rtntype_n2a(r->rtm_type, b1, sizeof(b1)), fp);
fputc('\n', fp);
fflush(fp);