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 23:51:21 +0200
commit681069d7a42d955a3cbe302f40564f4266185908 (patch)
treee95317e626d2a1e5265d5094877a81f11ee788b4
parentd8a25946ef06217c10d6a5c7caf693f6bfd24c8b (diff)
downloadnx-libs-681069d7a42d955a3cbe302f40564f4266185908.tar.gz
nx-libs-681069d7a42d955a3cbe302f40564f4266185908.tar.bz2
nx-libs-681069d7a42d955a3cbe302f40564f4266185908.zip
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.
-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();