[balsa/gtk3] Constify two strings



commit 1824765ac180b182805d1b379228c8f625f65924
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Mon Apr 8 16:59:43 2013 -0400

    Constify two strings
    
        * libbalsa/send.c (libbalsa_set_message_id): constify two
        strings.

 ChangeLog       |    5 +++++
 libbalsa/send.c |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c0b7070..0eadf52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-08  Peter Bloomfield
+
+       * libbalsa/send.c (libbalsa_set_message_id): constify two
+       strings.
+
 2013-04-07  Peter Bloomfield
 
        * src/balsa-mime-widget-message.c (bmwm_set_headers_d_idle_cb),
diff --git a/libbalsa/send.c b/libbalsa/send.c
index f97e9bb..811d804 100644
--- a/libbalsa/send.c
+++ b/libbalsa/send.c
@@ -2026,11 +2026,11 @@ static void
 libbalsa_set_message_id(GMimeMessage * mime_message)
 {
     struct utsname utsbuf;
-    gchar *host = "localhost";
+    const gchar *host = "localhost";
     gchar *message_id;
 #ifdef _GNU_SOURCE
     gchar *fqdn;
-    gchar *domain = "localdomain";
+    const gchar *domain = "localdomain";
 
     /* In an ideal world, uname() allows us to make a FQDN. */
     if (uname(&utsbuf) == 0) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]