[MPlayer-cvslog] r35727 - trunk/gui/wm/ws.c

ib subversion at mplayerhq.hu
Thu Jan 10 13:21:20 CET 2013


Author: ib
Date: Thu Jan 10 13:21:19 2013
New Revision: 35727

Log:
Cosmetic: Adjust parameter names to r35725 and r35726 harmonization.

Additionally, add some blank lines.

Modified:
   trunk/gui/wm/ws.c

Modified: trunk/gui/wm/ws.c
==============================================================================
--- trunk/gui/wm/ws.c	Thu Jan 10 13:04:19 2013	(r35726)
+++ trunk/gui/wm/ws.c	Thu Jan 10 13:21:19 2013	(r35727)
@@ -191,16 +191,18 @@ void wsWindowDecoration(wsTWindow *win, 
 //   Init X Window System.
 // ----------------------------------------------------------------------------------------------
 
-static int wsErrorHandler(Display *dpy, XErrorEvent *Event)
+static int wsErrorHandler(Display *display, XErrorEvent *event)
 {
     char type[128];
 
-    XGetErrorText(dpy, Event->error_code, type, 128);
+    XGetErrorText(display, event->error_code, type, 128);
+
     fprintf(stderr, "[ws] Error in display.\n");
-    fprintf(stderr, "[ws]  Error code: %d ( %s )\n", Event->error_code, type);
-    fprintf(stderr, "[ws]  Request code: %d\n", Event->request_code);
-    fprintf(stderr, "[ws]  Minor code: %d\n", Event->minor_code);
+    fprintf(stderr, "[ws]  Error code: %d ( %s )\n", event->error_code, type);
+    fprintf(stderr, "[ws]  Request code: %d\n", event->request_code);
+    fprintf(stderr, "[ws]  Minor code: %d\n", event->minor_code);
     fprintf(stderr, "[ws]  Modules: %s\n", current_module ? current_module : "(NULL)");
+
     return 0;
 }
 


More information about the MPlayer-cvslog mailing list