Message ID | 1493906407-1542-3-git-send-email-odpbot@yandex.ru |
---|---|
State | Superseded |
Headers | show |
Series | [API-NEXT,v1,1/2] api: ipsec: mark odp_ipsec_sa_create argument as constant | expand |
diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index cccb3b3..4f746f6 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -773,7 +773,7 @@ void odp_ipsec_sa_param_init(odp_ipsec_sa_param_t *param); * * @see odp_ipsec_sa_param_init() */ -odp_ipsec_sa_t odp_ipsec_sa_create(odp_ipsec_sa_param_t *param); +odp_ipsec_sa_t odp_ipsec_sa_create(const odp_ipsec_sa_param_t *param); /** * Disable IPSEC SA diff --git a/platform/linux-generic/odp_ipsec.c b/platform/linux-generic/odp_ipsec.c index 5eb1be3..10918df 100644 --- a/platform/linux-generic/odp_ipsec.c +++ b/platform/linux-generic/odp_ipsec.c @@ -52,7 +52,7 @@ void odp_ipsec_sa_param_init(odp_ipsec_sa_param_t *param) memset(param, 0, sizeof(odp_ipsec_sa_param_t)); } -odp_ipsec_sa_t odp_ipsec_sa_create(odp_ipsec_sa_param_t *param) +odp_ipsec_sa_t odp_ipsec_sa_create(const odp_ipsec_sa_param_t *param) { (void)param;