about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--contact.c6
-rw-r--r--contact.h6
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