From f56a69f2cf7df1e7cdf2494c5408786e53467374 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Fri, 30 Jan 2009 18:22:10 -0200 Subject: 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. --- src/Selection.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/Selection.c') 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; } -- cgit v1.2.3