From d371ba0db8c2a7f02a1ce50c5d792d898e4b0202 Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Mon, 11 Oct 2021 16:23:31 +0200 Subject: [PATCH] zdump: Cleanup zgetdump.h C header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Separate the definition of a struct from the declaration of a global variable of the type. To improve readability. Signed-off-by: Alexander Egorenkov Signed-off-by: Jan Höppner --- zdump/zgetdump.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zdump/zgetdump.h b/zdump/zgetdump.h index c51a84ce..aab795ad 100644 --- a/zdump/zgetdump.h +++ b/zdump/zgetdump.h @@ -1,8 +1,6 @@ /* * zgetdump - Tool for copying and converting System z dumps * - * Main include file - Should be included by all source files - * * Copyright IBM Corp. 2001, 2018 * * s390-tools is free software; you can redistribute it and/or modify @@ -18,9 +16,11 @@ /* * zgetdump globals */ -extern struct zgetdump_globals { +struct zgetdump_globals { struct zg_fh *fh; struct options opts; -} g; +}; + +extern struct zgetdump_globals g; #endif /* ZGETDUMP_H */