diff mbox

[igt,v4,05/13] igt/gem_exec_parse: make global vars local to main()

Message ID 20161114205122.10742-6-robert@sixbynine.org (mailing list archive)
State New, archived
Headers show

Commit Message

Robert Bragg Nov. 14, 2016, 8:51 p.m. UTC
Signed-off-by: Robert Bragg <robert@sixbynine.org>
---
 tests/gem_exec_parse.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Matthew Auld Nov. 14, 2016, 9:33 p.m. UTC | #1
On 14 November 2016 at 20:51, Robert Bragg <robert@sixbynine.org> wrote:
> Signed-off-by: Robert Bragg <robert@sixbynine.org>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
diff mbox

Patch

diff --git a/tests/gem_exec_parse.c b/tests/gem_exec_parse.c
index dcf39a2..ebcd092 100644
--- a/tests/gem_exec_parse.c
+++ b/tests/gem_exec_parse.c
@@ -375,11 +375,11 @@  static void hsw_load_register_reg(void)
 	close(fd);
 }
 
-static uint32_t handle;
-static int fd;
-
 igt_main
 {
+	uint32_t handle;
+	int fd;
+
 	igt_fixture {
 		int parser_version = 0;
                 drm_i915_getparam_t gp;