aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-04-13 12:01:07 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-05-04 09:00:16 +0200
commit9525b54e2016852f35b0d603f62e988660ca12c0 (patch)
treef4a5ff45830a6a3d1511767ff6faeefb1e231891
parentebfdeaa92076bc6e5296f6fe94982734514c3a07 (diff)
downloadnx-libs-9525b54e2016852f35b0d603f62e988660ca12c0.tar.gz
nx-libs-9525b54e2016852f35b0d603f62e988660ca12c0.tar.bz2
nx-libs-9525b54e2016852f35b0d603f62e988660ca12c0.zip
nxcompshad/Shadow.cpp: Use EBADF instead of EBADFD (which is not portable to GNU/Hurd and GNU/kFreeBSD).pr/gnu-hurd-i386-support
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.
-rw-r--r--nxcompshad/Shadow.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/nxcompshad/Shadow.cpp b/nxcompshad/Shadow.cpp
index 4a28f2c52..643a5a807 100644
--- a/nxcompshad/Shadow.cpp
+++ b/nxcompshad/Shadow.cpp
@@ -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();