summaryrefslogtreecommitdiffstats
path: root/src/util/mmap_cache.h
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2016-06-16 17:40:50 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2016-06-29 12:18:57 +0200
commitb54cd7caf6b73b36b68fcefc0cad39a626690398 (patch)
tree54e2e842cde33274d15b6554b144282ba33fa005 /src/util/mmap_cache.h
parentbdadcaf271818e88e56e86c2bd90663a08fd9721 (diff)
downloadsssd-b54cd7caf6b73b36b68fcefc0cad39a626690398.tar.gz
sssd-b54cd7caf6b73b36b68fcefc0cad39a626690398.tar.xz
sssd-b54cd7caf6b73b36b68fcefc0cad39a626690398.zip
Downcast to errno_t after tevent_req_is_error
Functions tevent_req_is_error and _tevent_req_error use type uint64_t for error code. SSSD uses errno_t which is an alias for int. Therefore complier assumes that macro TEVENT_REQ_RETURN_ON_ERROR can return 0 due to implicit down casting from uint64_t -> int. This patch makes down casting explicit and returns EINVAL if result of downcasting is 0. Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src/util/mmap_cache.h')
0 files changed, 0 insertions, 0 deletions