@@ -121,7 +121,7 @@ static int iftable_add(struct nlmsghdr *n, void *arg)
* \param n: netlink message header of a RTM_DELLINK nlmsg
* \param arg: not used
*
- * Delete an entry from the interface table.
+ * Delete an entry from the interface table.
* Returns -1 on error, 0 if no matching entry was found or 1 on success.
*/
static int iftable_del(struct nlmsghdr *n, void *arg)
@@ -158,9 +158,9 @@ static int iftable_del(struct nlmsghdr *n, void *arg)
* \param h pointer to nlif_handle created by nlif_open()
* \param index ifindex to be resolved
* \param name interface name, pass a buffer of IFNAMSIZ size
- * \return -1 on error, 1 on success
+ * \return -1 on error, 1 on success
*/
-int nlif_index2name(struct nlif_handle *h,
+int nlif_index2name(struct nlif_handle *h,
unsigned int index,
char *name)
{
@@ -193,7 +193,7 @@ int nlif_index2name(struct nlif_handle *h,
* \param h pointer to nlif_handle created by nlif_open()
* \param index ifindex to be resolved
* \param flags pointer to variable used to store the interface flags
- * \return -1 on error, 1 on success
+ * \return -1 on error, 1 on success
*/
int nlif_get_ifflags(const struct nlif_handle *h,
unsigned int index,
@@ -324,7 +324,7 @@ static int nlif_catch_multi(struct nlif_handle *h)
return -1;
}
-/**
+/**
* nlif_query - request a dump of interfaces available in the system
* \param h: pointer to a valid nlif_handler
*/
Done in a separate commit to ease review of real changes. Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au> --- src/iftable.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)