]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
veritysetup: remove unused globals
authorGaël PORTAY <gael.portay@collabora.com>
Thu, 31 Dec 2020 11:25:17 +0000 (06:25 -0500)
committerGaël PORTAY <gael.portay@collabora.com>
Fri, 15 Jan 2021 16:06:11 +0000 (11:06 -0500)
This removes the three global variables arg_root_hash, arg_data_what and
arg_hash_what which were presents since the beginning but were never
being used.

src/veritysetup/veritysetup.c

index 1863bdfa326494b64871f011662e1ed8093c0b19..cd9f0e7f64bb536de345a99a4985f0cbad54c49a 100644 (file)
 #include "string-util.h"
 #include "terminal-util.h"
 
-static char *arg_root_hash = NULL;
-static char *arg_data_what = NULL;
-static char *arg_hash_what = NULL;
 static uint32_t arg_activate_flags = CRYPT_ACTIVATE_READONLY;
 static char *arg_root_hash_signature = NULL;
 
-STATIC_DESTRUCTOR_REGISTER(arg_root_hash, freep);
-STATIC_DESTRUCTOR_REGISTER(arg_data_what, freep);
-STATIC_DESTRUCTOR_REGISTER(arg_hash_what, freep);
 STATIC_DESTRUCTOR_REGISTER(arg_root_hash_signature, freep);
 
 static int help(void) {