From db07fae8250401adb2b97ab3e53d41da2a6bd767 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 26 Nov 2020 16:59:44 +0100 Subject: elf: Introduce enum opt_format in the ldconfig implementation Reviewed-by: Adhemerval Zanella --- sysdeps/generic/ldconfig.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'sysdeps/generic') diff --git a/sysdeps/generic/ldconfig.h b/sysdeps/generic/ldconfig.h index b64aab0064..cfec9d4668 100644 --- a/sysdeps/generic/ldconfig.h +++ b/sysdeps/generic/ldconfig.h @@ -90,7 +90,14 @@ extern char *chroot_canon (const char *chroot, const char *name); /* Declared in ldconfig.c. */ extern int opt_verbose; -extern int opt_format; +enum opt_format + { + opt_format_old = 0, /* Use struct cache_file. */ + opt_format_compat = 1, /* Use both, old format followed by new. */ + opt_format_new = 2, /* Use struct cache_file_new. */ + }; + +extern enum opt_format opt_format; /* Prototypes for a few program-wide used functions. */ #include -- cgit 1.4.1