Blame SOURCES/0019-Fix-C99-build-error-on-EL7-systems.patch

10e13a
From f1c410e315ebf70cc18296c959f40c8870d1a105 Mon Sep 17 00:00:00 2001
10e13a
From: Trevor Vaughan <tvaughan@onyxpoint.com>
10e13a
Date: Fri, 23 Feb 2018 16:10:29 -0500
10e13a
Subject: [PATCH] Fix C99 build error on EL7 systems
10e13a
10e13a
Needed for testing #89
10e13a
---
10e13a
 src/certext.c | 6 +++---
10e13a
 1 file changed, 3 insertions(+), 3 deletions(-)
10e13a
10e13a
diff --git a/src/certext.c b/src/certext.c
10e13a
index 587496f..c44c8bb 100644
10e13a
--- a/src/certext.c
10e13a
+++ b/src/certext.c
10e13a
@@ -1,6 +1,6 @@
10e13a
 /*
10e13a
  * Copyright (C) 2009,2011,2012,2013,2014,2015 Red Hat, Inc.
10e13a
- * 
10e13a
+ *
10e13a
  * This program is free software: you can redistribute it and/or modify
10e13a
  * it under the terms of the GNU General Public License as published by
10e13a
  * the Free Software Foundation, either version 3 of the License, or
10e13a
@@ -1612,9 +1612,9 @@ cm_certext_build_certificate_template(
10e13a
 		return NULL;
10e13a
 
10e13a
 	int i = 0;
10e13a
-	char *saveptr, *endptr;
10e13a
+	char *saveptr, *endptr, *part;
10e13a
 	for (
10e13a
-		char *part = strtok_r(template_spec_dup, ":", &saveptr);
10e13a
+		part = strtok_r(template_spec_dup, ":", &saveptr);
10e13a
 		part != NULL;
10e13a
 		part = strtok_r(NULL, ":", &saveptr)
10e13a
 	) {
10e13a
-- 
10e13a
1.8.3.1
10e13a