From: Dmitry Eremin-Solenikov <[email protected]>

It does not make sense to specify negative amount inside num_*. Make
respective fields unsigned instead.

Signed-off-by: Dmitry Eremin-Solenikov <[email protected]>
---
/** Email created from pull request 13 (lumag:ipsec-api)
 ** https://github.com/Linaro/odp/pull/13
 ** Patch: https://github.com/Linaro/odp/pull/13.patch
 ** Base sha: 0707c974ed19c859fb92778c35a2f92bf7cd9fc6
 ** Merge commit sha: 8c3d82b1d53b887105589a72b247f5808bceb132
 **/
 include/odp/api/spec/ipsec.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index e83494d..cccb3b3 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -910,7 +910,7 @@ typedef struct odp_ipsec_op_status_t {
  */
 typedef struct odp_ipsec_op_param_t {
        /** Number of packets to be processed */
-       int num_pkt;
+       unsigned num_pkt;
 
        /** Number of SAs
         *
@@ -919,7 +919,7 @@ typedef struct odp_ipsec_op_param_t {
         *  * 1:       Single SA for all packets
         *  * num_pkt: SA per packet
         */
-       int num_sa;
+       unsigned num_sa;
 
        /** Number of operation options
         *
@@ -928,7 +928,7 @@ typedef struct odp_ipsec_op_param_t {
         *  * 1:       Single option for all packets
         *  * num_pkt: An option per packet
         */
-       int num_opt;
+       unsigned num_opt;
 
        /** Pointer to an array of packets
         *
@@ -1000,7 +1000,7 @@ typedef struct odp_ipsec_packet_result_t {
         *  fragments. All the fragments (of the same source packet) are stored
         *  consecutively in the 'pkt' array.
         */
-       int num_out;
+       unsigned num_out;
 
        /** IPSEC SA that was used to create the packet
         *
@@ -1041,7 +1041,7 @@ typedef struct odp_ipsec_op_result_t {
         *  The operation updates it with the actual number of packets
         *  outputted.
         */
-       int num_pkt;
+       unsigned num_pkt;
 
        /** Pointer to an array of packets
         *

Reply via email to