summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stefw@redhat.com>2015-02-20 21:17:07 +0100
committerStef Walter <stefw@redhat.com>2015-02-20 21:17:23 +0100
commit890d69d7fde23ea15a082026a4d1c01aba805569 (patch)
tree00b8f3a525fb68e0a52280d27cc5f8940e46cc28
parenta6df1f21e42a3b57448eb6897b976ac8883908eb (diff)
downloadp11-kit-890d69d7fde23ea15a082026a4d1c01aba805569.tar.gz
p11-kit: Remove duplicate WHITESPACE define
-rw-r--r--p11-kit/uri.c8
1 files 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;
}