On Wed, Mar 2, 2016 at 6:37 AM, Petri Savolainen <[email protected] > wrote:
> Fixed function prototype formats on crypto and random api files. > Function return type and function name should be on the same line. > For example, it's easy to find all odp functions which return int32_t > (grep 'int32_t odp_') when the return type is on the same line. > > Signed-off-by: Petri Savolainen <[email protected]> > Reviewed-by: Bill Fischofer <[email protected]> > --- > include/odp/api/spec/crypto.h | 22 +++++++++------------- > include/odp/api/spec/random.h | 3 +-- > 2 files changed, 10 insertions(+), 15 deletions(-) > > diff --git a/include/odp/api/spec/crypto.h b/include/odp/api/spec/crypto.h > index 41beedb..7c6f9bc 100644 > --- a/include/odp/api/spec/crypto.h > +++ b/include/odp/api/spec/crypto.h > @@ -263,10 +263,9 @@ typedef struct odp_crypto_op_result { > * @retval 0 on success > * @retval <0 on failure > */ > -int > -odp_crypto_session_create(odp_crypto_session_params_t *params, > - odp_crypto_session_t *session, > - odp_crypto_ses_create_err_t *status); > +int odp_crypto_session_create(odp_crypto_session_params_t *params, > + odp_crypto_session_t *session, > + odp_crypto_ses_create_err_t *status); > > /** > * Crypto session destroy > @@ -307,8 +306,7 @@ odp_event_t > odp_crypto_compl_to_event(odp_crypto_compl_t completion_event); > * > * @param completion_event Completion event we are done accessing > */ > -void > -odp_crypto_compl_free(odp_crypto_compl_t completion_event); > +void odp_crypto_compl_free(odp_crypto_compl_t completion_event); > > /** > * Crypto per packet operation > @@ -326,10 +324,9 @@ odp_crypto_compl_free(odp_crypto_compl_t > completion_event); > * @retval 0 on success > * @retval <0 on failure > */ > -int > -odp_crypto_operation(odp_crypto_op_params_t *params, > - odp_bool_t *posted, > - odp_crypto_op_result_t *result); > +int odp_crypto_operation(odp_crypto_op_params_t *params, > + odp_bool_t *posted, > + odp_crypto_op_result_t *result); > > /** > * Crypto per packet operation query result from completion event > @@ -337,9 +334,8 @@ odp_crypto_operation(odp_crypto_op_params_t *params, > * @param completion_event Event containing operation results > * @param result Pointer to result structure > */ > -void > -odp_crypto_compl_result(odp_crypto_compl_t completion_event, > - odp_crypto_op_result_t *result); > +void odp_crypto_compl_result(odp_crypto_compl_t completion_event, > + odp_crypto_op_result_t *result); > > /** > * Get printable value for an odp_crypto_session_t > diff --git a/include/odp/api/spec/random.h b/include/odp/api/spec/random.h > index 3451b0d..435783a 100644 > --- a/include/odp/api/spec/random.h > +++ b/include/odp/api/spec/random.h > @@ -35,8 +35,7 @@ extern "C" { > * @return Number of bytes written > * @retval <0 on failure > */ > -int32_t > -odp_random_data(uint8_t *buf, int32_t size, odp_bool_t use_entropy); > +int32_t odp_random_data(uint8_t *buf, int32_t size, odp_bool_t > use_entropy); > > /** > * @} > -- > 2.7.2 > > _______________________________________________ > lng-odp mailing list > [email protected] > https://lists.linaro.org/mailman/listinfo/lng-odp >
_______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
