Changeset 63533 in vbox
- Timestamp:
- Aug 16, 2016 10:08:50 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/apps/adpctl/VBoxNetAdpCtl.cpp
r62538 r63533 205 205 } 206 206 207 static int doIOCtl(unsigned long uCmd, VBOXNETADPREQ *pReq) 207 208 #ifndef RT_OS_SOLARIS 209 static int doIOCtl(unsigned long iCmd, VBOXNETADPREQ *pReq) 208 210 { 209 211 int fd = open(VBOXNETADP_CTL_DEV_NAME, O_RDWR); … … 211 213 { 212 214 fprintf(stderr, "VBoxNetAdpCtl: Error while %s %s: ", 213 uCmd == VBOXNETADP_CTL_REMOVE ? "removing" : "adding",215 iCmd == VBOXNETADP_CTL_REMOVE ? "removing" : "adding", 214 216 pReq->szName[0] ? pReq->szName : "new interface"); 215 217 perror("failed to open " VBOXNETADP_CTL_DEV_NAME); … … 217 219 } 218 220 219 int rc = ioctl(fd, uCmd, pReq);221 int rc = ioctl(fd, iCmd, pReq); 220 222 if (rc == -1) 221 223 { 222 224 fprintf(stderr, "VBoxNetAdpCtl: Error while %s %s: ", 223 uCmd == VBOXNETADP_CTL_REMOVE ? "removing" : "adding",225 iCmd == VBOXNETADP_CTL_REMOVE ? "removing" : "adding", 224 226 pReq->szName[0] ? pReq->szName : "new interface"); 225 227 perror("VBoxNetAdpCtl: ioctl failed for " VBOXNETADP_CTL_DEV_NAME); … … 231 233 return rc; 232 234 } 235 #endif /* !RT_OS_SOLARIS */ 236 233 237 234 238 static int checkAdapterName(const char *pcszNameIn, char *pszNameOut)
Note:
See TracChangeset
for help on using the changeset viewer.