diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2015-06-07 10:32:38 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-06-08 01:28:04 +0200 |
commit | 868d75cd2bdb0545518c4b651aa3f8b5953954c5 (patch) | |
tree | 049d82ce1890283eebe7c0a739f233ac896e8ab2 /ax25ipd/.gitignore | |
parent | 36ed1603c41a40308dea8ba72bd2f8be69fcc90d (diff) |
listen/opentracdump.c: Fix signedness compiler warnings.
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -Wall -MT opentracdump.o -MD -MP -MF .deps/opentracdump.Tpo -c -o opentracdump.o opentracdump.c
opentracdump.c: In function ‘decode_origination’:
opentracdump.c:70:9: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(entity_call, origin_call);
^
In file included from opentracdump.c:9:0:
/usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
opentracdump.c:70:22: warning: pointer targets in passing argument 2 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(entity_call, origin_call);
^
In file included from opentracdump.c:9:0:
/usr/include/string.h:129:14: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
opentracdump.c: In function ‘decode_entityid’:
opentracdump.c:86:10: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(entity_call, origin_call);
^
In file included from opentracdump.c:9:0:
/usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
opentracdump.c:86:23: warning: pointer targets in passing argument 2 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(entity_call, origin_call);
^
In file included from opentracdump.c:9:0:
/usr/include/string.h:129:14: note: expected ‘const char * restrict’ but argument is of type ‘unsigned char *’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
opentracdump.c: In function ‘decode_comment’:
opentracdump.c:159:1: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign]
strncpy(comment, element, element_len);
^
opentracdump.c:159:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
opentracdump.c: In function ‘decode_country’:
opentracdump.c:195:1: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign]
strncpy(country, element, 2);
^
opentracdump.c:195:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
opentracdump.c:198:2: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign]
strncpy(subdivision, element+2, element_len-2);
^
opentracdump.c:198:2: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
opentracdump.c: In function ‘decode_displayname’:
opentracdump.c:211:5: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign]
strncpy(displayname, element, element_len);
^
opentracdump.c:211:5: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
opentracdump.c: In function ‘decode_waypoint’:
opentracdump.c:221:1: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign]
strncpy(waypoint, element, element_len);
^
opentracdump.c:221:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
opentracdump.c: In function ‘decode_pathtrace’:
opentracdump.c:255:23: warning: pointer targets in passing argument 1 of ‘extract_ssid’ differ in signedness [-Wpointer-sign]
ssid = extract_ssid(callsign);
^
opentracdump.c:30:5: note: expected ‘unsigned char *’ but argument is of type ‘char *’
int extract_ssid(unsigned char *call) {
^
opentracdump.c: In function ‘decode_acreg’:
opentracdump.c:315:1: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign]
strncpy(nnumber, element, element_len);
^
opentracdump.c:315:1: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
opentracdump.c: In function ‘decode_maidenhead’:
opentracdump.c:406:3: warning: pointer targets in passing argument 2 of ‘__builtin_strncpy’ differ in signedness [-Wpointer-sign]
strncpy(maidenhead, element, element_len);
^
opentracdump.c:406:3: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
opentracdump.c: In function ‘opentrac_dump’:
opentracdump.c:452:9: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign]
strcpy(origin_call, "SENDER"); /* Listen doesn't tell us the sender */
^
In file included from opentracdump.c:9:0:
/usr/include/string.h:129:14: note: expected ‘char * restrict’ but argument is of type ‘unsigned char *’
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25ipd/.gitignore')
0 files changed, 0 insertions, 0 deletions