Skip to contentSkip to conversation

libmnl [PATCH 4/8] document: mnl_socket_open

PATCH Ken-ichirou MATSUZAWA 2 participants 2 messages Dec 7, 2013 netfilter

lore
Share & tools
lore
#0 lore raw

fix return value on error

---
 src/socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/socket.c +1 -1
index 6d54563..676a08a 100644
@@ -107,7 +107,7 @@ EXPORT_SYMBOL(mnl_socket_get_portid);
  * mnl_socket_open - open a netlink socket
  * \param bus the netlink socket bus ID (see NETLINK_* constants)
  *
- * On error, it returns -1 and errno is appropriately set. Otherwise, it
+ * On error, it returns NULL and errno is appropriately set. Otherwise, it
  * returns a valid pointer to the mnl_socket structure.
  */
 struct mnl_socket *mnl_socket_open(int bus)
Signature · 1 line
1.8.4.rc3
maintainer
#1 lore raw
Quoted 1 line · Ken-ichirou MATSUZAWA

fix return value on error

Patch is okay but I skipped this one since I had applied a identical patch from Shawn Landden. But I applied all other patches from this series.