mirror of
https://gitee.com/openharmony/third_party_libbpf
synced 2024-10-07 06:23:25 +00:00
Fix comparison operator in API documentation
This commit is contained in:
parent
af2da673d8
commit
bf7aacea49
@ -43,7 +43,7 @@ For example:
|
||||
ptr = some_libbpf_api_returning_ptr();
|
||||
if (!ptr) {
|
||||
/* note no minus sign for EINVAL and E2BIG below */
|
||||
if (errno = EINVAL) {
|
||||
if (errno == EINVAL) {
|
||||
/* handle EINVAL error */
|
||||
} else if (errno == E2BIG) {
|
||||
/* handle E2BIG error */
|
||||
|
Loading…
Reference in New Issue
Block a user