diff options
author | Marek Olšák <[email protected]> | 2020-02-05 14:19:40 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-02-26 20:35:50 +0000 |
commit | 10d235a84319ed4137fe0c6d22d8bb9a52d3174a (patch) | |
tree | c94bab5f33fbf4b5f16ca4a7ca5940a67fb7def4 /src/gallium/winsys/svga/drm | |
parent | 76dff2fabe065b71f0d336cb43853335dd3eb82a (diff) |
gallium/hash_table: use the same callback signatures as util/hash_table
Reviewed-by: Kristian H. Kristensen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3722>
Diffstat (limited to 'src/gallium/winsys/svga/drm')
-rw-r--r-- | src/gallium/winsys/svga/drm/vmw_screen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/winsys/svga/drm/vmw_screen.c b/src/gallium/winsys/svga/drm/vmw_screen.c index e3440bfd957..5f68a894673 100644 --- a/src/gallium/winsys/svga/drm/vmw_screen.c +++ b/src/gallium/winsys/svga/drm/vmw_screen.c @@ -43,13 +43,13 @@ static struct util_hash_table *dev_hash = NULL; -static int vmw_dev_compare(void *key1, void *key2) +static bool vmw_dev_compare(const void *key1, const void *key2) { return (major(*(dev_t *)key1) == major(*(dev_t *)key2) && - minor(*(dev_t *)key1) == minor(*(dev_t *)key2)) ? 0 : 1; + minor(*(dev_t *)key1) == minor(*(dev_t *)key2)); } -static unsigned vmw_dev_hash(void *key) +static uint32_t vmw_dev_hash(const void *key) { return (major(*(dev_t *) key) << 16) | minor(*(dev_t *) key); } |