aboutsummaryrefslogtreecommitdiffstats
path: root/src/wayland-util.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason@jlekstrand.net>2013-06-05 16:39:51 -0500
committerKristian Høgsberg <krh@bitplanet.net>2013-06-05 17:45:47 -0400
commit2d586a759eeb7890f76e091791acd86b669061df (patch)
tree6ffaef338ea22efabab3a7753911ce95fb0d41b7 /src/wayland-util.c
parentChange WL_ZOMBIE_OBJECT from 0x2 to an actual pointer (diff)
downloadwayland-2d586a759eeb7890f76e091791acd86b669061df.tar
wayland-2d586a759eeb7890f76e091791acd86b669061df.tar.gz
wayland-2d586a759eeb7890f76e091791acd86b669061df.tar.bz2
wayland-2d586a759eeb7890f76e091791acd86b669061df.tar.lz
wayland-2d586a759eeb7890f76e091791acd86b669061df.tar.xz
wayland-2d586a759eeb7890f76e091791acd86b669061df.tar.zst
wayland-2d586a759eeb7890f76e091791acd86b669061df.zip
Remove incorrect sanity-check from wl_map_insert_at
I got a little over-eager with my sanity checks and didn't realize that the client uses wl_map_insert_at to mark objects as zombies when they come from the server-side. Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/wayland-util.c')
-rw-r--r--src/wayland-util.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/wayland-util.c b/src/wayland-util.c
index 7a0b268..4fe9c81 100644
--- a/src/wayland-util.c
+++ b/src/wayland-util.c
@@ -211,14 +211,8 @@ wl_map_insert_at(struct wl_map *map, uint32_t flags, uint32_t i, void *data)
struct wl_array *entries;
if (i < WL_SERVER_ID_START) {
- if (map->side == WL_MAP_CLIENT_SIDE)
- return -1;
-
entries = &map->client_entries;
} else {
- if (map->side == WL_MAP_SERVER_SIDE)
- return -1;
-
entries = &map->server_entries;
i -= WL_SERVER_ID_START;
}