From 2bae39d1ca91462e82fbc5ca8bb3246cddb792fb Mon Sep 17 00:00:00 2001 From: Paul Sutton Date: Wed, 23 Nov 2016 10:36:04 +0000 Subject: [PATCH] Changed port types to uint16 --- srslte/include/srslte/io/netsink.h | 2 +- srslte/include/srslte/io/netsource.h | 2 +- srslte/lib/io/netsink.c | 2 +- srslte/lib/io/netsource.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/srslte/include/srslte/io/netsink.h b/srslte/include/srslte/io/netsink.h index 154d33feb..4f0771958 100644 --- a/srslte/include/srslte/io/netsink.h +++ b/srslte/include/srslte/io/netsink.h @@ -60,7 +60,7 @@ typedef struct SRSLTE_API { SRSLTE_API int srslte_netsink_init(srslte_netsink_t *q, char *address, - int port, + uint16_t port, srslte_netsink_type_t type); SRSLTE_API void srslte_netsink_free(srslte_netsink_t *q); diff --git a/srslte/include/srslte/io/netsource.h b/srslte/include/srslte/io/netsource.h index b581a1ef1..7a2739993 100644 --- a/srslte/include/srslte/io/netsource.h +++ b/srslte/include/srslte/io/netsource.h @@ -61,7 +61,7 @@ typedef struct SRSLTE_API { SRSLTE_API int srslte_netsource_init(srslte_netsource_t *q, char *address, - int port, + uint16_t port, srslte_netsource_type_t type); SRSLTE_API void srslte_netsource_free(srslte_netsource_t *q); diff --git a/srslte/lib/io/netsink.c b/srslte/lib/io/netsink.c index bedb5fc92..c7f8d3db8 100644 --- a/srslte/lib/io/netsink.c +++ b/srslte/lib/io/netsink.c @@ -38,7 +38,7 @@ #include "srslte/io/netsink.h" -int srslte_netsink_init(srslte_netsink_t *q, char *address, int port, srslte_netsink_type_t type) { +int srslte_netsink_init(srslte_netsink_t *q, char *address, uint16_t port, srslte_netsink_type_t type) { bzero(q, sizeof(srslte_netsink_t)); q->sockfd=socket(AF_INET, type==SRSLTE_NETSINK_TCP?SOCK_STREAM:SOCK_DGRAM,0); diff --git a/srslte/lib/io/netsource.c b/srslte/lib/io/netsource.c index f41296c3c..a86a05d1c 100644 --- a/srslte/lib/io/netsource.c +++ b/srslte/lib/io/netsource.c @@ -36,7 +36,7 @@ #include "srslte/io/netsource.h" -int srslte_netsource_init(srslte_netsource_t *q, char *address, int port, srslte_netsource_type_t type) { +int srslte_netsource_init(srslte_netsource_t *q, char *address, uint16_t port, srslte_netsource_type_t type) { bzero(q, sizeof(srslte_netsource_t)); q->sockfd=socket(AF_INET,type==SRSLTE_NETSOURCE_TCP?SOCK_STREAM:SOCK_DGRAM,0);