journalctl: make arg_image_policy non-static, just like all other arg_xyz variables

Some refactoring to normalize behaviour here, and make arg_image_policy
less special for no reason.
This commit is contained in:
Lennart Poettering
2025-03-24 12:29:24 -04:00
parent a18b80b15d
commit 5be930db9f
2 changed files with 3 additions and 1 deletions

View File

@@ -94,7 +94,7 @@ Set *arg_output_fields = NULL;
char *arg_pattern = NULL;
pcre2_code *arg_compiled_pattern = NULL;
PatternCompileCase arg_case = PATTERN_COMPILE_CASE_AUTO;
static ImagePolicy *arg_image_policy = NULL;
ImagePolicy *arg_image_policy = NULL;
STATIC_DESTRUCTOR_REGISTER(arg_cursor, freep);
STATIC_DESTRUCTOR_REGISTER(arg_cursor_file, freep);

View File

@@ -7,6 +7,7 @@
#include "sd-id128.h"
#include "sd-json.h"
#include "image-policy.h"
#include "output-mode.h"
#include "pager.h"
#include "pcre2-util.h"
@@ -97,6 +98,7 @@ extern Set *arg_output_fields;
extern char *arg_pattern;
extern pcre2_code *arg_compiled_pattern;
extern PatternCompileCase arg_case;
extern ImagePolicy *arg_image_policy;
static inline bool arg_lines_needs_seek_end(void) {
return arg_lines >= 0 && !arg_lines_oldest;