From e403f7b33ac35e961c72ed1b6335bbe3084e4642 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 17 Jul 2013 12:55:57 +0200 Subject: Declare static variables const where it makes sense https://bugzilla.redhat.com/show_bug.cgi?id=985337 --- common/path.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'common') diff --git a/common/path.c b/common/path.c index a22c2a6..2f976a8 100644 --- a/common/path.c +++ b/common/path.c @@ -62,9 +62,9 @@ char * p11_path_base (const char *path) { #ifdef OS_WIN32 - static const char *delims = "/\\"; + const char *delims = "/\\"; #else - static const char *delims = "/"; + const char *delims = "/"; #endif const char *end; @@ -191,9 +191,9 @@ p11_path_build (const char *path, ...) { #ifdef OS_WIN32 - static const char delim = '\\'; + const char delim = '\\'; #else - static const char delim = '/'; + const char delim = '/'; #endif const char *first = path; char *built; -- cgit v1.1