We always have strerror, so no need to ifdef HAVE_STRERROR.
This commit is contained in:
parent
a14ca868d0
commit
6e5f3c759f
|
@ -72,11 +72,7 @@ ASPI_OpenDevice16(SRB_ExecSCSICmd16 *prb)
|
|||
fd = open(device_str, O_RDWR);
|
||||
if (fd == -1) {
|
||||
int save_error = errno;
|
||||
#ifdef HAVE_STRERROR
|
||||
ERR("Error opening device %s, error '%s'\n", device_str, strerror(save_error));
|
||||
#else
|
||||
ERR("Error opening device %s, error %d\n", device_str, save_error);
|
||||
#endif
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -308,11 +304,7 @@ ASPI_ExecScsiCmd(DWORD ptrPRB, UINT16 mode)
|
|||
if (save_error == ENOMEM) {
|
||||
MESSAGE("ASPI: Linux generic scsi driver\n You probably need to re-compile your kernel with a larger SG_BIG_BUFF value (sg.h)\n Suggest 130560\n");
|
||||
}
|
||||
#ifdef HAVE_STRERROR
|
||||
WARN("error:= '%s'\n", strerror(save_error));
|
||||
#else
|
||||
WARN("error:= %d\n", save_error);
|
||||
#endif
|
||||
}
|
||||
goto error_exit;
|
||||
}
|
||||
|
|
|
@ -3039,11 +3039,7 @@ int WS_dup_se(LPWSINFO pwsi, struct servent* p_se, int flag)
|
|||
UINT16 wsaErrno(void)
|
||||
{
|
||||
int loc_errno = errno;
|
||||
#ifdef HAVE_STRERROR
|
||||
WARN("errno %d, (%s).\n", loc_errno, strerror(loc_errno));
|
||||
#else
|
||||
WARN("errno %d\n", loc_errno);
|
||||
#endif
|
||||
|
||||
switch(loc_errno)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue