dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtfile / HelpP.c
index 199c901f9ef03d0f7b0d276aa4cd52b2f6159c84..0a548ea164dda9fb682524c9d59dfe6456d50c96 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these libraries and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
 /* $XConsortium: HelpP.c /main/4 1995/11/02 14:40:13 rswiston $ */
 /************************************<+>*************************************
  ****************************************************************************
@@ -439,7 +461,7 @@ ShowDTHelpDialog(
    }
 
    _DtShowDialog(parentShell, NULL, NULL, dialogData, NULL, NULL, 
-              DTHelpClose, (XtPointer)workspaceNum, 
+              DTHelpClose, (XtPointer)(XtArgVal)workspaceNum,
               desktop_data->workspaceData[workspaceNum]->name,
               False, False, NULL, NULL);
 
@@ -452,7 +474,7 @@ ShowDTHelpDialog(
    helpRec = (HelpRec *)_DtGetDialogInstance(dialogData);
    XtRemoveAllCallbacks(helpRec->helpDialog, DtNhyperLinkCallback);
    XtAddCallback(helpRec->helpDialog, DtNhyperLinkCallback,
-                 DTHyperLink, (XtPointer)workspaceNum);
+                 DTHyperLink, (XtPointer)(XtArgVal)workspaceNum);
 }
 
 
@@ -472,7 +494,7 @@ DTHelpClose(
         DialogData *new_dialog_data )
 
 {
-   int  workspaceNum = (int) client_data;
+   int  workspaceNum = (int)(XtArgVal) client_data;
    int count;
    int i, j;
    WorkspaceRec * wsInfo;
@@ -513,7 +535,7 @@ DTHyperLink(
         XtPointer callData )
 
 {
-   int  workspaceNum = (int) clientData;
+   int  workspaceNum = (int)(XtArgVal) clientData;
    DtHelpDialogCallbackStruct * hyperData;
 
    hyperData = (DtHelpDialogCallbackStruct *)callData;