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

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