From 64835d0836ce76311382e3a0833da2e223091459 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Sat, 3 Oct 2009 11:24:03 -0700 Subject: [PATCH] Rename header to print_pem_stamp in the global namespace to avoid -Wshadow warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on a report from Matthias Dieter Wallnöfer. --- lib/hx509/file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/hx509/file.c b/lib/hx509/file.c index ba7a23f47..56e25766e 100644 --- a/lib/hx509/file.c +++ b/lib/hx509/file.c @@ -66,7 +66,7 @@ _hx509_write_file(const char *fn, const void *data, size_t length) */ static void -header(FILE *f, const char *type, const char *str) +print_pem_stamp(FILE *f, const char *type, const char *str) { fprintf(f, "-----%s %s-----\n", type, str); } @@ -82,7 +82,7 @@ hx509_pem_write(hx509_context context, const char *type, #define ENCODE_LINE_LENGTH 54 - header(f, "BEGIN", type); + print_pem_stamp(f, "BEGIN", type); while (headers) { fprintf(f, "%s: %s\n%s", @@ -110,7 +110,7 @@ hx509_pem_write(hx509_context context, const char *type, free(line); } - header(f, "END", type); + print_pem_stamp(f, "END", type); return 0; }