diff mbox series

[1/3] api: ipsec: make num_pkt/out/sa/opt unsigned

Message ID 20170410132811.19300-1-dmitry.ereminsolenikov@linaro.org
State New
Headers show
Series [1/3] api: ipsec: make num_pkt/out/sa/opt unsigned | expand

Commit Message

Dmitry Eremin-Solenikov April 10, 2017, 1:28 p.m. UTC
It does not make sense to specify negative amount inside num_*. Make
respective fields unsigned instead.

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
 include/odp/api/spec/ipsec.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

-- 
2.11.0
diff mbox series

Patch

diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h
index a0ceb11a..56553519 100644
--- a/include/odp/api/spec/ipsec.h
+++ b/include/odp/api/spec/ipsec.h
@@ -920,7 +920,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
 	 *
@@ -929,7 +929,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
 	 *
@@ -938,7 +938,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
 	 *
@@ -1010,7 +1010,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
 	 *
@@ -1051,7 +1051,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
 	 *