X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=include%2Flinux%2Fparser.h;h=7dcd050757567eb94265fb12b29d6f79e5cbcb3f;hb=9bf8a943ad79a3bb15597fe0275f8b1cf26e2010;hp=86676f6009925454fb15147e43c2c56981723591;hpb=4d4700707c0d4be0efc968989fb1cd01c60c0a35;p=linux-2.6-omap-h63xx.git diff --git a/include/linux/parser.h b/include/linux/parser.h index 86676f60099..7dcd0507575 100644 --- a/include/linux/parser.h +++ b/include/linux/parser.h @@ -14,7 +14,7 @@ struct match_token { const char *pattern; }; -typedef const struct match_token match_table_t[]; +typedef struct match_token match_table_t[]; /* Maximum number of arguments that match_token will find in a pattern */ enum {MAX_OPT_ARGS = 3}; @@ -29,5 +29,5 @@ int match_token(char *, match_table_t table, substring_t args[]); int match_int(substring_t *, int *result); int match_octal(substring_t *, int *result); int match_hex(substring_t *, int *result); -void match_strcpy(char *, const substring_t *); +size_t match_strlcpy(char *, const substring_t *, size_t); char *match_strdup(const substring_t *);