From b2385010b5b81bd66b840802eb36b5a0945eba8b Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 9 May 2012 23:22:48 +0100 Subject: Added const qualifiers to contact module --- contact.c | 6 +++--- contact.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contact.c b/contact.c index 002cb264..bc0f8344 100644 --- a/contact.c +++ b/contact.c @@ -67,17 +67,17 @@ void p_contact_free(PContact contact) contact = NULL; } -char * p_contact_name(PContact contact) +const char * p_contact_name(const PContact contact) { return contact->name; } -char * p_contact_show(PContact contact) +const char * p_contact_show(const PContact contact) { return contact->show; } -char * p_contact_status(PContact contact) +const char * p_contact_status(const PContact contact) { return contact->status; } diff --git a/contact.h b/contact.h index 86ed1117..195acf40 100644 --- a/contact.h +++ b/contact.h @@ -28,8 +28,8 @@ typedef struct p_contact_t *PContact; PContact p_contact_new(const char * const name, const char * const show, const char * const status); void p_contact_free(PContact contact); -char * p_contact_name(PContact contact); -char * p_contact_show(PContact contact); -char * p_contact_status(PContact contact); +const char * p_contact_name(PContact contact); +const char * p_contact_show(PContact contact); +const char * p_contact_status(PContact contact); #endif -- cgit 1.4.1-2-gfad0