diff options
| author | Simo Sorce <simo@redhat.com> | 2013-03-05 10:12:10 -0500 |
|---|---|---|
| committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-03-05 18:52:22 +0100 |
| commit | 0c16d2eefbc6ac8331078a4cdcecfee817a71bc6 (patch) | |
| tree | e670967d771738bb2f1cb991d68c366e824325b9 /src/lib | |
| parent | 2ba16c5a5c4b6d3cd2a44179186ec60eda828bcd (diff) | |
| download | sssd-0c16d2eefbc6ac8331078a4cdcecfee817a71bc6.tar.gz sssd-0c16d2eefbc6ac8331078a4cdcecfee817a71bc6.tar.xz sssd-0c16d2eefbc6ac8331078a4cdcecfee817a71bc6.zip | |
Improve IS_SSSD_ERROR() macro
We need to mask the first part with 0xFFFF or there is a slight chance an
unrelated error code would match even if the upper part is not exactly
equal to ERR_BASE but just has all it's bits and some more.
Also make the macro more reasable by adding another helper macro for filtering
the base.
Finally compare err and ERR_LAST directly w/o masking err, or the comparison
will always return true.
Diffstat (limited to 'src/lib')
0 files changed, 0 insertions, 0 deletions
