From 83081430088ec45a76ec028b361ec1cd9e6b9779 Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Mon, 11 Oct 2021 16:22:03 +0200 Subject: [PATCH] zdump/stdout: Extract stdout.h header from zgetdump.h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Create a separate C header for STDOUT to separate independent things and make it more readable. Signed-off-by: Alexander Egorenkov Signed-off-by: Jan Höppner --- zdump/stdout.c | 1 + zdump/stdout.h | 13 +++++++++++++ zdump/zgetdump.c | 1 + zdump/zgetdump.h | 3 +-- 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 zdump/stdout.h diff --git a/zdump/stdout.c b/zdump/stdout.c index 77c5d295..3ddccc62 100644 --- a/zdump/stdout.c +++ b/zdump/stdout.c @@ -12,6 +12,7 @@ #include "zg.h" #include "dfi.h" #include "dfo.h" +#include "stdout.h" int stdout_write_dump(void) { diff --git a/zdump/stdout.h b/zdump/stdout.h new file mode 100644 index 00000000..aaf23b21 --- /dev/null +++ b/zdump/stdout.h @@ -0,0 +1,13 @@ +/* + * Copyright IBM Corp. 2001, 2018 + * + * s390-tools is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See LICENSE for details. + */ + +#ifndef STDOUT_H +#define STDOUT_H + +int stdout_write_dump(void); + +#endif /* STDOUT_H */ diff --git a/zdump/zgetdump.c b/zdump/zgetdump.c index fa22338f..bdeff284 100644 --- a/zdump/zgetdump.c +++ b/zdump/zgetdump.c @@ -30,6 +30,7 @@ #include "dt.h" #include "dfi.h" #include "dfo.h" +#include "stdout.h" #include "zfuse.h" /* diff --git a/zdump/zgetdump.h b/zdump/zgetdump.h index 4a553432..c51a84ce 100644 --- a/zdump/zgetdump.h +++ b/zdump/zgetdump.h @@ -12,6 +12,7 @@ #ifndef ZGETDUMP_H #define ZGETDUMP_H +#include "zg.h" #include "opts.h" /* @@ -22,6 +23,4 @@ extern struct zgetdump_globals { struct options opts; } g; -int stdout_write_dump(void); - #endif /* ZGETDUMP_H */