I added more detail to the `Authentication failed at PuTTY X11
[u/mdw/putty] / mac / macevlog.c
index 7eb047e..43a2658 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: macevlog.c,v 1.5 2003/02/23 13:00:38 ben Exp $ */
+/* $Id: macevlog.c,v 1.8 2003/05/04 14:18:18 simon Exp $ */
 /*
  * Copyright (c) 2003 Ben Harris
  * All rights reserved.
@@ -58,7 +58,7 @@ static void mac_createeventlog(Session *s)
     WinInfo *wi;
 
     s->eventlog_window = GetNewWindow(wEventLog, NULL, (WindowPtr)-1);
-    wi = smalloc(sizeof(*wi));
+    wi = snew(WinInfo);
     memset(wi, 0, sizeof(*wi));
     wi->s = s;
     wi->wtype = wEventLog;
@@ -101,16 +101,9 @@ void mac_freeeventlog(Session *s)
     }
 }
 
-/*
- * FIXME: logevent() should be passed a frontend handle, but backends have to
- * have a terminal handle instead, because they pass it to from_backend(),
- * so we accept a terminal handle here as well, and hope no-one tries to call
- * us with sensible arguments.
- */
-void logevent(void *frontend, char *str)
+void logevent(void *frontend, const char *str)
 {
-    Terminal *term = frontend;
-    Session *s = term->frontend;
+    Session *s = frontend;
     ListBounds bounds, visible;
     Cell cell = { 0, 0 };