diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2017-03-10 22:47:18 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2017-03-11 09:42:02 +0100 |
commit | d8bc49135d57185da38e82bc71d916655f7941e3 (patch) | |
tree | 6cf22a0b4268041aa1a8339d87121cba6301c798 /nx-X11/programs/Xserver | |
parent | 320cece2e97035665d4df5e382ea45e5a7f07efa (diff) | |
download | nx-libs-d8bc49135d57185da38e82bc71d916655f7941e3.tar.gz nx-libs-d8bc49135d57185da38e82bc71d916655f7941e3.tar.bz2 nx-libs-d8bc49135d57185da38e82bc71d916655f7941e3.zip |
Keystroke.c: use Bool type where appropriate
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Keystroke.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c b/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c index 6237b9dac..9cb08e892 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c @@ -139,7 +139,7 @@ struct nxagentSpecialKeystrokeMap default_map[] = { }; struct nxagentSpecialKeystrokeMap *map = default_map; -static int modifier_matches(unsigned int mask, int compare_alt_meta, unsigned int state) +static Bool modifier_matches(unsigned int mask, int compare_alt_meta, unsigned int state) { /* nxagentAltMetaMask needs special handling * it seems to me its an and-ed mask of all possible meta and alt keys @@ -147,11 +147,11 @@ static int modifier_matches(unsigned int mask, int compare_alt_meta, unsigned in * * otherwise this function would be just a simple bitop */ - int ret = 1; + Bool ret = True; if (compare_alt_meta) { if (! (state & nxagentAltMetaMask)) { - ret = 0; + ret = False; } mask &= ~nxagentAltMetaMask; @@ -159,7 +159,7 @@ static int modifier_matches(unsigned int mask, int compare_alt_meta, unsigned in /* all modifiers except meta/alt have to match exactly, extra bits are evil */ if ((mask & state) != mask) { - ret = 0; + ret = False; } return ret; |