dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtfile / Common.c
index 5ccd535934c31c3f2e0b861d6d823d8e4dd1c24a..6dd5771bfcde7a1477a435a224d245cb129bc029 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: Common.c /main/5 1998/05/07 13:27:44 rafi $ */
 /************************************<+>*************************************
  ****************************************************************************
 
 #include <Xm/Xm.h>
 #include <Xm/XmP.h>
+#include <Xm/TextF.h>
 
 #include <Dt/DtP.h>                     /* required for DtDirPaths type */
+
+#include <codelibs/shellutils.h>
+
 #include <Dt/DtNlUtils.h>
 #include "Encaps.h"
 #include "SharedProcs.h"
@@ -176,7 +202,7 @@ VFTextChangeSpace(
    currentDirectoryText = GetRestrictedDirectory(text);
 
    /* Extract the path */
-   path[0] = NULL;
+   path[0] = '\0';
 
    if(currentDirectoryText == NULL)
    {