about summary refs log tree commit diff stats
path: root/src/ui/xmlwin.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-11-01 19:45:35 +0000
committerJames Booth <boothj5@gmail.com>2015-11-01 19:45:35 +0000
commitaa59cf98b8b696d0b912a6e165eaa21270165891 (patch)
tree2169f81a9e3af45c9c181f0b77d2b31ab8542841 /src/ui/xmlwin.c
parentdb4bcd3e6d6efa9bae1d85b327a9f0318177555f (diff)
downloadprofani-tty-aa59cf98b8b696d0b912a6e165eaa21270165891.tar.gz
xmlwin_show takes window as argument
Diffstat (limited to 'src/ui/xmlwin.c')
-rw-r--r--src/ui/xmlwin.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ui/xmlwin.c b/src/ui/xmlwin.c
index d793fd05..31921390 100644
--- a/src/ui/xmlwin.c
+++ b/src/ui/xmlwin.c
@@ -32,16 +32,15 @@
  *
  */
 
+#include <assert.h>
+
 #include "ui/win_types.h"
 #include "window_list.h"
 
 void
-xmlwin_show(const char *const msg)
+xmlwin_show(ProfXMLWin *xmlwin, const char *const msg)
 {
-    ProfXMLWin *xmlwin = wins_get_xmlconsole();
-    if (!xmlwin) {
-        return;
-    }
+    assert(xmlwin != NULL);
 
     ProfWin *window = (ProfWin*)xmlwin;
     if (g_str_has_prefix(msg, "SENT:")) {