mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-02 22:59:07 +08:00
Fix comparison operator in API documentation
This commit is contained in:
committed by
Andrii Nakryiko
parent
af2da673d8
commit
bf7aacea49
@@ -43,7 +43,7 @@ For example:
|
|||||||
ptr = some_libbpf_api_returning_ptr();
|
ptr = some_libbpf_api_returning_ptr();
|
||||||
if (!ptr) {
|
if (!ptr) {
|
||||||
/* note no minus sign for EINVAL and E2BIG below */
|
/* note no minus sign for EINVAL and E2BIG below */
|
||||||
if (errno = EINVAL) {
|
if (errno == EINVAL) {
|
||||||
/* handle EINVAL error */
|
/* handle EINVAL error */
|
||||||
} else if (errno == E2BIG) {
|
} else if (errno == E2BIG) {
|
||||||
/* handle E2BIG error */
|
/* handle E2BIG error */
|
||||||
|
|||||||
Reference in New Issue
Block a user