From c14b75dfcc29e7bffc9381ce0d5cc30906f0b01c Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Wed, 13 Nov 2024 19:41:04 +0100 Subject: [PATCH] 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 --- libkmod/libkmod-index.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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. */ -- 2.47.2