From: Tobias Stoeckmann Date: Wed, 13 Nov 2024 18:41:04 +0000 (+0100) Subject: libkmod: Improve index comment X-Git-Tag: v34~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c14b75dfcc29e7bffc9381ce0d5cc30906f0b01c;p=thirdparty%2Fkmod.git libkmod: Improve index comment In version 1 of kmod, definitions of INDEX_MAGIC_OLD and INDEX_MAGIC were in two adjacent lines, which made the sentence starting with "Second one" much easier to read. Since the "second one" is actually INDEX_MAGIC and even kmod version 1 did use it, let's not talk about "newer versioned binary files" anymore but clearly state that 0xB007FA57 is deprecated. Also add a missing full stop. Signed-off-by: Tobias Stoeckmann Signed-off-by: Max Kunzelmann Link: https://github.com/kmod-project/kmod/pull/241 Signed-off-by: Lucas De Marchi --- diff --git a/libkmod/libkmod-index.c b/libkmod/libkmod-index.c index f1d74aed..18f22be8 100644 --- a/libkmod/libkmod-index.c +++ b/libkmod/libkmod-index.c @@ -25,10 +25,9 @@ * Integers are stored as 32 bit unsigned in "network" order, i.e. MSB first. * All files start with a magic number. * - * Magic spells "BOOTFAST". Second one used on newer versioned binary files. - * #define INDEX_MAGIC_OLD 0xB007FA57 + * Magic spells "BOOTFAST". Deprecated versions encoded it as 0xB007FA57. * - * We use a version string to keep track of changes to the binary format + * We use a version string to keep track of changes to the binary format. * This is stored in the form: INDEX_MAJOR (hi) INDEX_MINOR (lo) just in * case we ever decide to have minor changes that are not incompatible. */