Fix incorrect name of _notmuch_thread_get_subject.
authorCarl Worth <cworth@cworth.org>
Tue, 27 Oct 2009 03:11:58 +0000 (20:11 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 27 Oct 2009 03:11:58 +0000 (20:11 -0700)
Somehow this naming with an underscore crept in, (but only in the
private header, so notmuch.c was compiling with no prototype). Fix
to be the notmuch_thread_get_subject originally intended.

notmuch-private.h
notmuch.c
thread.cc

index 42f8d2756f7258b9145e12ff4b2d46e959ab1b22..c80f219a150c0f8456b890280d693b9d143d37ba 100644 (file)
@@ -160,9 +160,6 @@ _notmuch_thread_add_tag (notmuch_thread_t *thread, const char *tag);
 void
 _notmuch_thread_set_subject (notmuch_thread_t *thread, const char *subject);
 
-const char *
-_notmuch_thread_get_subject (notmuch_thread_t *thread);
-
 /* message.cc */
 
 notmuch_message_t *
index ae1d5976b71f426329e09964b9c412ba854ab606..c432d0d7863883e3f4df9274fc3ab2a5e4bf0863 100644 (file)
--- a/notmuch.c
+++ b/notmuch.c
@@ -653,7 +653,7 @@ search_command (int argc, char *argv[])
 
        printf ("%s %s",
                notmuch_thread_get_thread_id (thread),
-               _notmuch_thread_get_subject (thread));
+               notmuch_thread_get_subject (thread));
 
        printf (" (");
        for (tags = notmuch_thread_get_tags (thread);
index 9b49c5502fe544479f82479aed4cfe002805777d..e4c9e111a7c4af21901a6cadbf0df4543ce86697 100644 (file)
--- a/thread.cc
+++ b/thread.cc
@@ -96,7 +96,7 @@ _notmuch_thread_set_subject (notmuch_thread_t *thread, const char *subject)
 }
 
 const char *
-_notmuch_thread_get_subject (notmuch_thread_t *thread)
+notmuch_thread_get_subject (notmuch_thread_t *thread)
 {
     return thread->subject;
 }