summaryrefslogtreecommitdiffstats
path: root/include/linux/string.h
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-03-08 12:55:23 +0100
committerPatrick McHardy <kaber@trash.net>2010-03-08 12:55:23 +0100
commitf790c0ca6fad60b544bb73eda8cc841a6436725b (patch)
tree171052d4734fda5e77668aacfff98de69e1f4237 /include/linux/string.h
parent9ab48ddcb144fdee908708669448dd136cf4894a (diff)
parent25cf84cf377c0aae5dbcf937ea89bc7893db5176 (diff)
downloadcachepc-linux-f790c0ca6fad60b544bb73eda8cc841a6436725b.tar.gz
cachepc-linux-f790c0ca6fad60b544bb73eda8cc841a6436725b.zip
Merge branch 'master' of /repos/git/linux-2.6
Conflicts: net/ipv4/netfilter/nf_nat_core.c net/netfilter/nf_conntrack_core.c net/netfilter/nf_conntrack_netlink.c Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/linux/string.h')
-rw-r--r--include/linux/string.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/include/linux/string.h b/include/linux/string.h
index b8508868d5ad..a716ee2a8adb 100644
--- a/include/linux/string.h
+++ b/include/linux/string.h
@@ -62,9 +62,20 @@ extern char * strnchr(const char *, size_t, int);
#ifndef __HAVE_ARCH_STRRCHR
extern char * strrchr(const char *,int);
#endif
-extern char * __must_check strstrip(char *);
+extern char * __must_check skip_spaces(const char *);
+
+extern char *strim(char *);
+
+static inline __must_check char *strstrip(char *str)
+{
+ return strim(str);
+}
+
#ifndef __HAVE_ARCH_STRSTR
-extern char * strstr(const char *,const char *);
+extern char * strstr(const char *, const char *);
+#endif
+#ifndef __HAVE_ARCH_STRNSTR
+extern char * strnstr(const char *, const char *, size_t);
#endif
#ifndef __HAVE_ARCH_STRLEN
extern __kernel_size_t strlen(const char *);