[nut-Bugs][312450] Compile warning on HPUX IA64 for clients/upsclient.c

nut-bugs at alioth.debian.org nut-bugs at alioth.debian.org
Mon Mar 21 18:56:11 UTC 2011


Bugs item #312450, was changed at 2010-04-09 14:40 by Arjen de Korte
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411542&aid=312450&group_id=30602

>Status: Closed
Priority: 3
Submitted By: Chetan Agarwal (chetanagarwal-guest)
>Assigned to: Arjen de Korte (adkorte-guest)
Summary: Compile warning on HPUX IA64 for clients/upsclient.c 
Category: None
Group: None
>Resolution: Fixed


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: Arjen de Korte (adkorte-guest)
Date: 2011-03-21 19:56

Message:
I've added this to configure.in in r2933. The HP-UX buildbot no longer seems to complain about this, so I'm closing this.

----------------------------------------------------------------------

Comment By: Chetan Agarwal (chetanagarwal-guest)
Date: 2010-04-09 14:44

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