From f0d101266f1f1aa9f421c47d35879d42b4a123b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20=C5=BBenczykowski?= Date: Thu, 17 Oct 2019 16:52:33 -0700 Subject: [PATCH] better document ifc_{add,del}_address return code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test: N/A Bug: 142764715 Signed-off-by: Maciej Żenczykowski Change-Id: I8ffa7985aa2ec81959d57188755e453f0551b872 --- libnetutils/ifc_utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libnetutils/ifc_utils.c b/libnetutils/ifc_utils.c index a098d596e..6af49bbdb 100644 --- a/libnetutils/ifc_utils.c +++ b/libnetutils/ifc_utils.c @@ -362,10 +362,12 @@ int ifc_act_on_address(int action, const char *name, const char *address, return err->error; } +// Returns zero on success and negative errno on failure. int ifc_add_address(const char *name, const char *address, int prefixlen) { return ifc_act_on_address(RTM_NEWADDR, name, address, prefixlen); } +// Returns zero on success and negative errno on failure. int ifc_del_address(const char *name, const char * address, int prefixlen) { return ifc_act_on_address(RTM_DELADDR, name, address, prefixlen); }