about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-05-09 23:22:48 +0100
committerJames Booth <boothj5@gmail.com>2012-05-09 23:22:48 +0100
commitb2385010b5b81bd66b840802eb36b5a0945eba8b (patch)
tree757d2cfdc2980f61f5a5d01f7987193234129766
parentfcbc7e489278c393965dcff7c68d5c008053e0ae (diff)
downloadprofani-tty-b2385010b5b81bd66b840802eb36b5a0945eba8b.tar.gz
Added const qualifiers to contact module
-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