diff options
author | Karl Ramm <kcr@mit.edu> | 2008-01-21 03:11:44 +0000 |
---|---|---|
committer | Karl Ramm <kcr@mit.edu> | 2008-01-21 03:11:44 +0000 |
commit | b6ea75cfc9712b77a0886c4348d6fb519641e40e (patch) | |
tree | 65f68bb2db7c6118e80670cd5edc297159f43409 /zwgc/xerror.c | |
parent | 71f70d3066d1c038e1794c4ffe804591eda3d1af (diff) |
de K&Rify, fix prototypes
Diffstat (limited to 'zwgc/xerror.c')
-rw-r--r-- | zwgc/xerror.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/zwgc/xerror.c b/zwgc/xerror.c index 33e389a..4a5a0ae 100644 --- a/zwgc/xerror.c +++ b/zwgc/xerror.c @@ -27,24 +27,24 @@ static const char rcsid_xerror_c[] = "$Id$"; int xerror_happened; /*ARGSUSED*/ -static int xerrortrap(dpy,xerrev) - Display *dpy; - XErrorEvent *xerrev; +static int +xerrortrap(Display *dpy, + XErrorEvent *xerrev) { xerror_happened = 1; return 0; } /*ARGSUSED*/ -void begin_xerror_trap(dpy) - Display *dpy; +void +begin_xerror_trap(Display *dpy) { xerror_happened = 0; XSetErrorHandler(xerrortrap); } -void end_xerror_trap(dpy) - Display *dpy; +void +end_xerror_trap(Display *dpy) { XSync(dpy,False); XSetErrorHandler(NULL); |