dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtfile / ModAttrP.c
index 7dcf464272ac85124942a74da822ef85f618f0bc..c9f9f19083dcf6c25a6102be6c8f8da1444238d9 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
+ */
 /* $TOG: ModAttrP.c /main/8 1999/12/09 13:07:16 mgreess $ */
 /************************************<+>*************************************
  ****************************************************************************
@@ -22,7 +44,7 @@
  ****************************************************************************
  ************************************<+>*************************************/
 
-#if defined __osf__ || defined _AIX
+#if defined _AIX
 #include <stdio.h>
 #endif
   
@@ -37,6 +59,7 @@
 
 #include <Dt/Connect.h>
 #include <Dt/FileM.h>
+#include <Dt/SharedProcs.h>
 
 #include <Tt/tttk.h>
 
@@ -111,7 +134,7 @@ ShowModAttrDialog(
   
    XmUpdateDisplay (w);
 
-   if((int)client_data != NULL)
+   if((int)(XtArgVal)client_data != 0)
       mbar = XtParent(w);
    else
       mbar = XmGetPostedFromWidget(XtParent(w));
@@ -252,7 +275,7 @@ AttrChangeProcess(
 {
   char *path;
   struct stat stat_buf;
-  long modify_time;
+  long modify_time = 0;
   short pipe_msg;
   int rc = -1;
   Tt_status tt_status;