dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtfile / ModAttrP.c
index 44334f396ef948eae84d23ff537f2ab819313859..c9f9f19083dcf6c25a6102be6c8f8da1444238d9 100644 (file)
@@ -16,7 +16,7 @@
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * 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
  */
@@ -44,7 +44,7 @@
  ****************************************************************************
  ************************************<+>*************************************/
 
-#if defined __osf__ || defined _AIX
+#if defined _AIX
 #include <stdio.h>
 #endif
   
@@ -59,6 +59,7 @@
 
 #include <Dt/Connect.h>
 #include <Dt/FileM.h>
+#include <Dt/SharedProcs.h>
 
 #include <Tt/tttk.h>
 
@@ -133,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));
@@ -274,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;