mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
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:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user