about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-07-20 23:35:48 +0100
committerJames Booth <boothj5@gmail.com>2014-07-20 23:35:48 +0100
commitbb0fe16b4d4d6649378304b31b336fa0eb68e4e3 (patch)
tree1083e7c80d416f268d18bcd3ee2286fe0482f17e
parent5ce08adff6b7e9cd5a03418860b2fc6ce0c84b99 (diff)
downloadprofani-tty-bb0fe16b4d4d6649378304b31b336fa0eb68e4e3.tar.gz
Made win_print static
-rw-r--r--src/ui/window.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ui/window.c b/src/ui/window.c
index d50f7bce..1c3606b6 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -37,6 +37,10 @@
 #include "ui/window.h"
 #include "xmpp/xmpp.h"
 
+static void _win_print(ProfWin *window, const char show_char, const char * const date_fmt,
+    int flags, int attrs, const char * const from, const char * const message);
+
+
 ProfWin*
 win_create(const char * const title, int cols, win_type_t type)
 {
@@ -358,12 +362,12 @@ win_save_print(ProfWin *window, const char show_char, GTimeVal *tstamp,
 
     g_date_time_unref(time);
     buffer_push(window->buffer, show_char, date_fmt, flags, attrs, from, message);
-    win_print(window, show_char, date_fmt, flags, attrs, from, message);
+    _win_print(window, show_char, date_fmt, flags, attrs, from, message);
     g_free(date_fmt);
 }
 
-void
-win_print(ProfWin *window, const char show_char, const char * const date_fmt,
+static void
+_win_print(ProfWin *window, const char show_char, const char * const date_fmt,
     int flags, int attrs, const char * const from, const char * const message)
 {
     // flags : 1st bit =  0/1 - me/not me
@@ -424,6 +428,6 @@ win_redraw(ProfWin *window)
 
     for (i = 0; i < size; i++) {
         ProfBuffEntry *e = buffer_yield_entry(window->buffer, i);
-        win_print(window, e->show_char, e->date_fmt, e->flags, e->attrs, e->from, e->message);
+        _win_print(window, e->show_char, e->date_fmt, e->flags, e->attrs, e->from, e->message);
     }
 }