Commit 681069d7 authored by Mike Gabriel's avatar Mike Gabriel

nxcompshad/Shadow.cpp: Use EBADF instead of EBADFD (which is not portable to…

nxcompshad/Shadow.cpp: Use EBADF instead of EBADFD (which is not portable to GNU/Hurd and GNU/kFreeBSD). We use the error code (and its underlying message for generating log errors and their textual messages. So, in theory, we could use any error code here. Thus, choosing the once closest to EBADFD while being portable to non-Linux systems.
parent d8a25946
......@@ -144,7 +144,7 @@ static int NXCreatePoller(Display *display, Display **shadowDisplay)
if (input == NULL)
{
logError("NXCreatePoller", ESET(EBADFD));
logError("NXCreatePoller", ESET(EBADF));
return -1;
}
......@@ -179,7 +179,7 @@ static int NXCreateUpdateManager()
if (input == NULL || poller == NULL)
{
logError("NXCreateUpdateManager", ESET(EBADFD));
logError("NXCreateUpdateManager", ESET(EBADF));
return -1;
}
......@@ -354,7 +354,7 @@ void NXShadowHandleInput()
if (NXShadowNotInitialized())
{
logError("NXShadowHandleInput - NXShadow not properly initialized.", ESET(EBADFD));
logError("NXShadowHandleInput - NXShadow not properly initialized.", ESET(EBADF));
return;
}
......@@ -374,7 +374,7 @@ int NXShadowHasChanged(int (*callback)(void *), void *arg, int *suspended)
if (NXShadowNotInitialized())
{
logError("NXShadowHasChanged - NXShadow not properly initialized.", ESET(EBADFD));
logError("NXShadowHasChanged - NXShadow not properly initialized.", ESET(EBADF));
return -1;
}
......@@ -415,7 +415,7 @@ void NXShadowExportChanges(long *numRects, char **pBox)
if (NXShadowNotInitialized())
{
logError("NXShadowExportChanges - NXShadow not properly initialized.", ESET(EBADFD));
logError("NXShadowExportChanges - NXShadow not properly initialized.", ESET(EBADF));
}
updateManager -> update();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment