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

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