From: Lennart Poettering Date: Fri, 9 Sep 2005 20:53:40 +0000 (+0000) Subject: drp const from text accessor functons in strlst.c X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=79ae5a976987130b9b6eb4920e2656d8ef4fe37c;p=catta drp const from text accessor functons in strlst.c git-svn-id: file:///home/lennart/svn/public/avahi/trunk@551 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-common/strlst.c b/avahi-common/strlst.c index 72a0059..5bde68a 100644 --- a/avahi-common/strlst.c +++ b/avahi-common/strlst.c @@ -452,7 +452,7 @@ AvahiStringList *avahi_string_list_get_next(AvahiStringList *l) { return l->next; } -const uint8_t *avahi_string_list_get_text(AvahiStringList *l) { +uint8_t *avahi_string_list_get_text(AvahiStringList *l) { assert(l); return l->text; } diff --git a/avahi-common/strlst.h b/avahi-common/strlst.h index 0f8c8d4..2c39351 100644 --- a/avahi-common/strlst.h +++ b/avahi-common/strlst.h @@ -137,7 +137,7 @@ AvahiStringList *avahi_string_list_add_pair_arbitrary(AvahiStringList *l, const AvahiStringList *avahi_string_list_get_next(AvahiStringList *l); /** Returns the text for the current item */ -const uint8_t *avahi_string_list_get_text(AvahiStringList *l); +uint8_t *avahi_string_list_get_text(AvahiStringList *l); /** Returns the size of the current text */ size_t avahi_string_list_get_size(AvahiStringList *l);