From 4e9892478ba2a57ebf1dc57f8e9aec963015b3f1 Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Wed, 3 Apr 2013 17:29:16 +0200 Subject: [PATCH] utils: const-ify some function arguments --- src/wayland-util.c | 4 ++-- src/wayland-util.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wayland-util.c b/src/wayland-util.c index 4ab1f5a..598ab42 100644 --- a/src/wayland-util.c +++ b/src/wayland-util.c @@ -55,7 +55,7 @@ wl_list_remove(struct wl_list *elm) } WL_EXPORT int -wl_list_length(struct wl_list *list) +wl_list_length(const struct wl_list *list) { struct wl_list *e; int count; @@ -71,7 +71,7 @@ wl_list_length(struct wl_list *list) } WL_EXPORT int -wl_list_empty(struct wl_list *list) +wl_list_empty(const struct wl_list *list) { return list->next == list; } diff --git a/src/wayland-util.h b/src/wayland-util.h index 4728aaa..dbe05a5 100644 --- a/src/wayland-util.h +++ b/src/wayland-util.h @@ -105,8 +105,8 @@ struct wl_list { void wl_list_init(struct wl_list *list); void wl_list_insert(struct wl_list *list, struct wl_list *elm); void wl_list_remove(struct wl_list *elm); -int wl_list_length(struct wl_list *list); -int wl_list_empty(struct wl_list *list); +int wl_list_length(const struct wl_list *list); +int wl_list_empty(const struct wl_list *list); void wl_list_insert_list(struct wl_list *list, struct wl_list *other); #ifdef __GNUC__ -- 2.7.4