diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2024-06-02 21:45:43 +0200 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2024-06-04 23:59:43 +0200 |
commit | f54d46a7fa14db58d7b8359ee55642f8d776c543 (patch) | |
tree | 5a83e4027bbb4377a56eb7272a7491666ce718f7 /nx-X11/programs | |
parent | 13ef42916efa4f4d7acb4f749c4e770774dbf8c4 (diff) | |
download | nx-libs-f54d46a7fa14db58d7b8359ee55642f8d776c543.tar.gz nx-libs-f54d46a7fa14db58d7b8359ee55642f8d776c543.tar.bz2 nx-libs-f54d46a7fa14db58d7b8359ee55642f8d776c543.zip |
NXresource.c: make nxagentSwitchResourceType return a Boolean
Diffstat (limited to 'nx-X11/programs')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/NXresource.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/NXresource.c b/nx-X11/programs/Xserver/hw/nxagent/NXresource.c index 8442db0cb..4d31ed49a 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/NXresource.c +++ b/nx-X11/programs/Xserver/hw/nxagent/NXresource.c @@ -164,7 +164,7 @@ Bool nxagentFindClientResource(int client, RESTYPE type, void * value) return False; } -int nxagentSwitchResourceType(int client, RESTYPE type, void * value) +Bool nxagentSwitchResourceType(int client, RESTYPE type, void * value) { RESTYPE internalType = 0; @@ -182,7 +182,7 @@ int nxagentSwitchResourceType(int client, RESTYPE type, void * value) } else { - return 0; + return False; } if (client == serverClient -> index) @@ -192,7 +192,7 @@ int nxagentSwitchResourceType(int client, RESTYPE type, void * value) client); #endif - return 0; + return False; } for (int i = 0; i < clientTable[serverClient -> index].buckets; i++) @@ -212,12 +212,12 @@ int nxagentSwitchResourceType(int client, RESTYPE type, void * value) FreeResource(pResource -> id, RT_NONE); - return 1; + return True; } } } - return 0; + return False; } #endif /* NXAGENT_SERVER */ |