aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmmanuel Bretelle <chantra@debuntu.org>2010-09-07 15:56:02 +0200
committerHarald Welte <laforge@gnumonks.org>2010-10-20 11:04:51 +0200
commit2a7cad57efcd70a660d1619a8eb4f8efc88bb0d8 (patch)
tree7891d47c2d775dfe6521a4391cb143baed9a4dc3
parent68521860e0fbd513c24ec47aa54c2b39c13b6f8c (diff)
Fixe compilation warning
Relevant output of make: sgsnemu.c: In function ‘process_options’: sgsnemu.c:443: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness /usr/include/bits/string3.h:120: note: expected ‘char * __restrict__’ but argument is of type ‘unsigned char *’ Signed-off-by: Emmanuel Bretelle <chantra@debuntu.org>
-rw-r--r--sgsnemu/sgsnemu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sgsnemu/sgsnemu.c b/sgsnemu/sgsnemu.c
index 9b5c2e2..ead8839 100644
--- a/sgsnemu/sgsnemu.c
+++ b/sgsnemu/sgsnemu.c
@@ -440,7 +440,7 @@ int process_options(int argc, char **argv) {
return -1;
}
options.apn.l = strlen(args_info.apn_arg);
- strncpy(options.apn.v, args_info.apn_arg, sizeof(options.apn.v));
+ strncpy((char *)options.apn.v, args_info.apn_arg, sizeof(options.apn.v));
options.apn.v[sizeof(options.apn.v)-1] = 0;
printf("Using APN: %s\n", args_info.apn_arg);