diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-04 11:08:38 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-04 11:08:38 +0200 |
commit | f54a1f4d43a8bf065cb7114e0c1ee6fc547670b5 (patch) | |
tree | be190a648ef935c4c02b1a34a606c813c25e1c38 /ggsn/ggsn.c | |
parent | 5d064ecb84a3be86bd917e00703abe9efe1529b8 (diff) |
Fix various compiler warnings throughout the code
Mostly signed/unsigned and typecasting issues
Taken from http://sourceforge.net/tracker/index.php?func=detail&aid=1811517&group_id=68956&atid=522957
Diffstat (limited to 'ggsn/ggsn.c')
-rw-r--r-- | ggsn/ggsn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c index 62a37f2..60a4f80 100644 --- a/ggsn/ggsn.c +++ b/ggsn/ggsn.c @@ -124,7 +124,7 @@ int daemon(int nochdir, int noclose) { int encaps_printf(void *p, void *packet, unsigned len) { - int i; + unsigned int i; if (debug) { printf("The packet looks like this:\n"); for( i=0; i<len; i++) { @@ -423,7 +423,7 @@ int main(int argc, char **argv) } apn.l = strlen(args_info.apn_arg) + 1; apn.v[0] = (char) strlen(args_info.apn_arg); - strncpy(&apn.v[1], args_info.apn_arg, sizeof(apn.v)-1); + strncpy((char *) &apn.v[1], args_info.apn_arg, sizeof(apn.v)-1); /* foreground */ |