Print this page
8485 Remove set but unused variables in usr/src/cmd
@@ -1,6 +1,7 @@
/*
+ * Copyright 2017 Gary Mills
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Academic Free License version 2.1
*/
@@ -111,11 +112,11 @@
}
static char *
pseudo_serialno_from_addr(char *name)
{
- int sd, rc, errnum;
+ int sd, errnum;
char buf[128];
struct hostent *hp;
struct xarpreq ar;
if (name == NULL)
@@ -138,11 +139,11 @@
}
sd = socket(AF_INET, SOCK_DGRAM, 0);
ar.xarp_ha.sdl_family = AF_LINK;
- rc = ioctl(sd, SIOCGXARP, (caddr_t)&ar);
+ (void) ioctl(sd, SIOCGXARP, (caddr_t)&ar);
close(sd);
if (ar.xarp_flags & ATF_COM) { /* use the MAC address */
uchar_t *ea = (uchar_t *)LLADDR(&ar.xarp_ha);