diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-28 02:04:45 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-28 02:04:45 -0500 |
commit | 6f2f19ed955e62a6789495da512d510f26ad4885 (patch) | |
tree | 5373980e8561b2bc5fe32212c02b78177eee33b7 /net/xfrm/xfrm_algo.c | |
parent | 5a698af53fb85b92d6462939a2c75ec4c7233bb9 (diff) |
xfrm: Pass name as const to xfrm_*_get_byname().
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_algo.c')
-rw-r--r-- | net/xfrm/xfrm_algo.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c index 8b4d6e3246e5..58064d9e565d 100644 --- a/net/xfrm/xfrm_algo.c +++ b/net/xfrm/xfrm_algo.c | |||
@@ -618,21 +618,21 @@ static int xfrm_alg_name_match(const struct xfrm_algo_desc *entry, | |||
618 | (entry->compat && !strcmp(name, entry->compat))); | 618 | (entry->compat && !strcmp(name, entry->compat))); |
619 | } | 619 | } |
620 | 620 | ||
621 | struct xfrm_algo_desc *xfrm_aalg_get_byname(char *name, int probe) | 621 | struct xfrm_algo_desc *xfrm_aalg_get_byname(const char *name, int probe) |
622 | { | 622 | { |
623 | return xfrm_find_algo(&xfrm_aalg_list, xfrm_alg_name_match, name, | 623 | return xfrm_find_algo(&xfrm_aalg_list, xfrm_alg_name_match, name, |
624 | probe); | 624 | probe); |
625 | } | 625 | } |
626 | EXPORT_SYMBOL_GPL(xfrm_aalg_get_byname); | 626 | EXPORT_SYMBOL_GPL(xfrm_aalg_get_byname); |
627 | 627 | ||
628 | struct xfrm_algo_desc *xfrm_ealg_get_byname(char *name, int probe) | 628 | struct xfrm_algo_desc *xfrm_ealg_get_byname(const char *name, int probe) |
629 | { | 629 | { |
630 | return xfrm_find_algo(&xfrm_ealg_list, xfrm_alg_name_match, name, | 630 | return xfrm_find_algo(&xfrm_ealg_list, xfrm_alg_name_match, name, |
631 | probe); | 631 | probe); |
632 | } | 632 | } |
633 | EXPORT_SYMBOL_GPL(xfrm_ealg_get_byname); | 633 | EXPORT_SYMBOL_GPL(xfrm_ealg_get_byname); |
634 | 634 | ||
635 | struct xfrm_algo_desc *xfrm_calg_get_byname(char *name, int probe) | 635 | struct xfrm_algo_desc *xfrm_calg_get_byname(const char *name, int probe) |
636 | { | 636 | { |
637 | return xfrm_find_algo(&xfrm_calg_list, xfrm_alg_name_match, name, | 637 | return xfrm_find_algo(&xfrm_calg_list, xfrm_alg_name_match, name, |
638 | probe); | 638 | probe); |
@@ -654,7 +654,7 @@ static int xfrm_aead_name_match(const struct xfrm_algo_desc *entry, | |||
654 | !strcmp(name, entry->name); | 654 | !strcmp(name, entry->name); |
655 | } | 655 | } |
656 | 656 | ||
657 | struct xfrm_algo_desc *xfrm_aead_get_byname(char *name, int icv_len, int probe) | 657 | struct xfrm_algo_desc *xfrm_aead_get_byname(const char *name, int icv_len, int probe) |
658 | { | 658 | { |
659 | struct xfrm_aead_name data = { | 659 | struct xfrm_aead_name data = { |
660 | .name = name, | 660 | .name = name, |