aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/string.c')
-rw-r--r--lib/string.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/string.c b/lib/string.c
index 765566a6a088..afce96af3afd 100644
--- a/lib/string.c
+++ b/lib/string.c
@@ -352,14 +352,14 @@ char *skip_spaces(const char *str)
352EXPORT_SYMBOL(skip_spaces); 352EXPORT_SYMBOL(skip_spaces);
353 353
354/** 354/**
355 * strstrip - Removes leading and trailing whitespace from @s. 355 * strim - Removes leading and trailing whitespace from @s.
356 * @s: The string to be stripped. 356 * @s: The string to be stripped.
357 * 357 *
358 * Note that the first trailing whitespace is replaced with a %NUL-terminator 358 * Note that the first trailing whitespace is replaced with a %NUL-terminator
359 * in the given string @s. Returns a pointer to the first non-whitespace 359 * in the given string @s. Returns a pointer to the first non-whitespace
360 * character in @s. 360 * character in @s.
361 */ 361 */
362char *strstrip(char *s) 362char *strim(char *s)
363{ 363{
364 size_t size; 364 size_t size;
365 char *end; 365 char *end;
@@ -376,7 +376,7 @@ char *strstrip(char *s)
376 376
377 return s; 377 return s;
378} 378}
379EXPORT_SYMBOL(strstrip); 379EXPORT_SYMBOL(strim);
380 380
381#ifndef __HAVE_ARCH_STRLEN 381#ifndef __HAVE_ARCH_STRLEN
382/** 382/**