X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=libcfs%2Flibcfs%2Flibcfs_string.c;h=db376b55d127a1ad881756c84377dddf09ae449d;hb=0c00b4a10c951a7a5cba075a3e8181662dab50b8;hp=00a732a847e41080780d16a2ccb8ebbe9a1abbeb;hpb=19ec037c0a9427250b87a69c53beb153d533ab1c;p=fs%2Flustre-release.git diff --git a/libcfs/libcfs/libcfs_string.c b/libcfs/libcfs/libcfs_string.c index 00a732a..db376b5 100644 --- a/libcfs/libcfs/libcfs_string.c +++ b/libcfs/libcfs/libcfs_string.c @@ -27,7 +27,7 @@ * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * - * Copyright (c) 2012, Whamcloud, Inc. + * Copyright (c) 2012, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -40,14 +40,10 @@ * Author: Nathan Rutman */ -#ifndef EXPORT_SYMTAB -# define EXPORT_SYMTAB -#endif - #include /* non-0 = don't match */ -static int cfs_strncasecmp(const char *s1, const char *s2, size_t n) +int cfs_strncasecmp(const char *s1, const char *s2, size_t n) { if (s1 == NULL || s2 == NULL) return 1; @@ -64,6 +60,7 @@ static int cfs_strncasecmp(const char *s1, const char *s2, size_t n) return tolower(*(unsigned char *)s1) - tolower(*(unsigned char *)s2); } +EXPORT_SYMBOL(cfs_strncasecmp); /* Convert a text string to a bitmask */ int cfs_str2mask(const char *str, const char *(*bit2str)(int bit),