Move appropriate variables to NO_COPY segment, throughout.

This commit is contained in:
Christopher Faylor
2001-09-06 05:17:22 +00:00
parent 08b78edf5a
commit 57c89867f5
17 changed files with 31 additions and 27 deletions

View File

@@ -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},