- patches.suse/parser-match_string.diff: The parse_string()
authorAndreas Gruenbacher <agruen@suse.de>
Thu, 24 Jun 2010 18:33:47 +0000 (20:33 +0200)
committerAndreas Gruenbacher <agruen@suse.de>
Thu, 24 Jun 2010 18:55:33 +0000 (20:55 +0200)
  function was only used by the nfs4acl patches.

suse-commit: 6de5b7b64730e69857df9bb8d0a9541ccbf0a631

include/linux/parser.h
lib/parser.c

index 6265322..ea2281e 100644 (file)
@@ -26,7 +26,6 @@ typedef struct {
 } substring_t;
 
 int match_token(char *, const match_table_t table, substring_t args[]);
-int match_string(substring_t *s, const char *str);
 int match_int(substring_t *, int *result);
 int match_octal(substring_t *, int *result);
 int match_hex(substring_t *, int *result);
index 246f29a..fb34977 100644 (file)
@@ -114,19 +114,6 @@ int match_token(char *s, const match_table_t table, substring_t args[])
 }
 
 /**
- * match_string: check for a particular parameter
- * @s: substring to be scanned
- * @str: string to scan for
- *
- * Description: Return if a &substring_t is equal to string @str.
- */
-int match_string(substring_t *s, const char *str)
-{
-       return strlen(str) == s->to - s->from &&
-              !memcmp(str, s->from, s->to - s->from);
-}
-
-/**
  * match_number: scan a number in the given base from a substring_t
  * @s: substring to be scanned
  * @result: resulting integer on success
@@ -237,7 +224,6 @@ char *match_strdup(const substring_t *s)
 }
 
 EXPORT_SYMBOL(match_token);
-EXPORT_SYMBOL(match_string);
 EXPORT_SYMBOL(match_int);
 EXPORT_SYMBOL(match_octal);
 EXPORT_SYMBOL(match_hex);