auth.c: In function ‘start_link’:
auth.c:556:11: warning: variable ‘msg’ set but not used [-Wunused-but-set-variable]
utils.c: In function ‘logit’:
utils.c:655:9: warning: variable ‘n’ set but not used [-Wunused-but-set-variable]
sys-linux.c: In function ‘ether_to_eui64’:
sys-linux.c:2881:9: warning: pointer targets in assignment differ in signedness [-Wpointer-sign]
Signed-off-by: Paul Mackerras <paulus@samba.org>
void start_link(unit)
int unit;
{
void start_link(unit)
int unit;
{
new_phase(PHASE_SERIALCONN);
hungup = 0;
devfd = the_channel->connect();
new_phase(PHASE_SERIALCONN);
hungup = 0;
devfd = the_channel->connect();
- msg = "Connect script failed";
if (devfd < 0)
goto fail;
if (devfd < 0)
goto fail;
* gives us. Thus we don't need the tdb_writelock/tdb_writeunlock.
*/
fd_ppp = the_channel->establish_ppp(devfd);
* gives us. Thus we don't need the tdb_writelock/tdb_writeunlock.
*/
fd_ppp = the_channel->establish_ppp(devfd);
- msg = "ppp establishment failed";
if (fd_ppp < 0) {
status = EXIT_FATAL_ERROR;
goto disconnect;
if (fd_ppp < 0) {
status = EXIT_FATAL_ERROR;
goto disconnect;
/*
* And convert the EUI-48 into EUI-64, per RFC 2472 [sec 4.1]
*/
/*
* And convert the EUI-48 into EUI-64, per RFC 2472 [sec 4.1]
*/
- ptr = ifr.ifr_hwaddr.sa_data;
+ ptr = (unsigned char *) ifr.ifr_hwaddr.sa_data;
p_eui64->e8[0] = ptr[0] | 0x02;
p_eui64->e8[1] = ptr[1];
p_eui64->e8[2] = ptr[2];
p_eui64->e8[0] = ptr[0] | 0x02;
p_eui64->e8[1] = ptr[1];
p_eui64->e8[2] = ptr[2];
char *fmt;
va_list args;
{
char *fmt;
va_list args;
{
- n = vslprintf(buf, sizeof(buf), fmt, args);
+ vslprintf(buf, sizeof(buf), fmt, args);