Use consistent naming for OOM
All checks were successful
CI / build-and-analyze (push) Successful in 1m12s

This commit is contained in:
2026-08-09 08:55:08 +03:00
parent 2811068c9c
commit f8f90f94dc
5 changed files with 15 additions and 15 deletions

View File

@@ -15,7 +15,7 @@ static int wsaToErrorCode(int value) {
case WSAENOBUFS:
case WSA_NOT_ENOUGH_MEMORY:
return CGE_NET_ENOMEM;
return CGE_NET_EOOM;
case WSAEWOULDBLOCK:
return CGE_NET_EWOULDBLOCK;
@@ -30,7 +30,7 @@ CgeNetPoll *CgeNetPollCreate(int *result) {
if (!(poll = malloc(sizeof(CgeNetPoll)))) {
if (result)
*result = CGE_NET_ENOMEM;
*result = CGE_NET_EOOM;
return NULL;
}
@@ -42,7 +42,7 @@ CgeNetPoll *CgeNetPollCreate(int *result) {
free(poll);
if (result)
*result = CGE_NET_ENOMEM;
*result = CGE_NET_EOOM;
return NULL;
}
@@ -87,7 +87,7 @@ static int ensureCapacity(CgeNetPoll *poll) {
if (!newData || !newPfd) {
free(newData);
free(newPfd);
poll->lastError = CGE_NET_ENOMEM;
poll->lastError = CGE_NET_EOOM;
return 0;
} else {
memcpy(newData, poll->data, poll->size * sizeof(struct PollData));