summaryrefslogtreecommitdiffstats
path: root/libsyscalls_get_syscall_display_info.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-12-05 00:03:04 +0100
committerMattias Andrée <maandree@kth.se>2023-12-05 00:03:04 +0100
commit58dd684c4e86944301959a140dbed9746df35779 (patch)
treea2702ea4f66b2a58711ee22eb7449c74b1ecf0d1 /libsyscalls_get_syscall_display_info.c
parentFirst commit (diff)
downloadlibsyscalls-58dd684c4e86944301959a140dbed9746df35779.tar.gz
libsyscalls-58dd684c4e86944301959a140dbed9746df35779.tar.bz2
libsyscalls-58dd684c4e86944301959a140dbed9746df35779.tar.xz
Second commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'libsyscalls_get_syscall_display_info.c')
-rw-r--r--libsyscalls_get_syscall_display_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsyscalls_get_syscall_display_info.c b/libsyscalls_get_syscall_display_info.c
index 5b39284..4d59f5c 100644
--- a/libsyscalls_get_syscall_display_info.c
+++ b/libsyscalls_get_syscall_display_info.c
@@ -48,7 +48,7 @@ extract_signal(enum libsyscalls_os os, enum libsyscalls_arch arch,
if (libsyscalls_get_signals(os, arch, &signals, &nsignals))
return NULL;
- found = bsearch(&key, signals, nsignals, sizeof(key),
+ found = bsearch(&key, signals, nsignals, sizeof(key), /* TODO interpolation search may be better */
is_signed ? &signed_named_number_cmp : &unsigned_named_number_cmp);
if (!found)
return NULL;