Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41895
b: refs/heads/master
c: b798a9e
h: refs/heads/master
i:
  41893: b3468ca
  41891: 81719a6
  41887: 126bb81
v: v3
  • Loading branch information
Jamal Hadi Salim authored and David S. Miller committed Dec 3, 2006
1 parent 91cec11 commit 6e6e261
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0c51f53c57c5584508dfae7110db5caccfd499c6
refs/heads/master: b798a9ede2b2434b9cbf0f3aee3e8598586fa89c
16 changes: 8 additions & 8 deletions trunk/net/xfrm/xfrm_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ static int xfrm_alloc_userspi(struct sk_buff *skb, struct nlmsghdr *nlh, void **
return err;
}

static int verify_policy_dir(__u8 dir)
static int verify_policy_dir(u8 dir)
{
switch (dir) {
case XFRM_POLICY_IN:
Expand All @@ -784,7 +784,7 @@ static int verify_policy_dir(__u8 dir)
return 0;
}

static int verify_policy_type(__u8 type)
static int verify_policy_type(u8 type)
{
switch (type) {
case XFRM_POLICY_TYPE_MAIN:
Expand Down Expand Up @@ -897,7 +897,7 @@ static int copy_from_user_policy_type(u8 *tp, struct rtattr **xfrma)
{
struct rtattr *rt = xfrma[XFRMA_POLICY_TYPE-1];
struct xfrm_userpolicy_type *upt;
__u8 type = XFRM_POLICY_TYPE_MAIN;
u8 type = XFRM_POLICY_TYPE_MAIN;
int err;

if (rt) {
Expand Down Expand Up @@ -1079,7 +1079,7 @@ static inline int copy_to_user_sec_ctx(struct xfrm_policy *xp, struct sk_buff *s
}

#ifdef CONFIG_XFRM_SUB_POLICY
static int copy_to_user_policy_type(__u8 type, struct sk_buff *skb)
static int copy_to_user_policy_type(u8 type, struct sk_buff *skb)
{
struct xfrm_userpolicy_type upt;

Expand All @@ -1095,7 +1095,7 @@ static int copy_to_user_policy_type(__u8 type, struct sk_buff *skb)
}

#else
static inline int copy_to_user_policy_type(__u8 type, struct sk_buff *skb)
static inline int copy_to_user_policy_type(u8 type, struct sk_buff *skb)
{
return 0;
}
Expand Down Expand Up @@ -1185,7 +1185,7 @@ static int xfrm_get_policy(struct sk_buff *skb, struct nlmsghdr *nlh, void **xfr
{
struct xfrm_policy *xp;
struct xfrm_userpolicy_id *p;
__u8 type = XFRM_POLICY_TYPE_MAIN;
u8 type = XFRM_POLICY_TYPE_MAIN;
int err;
struct km_event c;
int delete;
Expand Down Expand Up @@ -1403,7 +1403,7 @@ static int xfrm_new_ae(struct sk_buff *skb, struct nlmsghdr *nlh, void **xfrma)
static int xfrm_flush_policy(struct sk_buff *skb, struct nlmsghdr *nlh, void **xfrma)
{
struct km_event c;
__u8 type = XFRM_POLICY_TYPE_MAIN;
u8 type = XFRM_POLICY_TYPE_MAIN;
int err;

err = copy_from_user_policy_type(&type, (struct rtattr **)xfrma);
Expand All @@ -1424,7 +1424,7 @@ static int xfrm_add_pol_expire(struct sk_buff *skb, struct nlmsghdr *nlh, void *
struct xfrm_policy *xp;
struct xfrm_user_polexpire *up = NLMSG_DATA(nlh);
struct xfrm_userpolicy_info *p = &up->pol;
__u8 type = XFRM_POLICY_TYPE_MAIN;
u8 type = XFRM_POLICY_TYPE_MAIN;
int err = -ENOENT;

err = copy_from_user_policy_type(&type, (struct rtattr **)xfrma);
Expand Down

0 comments on commit 6e6e261

Please sign in to comment.