From 890d69d7fde23ea15a082026a4d1c01aba805569 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 20 Feb 2015 21:17:07 +0100 Subject: p11-kit: Remove duplicate WHITESPACE define --- p11-kit/uri.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/p11-kit/uri.c b/p11-kit/uri.c index 970f125..2aa4e83 100644 --- a/p11-kit/uri.c +++ b/p11-kit/uri.c @@ -146,8 +146,6 @@ struct p11_kit_uri { char *pin_source; }; -const static char WHITESPACE[] = " \n\r\v"; - static char * key_decode (const char *value, const char *end) { @@ -162,9 +160,9 @@ key_decode (const char *value, const char *end) key[length] = '\0'; /* Do we have any whitespace? Strip it out. */ - if (strcspn (key, WHITESPACE) != length) { + if (strcspn (key, P11_URL_WHITESPACE) != length) { for (at = key, pos = key; pos != key + length + 1; ++pos) { - if (!strchr (WHITESPACE, *pos)) + if (!strchr (P11_URL_WHITESPACE, *pos)) *(at++) = *pos; } *at = '\0'; @@ -997,7 +995,7 @@ atoin (const char *start, const char *end) { int ret = 0; while (start != end) { - if (strchr (WHITESPACE, *start)) { + if (strchr (P11_URL_WHITESPACE, *start)) { start++; continue; } -- cgit v1.1