[nut-Bugs][312450] Compile warning on HPUX IA64 for clients/upsclient.c
nut-bugs at alioth.debian.org
nut-bugs at alioth.debian.org
Fri Apr 9 12:44:29 UTC 2010
Bugs item #312450, was changed at 2010-04-09 18:10 by Chetan Agarwal
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=411542&aid=312450&group_id=30602
Status: Open
Priority: 3
Submitted By: Chetan Agarwal (chetanagarwal-guest)
Assigned to: Nobody (None)
Summary: Compile warning on HPUX IA64 for clients/upsclient.c
Category: None
Group: None
Resolution: None
Initial Comment:
Following warning is received while compiling clients/upsclient.c
upsclient.c: In function 'upscli_splitname':
upsclient.c:952: warning: implicit declaration of function 'strtok_r'
upsclient.c:952: warning: passing argument 1 of 'strdup' makes pointer from integer without a cast
upsclient.c: In function 'upscli_splitaddr':
upsclient.c:992: warning: passing argument 1 of 'strdup' makes pointer from integer without a cast
upsclient.c:998: warning: assignment makes pointer from integer without a cast
upsclient.c:1005: warning: passing argument 1 of 'strdup' makes pointer from integer without a cast
----------------------------------------------------------------------
>Comment By: Chetan Agarwal (chetanagarwal-guest)
Date: 2010-04-09 18:14
Message:
Compiler should use "strtok_r" from string.h, but used some other library.
Passing -D_REENTRANT to the compiler should resolve this issue.
Please suggest.
----------------------------------------------------------------------
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=411542&aid=312450&group_id=30602
More information about the NUT-tracker
mailing list