summaryrefslogtreecommitdiff
path: root/src/ActionHook.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2005-02-21 21:08:27 +0000
committerMatthieu Herrb <matthieu.herrb@laas.fr>2005-02-21 21:08:27 +0000
commit85eb751e4e1683af6cee3ee9dce29f74911a639d (patch)
treeb40f699ee646462a8f223b919ba68dda1d8fc371 /src/ActionHook.c
parent94150cb72d9d641c64325cd70323d93b9a3701a5 (diff)
Convert lib/Xt to ANSI C (Thomas Dickey). Fixes for a few valgrind warningsXORG-6_8_99_3XORG-6_8_99_2XORG-6_8_99_1
(Thomas Dickey).
Diffstat (limited to 'src/ActionHook.c')
-rw-r--r--src/ActionHook.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ActionHook.c b/src/ActionHook.c
index 32aca9c..2845fed 100644
--- a/src/ActionHook.c
+++ b/src/ActionHook.c
@@ -8,13 +8,13 @@ Copyright 1993 by Sun Microsystems, Inc. Mountain View, CA.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the names of Digital or Sun not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -84,10 +84,10 @@ static void FreeActionHookList(
}
-XtActionHookId XtAppAddActionHook( app, proc, closure )
- XtAppContext app;
- XtActionHookProc proc;
- XtPointer closure;
+XtActionHookId XtAppAddActionHook(
+ XtAppContext app,
+ XtActionHookProc proc,
+ XtPointer closure)
{
ActionHook hook = XtNew(ActionHookRec);
LOCK_APP(app);
@@ -107,8 +107,8 @@ XtActionHookId XtAppAddActionHook( app, proc, closure )
}
-void XtRemoveActionHook( id )
- XtActionHookId id;
+void XtRemoveActionHook(
+ XtActionHookId id)
{
ActionHook *p, hook = (ActionHook)id;
XtAppContext app = hook->app;