summaryrefslogtreecommitdiff
path: root/src/Selection.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-30 18:22:10 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-30 18:22:10 -0200
commitf56a69f2cf7df1e7cdf2494c5408786e53467374 (patch)
treec2b4d72f8bd8af0de6efdccd7ae8e3028c654d08 /src/Selection.c
parentc1f227f94aec6f4555182965fc0d2d8f33fef01f (diff)
Janitor: ansification, make distcheck, compiler warnings, .gitignore.
Most "compiler" warnings were actually sparse warnings, due to assigning a integer to a pointer, or an external symbol without a previous declaration.
Diffstat (limited to 'src/Selection.c')
-rw-r--r--src/Selection.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Selection.c b/src/Selection.c
index 46c75f8..aea4914 100644
--- a/src/Selection.c
+++ b/src/Selection.c
@@ -1011,10 +1011,10 @@ Boolean XtOwnSelectionIncremental(
}
-void XtDisownSelection(widget, selection, time)
- Widget widget;
- Atom selection;
- Time time;
+void XtDisownSelection(
+ Widget widget,
+ Atom selection,
+ Time time)
{
Select ctx;
WIDGET_TO_APPCON(widget);
@@ -1972,7 +1972,7 @@ static void CleanupRequest(
}
}
-extern void XtCreateSelectionRequest(
+void XtCreateSelectionRequest(
Widget widget,
Atom selection)
{
@@ -1988,7 +1988,7 @@ extern void XtCreateSelectionRequest(
(void) XFindContext(dpy, window, multipleContext, (XPointer*) &queueInfo);
/* If there is one, then cancel it */
- if (queueInfo != 0)
+ if (queueInfo != NULL)
CleanupRequest(dpy, queueInfo, selection);
else {
/* Create it */
@@ -2013,7 +2013,7 @@ extern void XtCreateSelectionRequest(
UNLOCK_PROCESS;
}
-extern void XtSendSelectionRequest(
+void XtSendSelectionRequest(
Widget widget,
Atom selection,
Time time)
@@ -2098,7 +2098,7 @@ extern void XtSendSelectionRequest(
UNLOCK_PROCESS;
}
-extern void XtCancelSelectionRequest(
+void XtCancelSelectionRequest(
Widget widget,
Atom selection)
{
@@ -2112,7 +2112,7 @@ extern void XtCancelSelectionRequest(
queueInfo = NULL;
(void) XFindContext(dpy, window, multipleContext, (XPointer*) &queueInfo);
/* If there is one, then cancel it */
- if (queueInfo != 0)
+ if (queueInfo != NULL)
CleanupRequest(dpy, queueInfo, selection);
UNLOCK_PROCESS;
}