Page 1 of 1

[Nagios-devel] fix for nrpe 1.6 compile warning

Posted: Mon Jan 06, 2003 10:11 am
by Guest
Hi!

Just a quick bugette to be squashed in the compile for NRPE 1.6. The warning
is:

gcc -g -O2 -DHAVE_CONFIG_H -lnsl -lsocket nrpe.c utils.c -o nrpe
nrpe.c:48: warning: initialization makes integer from pointer without a cast
gcc -g -O2 -DHAVE_CONFIG_H -lnsl -lsocket check_nrpe.c utils.c -o
check_nrpe
check_nrpe.c:27: warning: initialization makes integer from pointer without
a cast

The fix is to change the line in configure.in from
AC_DEFINE_UNQUOTED(DEFAULT_SERVER_PORT,"$nrpe_port")
to
AC_DEFINE_UNQUOTED(DEFAULT_SERVER_PORT,$nrpe_port)

Ton


This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]