diff options
author | Emmanuel Bretelle <chantra@debuntu.org> | 2010-09-07 15:56:02 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-10-20 11:04:51 +0200 |
commit | 2a7cad57efcd70a660d1619a8eb4f8efc88bb0d8 (patch) | |
tree | 7891d47c2d775dfe6521a4391cb143baed9a4dc3 /sgsnemu | |
parent | 68521860e0fbd513c24ec47aa54c2b39c13b6f8c (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>
Diffstat (limited to 'sgsnemu')
-rw-r--r-- | sgsnemu/sgsnemu.c | 2 |
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); |