]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: Use ELF offsets more often
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 20 Oct 2024 10:10:09 +0000 (12:10 +0200)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 22 Oct 2024 17:02:56 +0000 (12:02 -0500)
commit25ab561bd59338992a2ab7288abbfecb1e1d018f
treee67e7171834ba15a4f05843ffbddff5416909dea
parent2669abb18b66471e09a99556a602b71729f0a699
libkmod: Use ELF offsets more often

Returned pointers are converted back to offsets in some functions. It is
more readable to turn offsets into pointers though.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/196
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
libkmod/libkmod-elf.c
libkmod/libkmod-internal.h
testsuite/init_module.c