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