Move appropriate variables to NO_COPY segment, throughout.
This commit is contained in:
@@ -286,7 +286,7 @@ struct tl
|
||||
int e;
|
||||
};
|
||||
|
||||
static struct tl errmap[] =
|
||||
static NO_COPY struct tl errmap[] =
|
||||
{
|
||||
{WSAEINTR, "WSAEINTR", EINTR},
|
||||
{WSAEWOULDBLOCK, "WSAEWOULDBLOCK", EWOULDBLOCK},
|
||||
@@ -356,7 +356,7 @@ __set_winsock_errno (const char *fn, int ln)
|
||||
* Since the member `s' isn't used for debug output we can use it
|
||||
* for the error text returned by herror and hstrerror.
|
||||
*/
|
||||
static struct tl host_errmap[] =
|
||||
const static NO_COPY struct tl host_errmap[] =
|
||||
{
|
||||
{WSAHOST_NOT_FOUND, "Unknown host", HOST_NOT_FOUND},
|
||||
{WSATRY_AGAIN, "Host name lookup failure", TRY_AGAIN},
|
||||
|
Reference in New Issue
Block a user