Skip to content

Commit af35bcb

Browse files
committed
Merge branch 'master' of https://github.com/Alamot/code-snippets
2 parents 15383aa + 52239c9 commit af35bcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nl80211_info/nl80211_info.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ static int initNl80211(Netlink* nl, Wifi* w) {
9898
fprintf(stderr, "Failed to allocate netlink callback.\n");
9999
nl_close(nl->socket);
100100
nl_socket_free(nl->socket);
101-
return ENOMEM;
101+
return -ENOMEM;
102102
}
103103

104104
nl_cb_set(nl->cb1, NL_CB_VALID , NL_CB_CUSTOM, getWifiName_callback, w);

0 commit comments

Comments
 (0)