diff options
Diffstat (limited to 'tools/lib/bpf/str_error.c')
-rw-r--r-- | tools/lib/bpf/str_error.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/bpf/str_error.c b/tools/lib/bpf/str_error.c index b8798114a357..00e48ac5b806 100644 --- a/tools/lib/bpf/str_error.c +++ b/tools/lib/bpf/str_error.c | |||
@@ -1,4 +1,4 @@ | |||
1 | // SPDX-License-Identifier: LGPL-2.1 | 1 | // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) |
2 | #undef _GNU_SOURCE | 2 | #undef _GNU_SOURCE |
3 | #include <string.h> | 3 | #include <string.h> |
4 | #include <stdio.h> | 4 | #include <stdio.h> |
@@ -9,7 +9,7 @@ | |||
9 | * libc, while checking strerror_r() return to avoid having to check this in | 9 | * libc, while checking strerror_r() return to avoid having to check this in |
10 | * all places calling it. | 10 | * all places calling it. |
11 | */ | 11 | */ |
12 | char *str_error(int err, char *dst, int len) | 12 | char *libbpf_strerror_r(int err, char *dst, int len) |
13 | { | 13 | { |
14 | int ret = strerror_r(err, dst, len); | 14 | int ret = strerror_r(err, dst, len); |
15 | if (ret) | 15 | if (ret) |