[XFRM]: constify 'struct xfrm_type'

Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
Eric Dumazet 2008-01-30 19:11:50 -08:00 • committed by David S. Miller
commit 533cb5b0a6
11 changed files with 22 additions and 22 deletions

View file

@ -300,7 +300,7 @@ static void ah_destroy(struct xfrm_state *x)
}
static struct xfrm_type ah_type =
static const struct xfrm_type ah_type =
{
.description = "AH4",
.owner = THIS_MODULE,

View file

@ -600,7 +600,7 @@ error:
return err;
}
static struct xfrm_type esp_type =
static const struct xfrm_type esp_type =
{
.description = "ESP4",
.owner = THIS_MODULE,

View file

@ -437,7 +437,7 @@ error:
goto out;
}
static struct xfrm_type ipcomp_type = {
static const struct xfrm_type ipcomp_type = {
.description = "IPCOMP4",
.owner = THIS_MODULE,
.proto = IPPROTO_COMP,

View file

@ -38,7 +38,7 @@ static void ipip_destroy(struct xfrm_state *x)
{
}
static struct xfrm_type ipip_type = {
static const struct xfrm_type ipip_type = {
.description = "IPIP",
.owner = THIS_MODULE,
.proto = IPPROTO_IPIP,