From a6be16b9d35efa24e4ab7e4e5ea4edb3dd032dad Mon Sep 17 00:00:00 2001 From: Slawomir Bochenski Date: Thu, 12 Apr 2012 20:53:27 +0200 Subject: [PATCH] obexd: Mark filter strings const This structure is used for giving filters as input argument to messages_get_messages_listing(). There is no need for the string members to be modifiable in this context. And making them const plays well with map_ap_get_string(), from which the values of these members are going to be retrieved. The string pointers here are simply references to data held in map_ap_t *inparams. --- obexd/plugins/messages.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/obexd/plugins/messages.h b/obexd/plugins/messages.h index 00a040c6a..2cdd92f7e 100644 --- a/obexd/plugins/messages.h +++ b/obexd/plugins/messages.h @@ -111,11 +111,11 @@ struct messages_event { struct messages_filter { uint32_t parameter_mask; uint8_t type; - char *period_begin; - char *period_end; + const char *period_begin; + const char *period_end; uint8_t read_status; - char *recipient; - char *originator; + const char *recipient; + const char *originator; uint8_t priority; }; -- 2.47.3