diff options
author | rwatson <rwatson@FreeBSD.org> | 2009-06-24 10:46:03 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2009-06-24 10:46:03 +0000 |
commit | 5193abc7c8dbc7b90b55c1d04f2e2d21739b83c6 (patch) | |
tree | 7e02e7e346b300cd749091e26648460bac616ba6 /sys/netatalk | |
parent | d5bc5239c3664794a0e4b2683aece3f495495e69 (diff) | |
download | FreeBSD-src-5193abc7c8dbc7b90b55c1d04f2e2d21739b83c6.zip FreeBSD-src-5193abc7c8dbc7b90b55c1d04f2e2d21739b83c6.tar.gz |
Printf fewer warnings when adding a route to an atalk address fails;
userspace will print the error.
MFC after: 3 days
Diffstat (limited to 'sys/netatalk')
-rw-r--r-- | sys/netatalk/at_control.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/netatalk/at_control.c b/sys/netatalk/at_control.c index 02f080c..6332697 100644 --- a/sys/netatalk/at_control.c +++ b/sys/netatalk/at_control.c @@ -830,7 +830,6 @@ static int aa_addsingleroute(struct ifaddr *ifa, struct at_addr *addr, struct at_addr *mask) { - int error; #if 0 printf("aa_addsingleroute: %x.%x mask %x.%x ...\n", @@ -838,22 +837,15 @@ aa_addsingleroute(struct ifaddr *ifa, struct at_addr *addr, mask->s_node); #endif - error = aa_dosingleroute(ifa, addr, mask, RTM_ADD, RTF_UP); - if (error) - printf("aa_addsingleroute: error %d\n", error); - return (error); + return (aa_dosingleroute(ifa, addr, mask, RTM_ADD, RTF_UP)); } static int aa_delsingleroute(struct ifaddr *ifa, struct at_addr *addr, struct at_addr *mask) { - int error; - error = aa_dosingleroute(ifa, addr, mask, RTM_DELETE, 0); - if (error) - printf("aa_delsingleroute: error %d\n", error); - return (error); + return (aa_dosingleroute(ifa, addr, mask, RTM_DELETE, 0)); } static int |