aboutsummaryrefslogtreecommitdiffstats
path: root/gtp
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-11-02 13:09:43 +0100
committerHarald Welte <laforge@gnumonks.org>2011-11-02 13:09:43 +0100
commitd88e11d81996aae59b542f3642b59e948a06a1d7 (patch)
treea6873ba28dde5dd29457c3ef55338b5a58d57a6c /gtp
parentbed35df298f4914fabedfc7c9387af3f2f9a9e9f (diff)
GTP: use socklen_t where appropriate
this fixes some compiler warnings
Diffstat (limited to 'gtp')
-rw-r--r--gtp/gtp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtp/gtp.c b/gtp/gtp.c
index 768d8c7..dc3a05d 100644
--- a/gtp/gtp.c
+++ b/gtp/gtp.c
@@ -2718,7 +2718,7 @@ int gtp_decaps0(struct gsn_t *gsn)
{
unsigned char buffer[PACKET_MAX];
struct sockaddr_in peer;
- size_t peerlen;
+ socklen_t peerlen;
int status;
struct gtp0_header *pheader;
int version = 0; /* GTP version should be determined from header! */
@@ -2863,7 +2863,7 @@ int gtp_decaps1c(struct gsn_t *gsn)
{
unsigned char buffer[PACKET_MAX];
struct sockaddr_in peer;
- size_t peerlen;
+ socklen_t peerlen;
int status;
struct gtp1_header_short *pheader;
int version = 1; /* TODO GTP version should be determined from header! */
@@ -3038,7 +3038,7 @@ int gtp_decaps1u(struct gsn_t *gsn)
{
unsigned char buffer[PACKET_MAX];
struct sockaddr_in peer;
- size_t peerlen;
+ socklen_t peerlen;
int status;
struct gtp1_header_short *pheader;
int version = 1; /* GTP version should be determined from header! */