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,121 **** } static char * pseudo_serialno_from_addr(char *name) { ! int sd, rc, errnum; char buf[128]; struct hostent *hp; struct xarpreq ar; if (name == NULL) --- 112,122 ---- } static char * pseudo_serialno_from_addr(char *name) { ! int sd, errnum; char buf[128]; struct hostent *hp; struct xarpreq ar; if (name == NULL)
*** 138,148 **** } sd = socket(AF_INET, SOCK_DGRAM, 0); ar.xarp_ha.sdl_family = AF_LINK; ! rc = 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); --- 139,149 ---- } sd = socket(AF_INET, SOCK_DGRAM, 0); ar.xarp_ha.sdl_family = AF_LINK; ! (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);