dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtfile / SharedMsgs.c
index 975d891f29ac03ad49239d08a45924533eff0a86..888b8ded351b82b9e6403183d3cf67cbe027f8bd 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
  */
@@ -51,7 +51,6 @@
 #include <signal.h>
 #include <errno.h>
 #include <pwd.h>
-#include <malloc.h>
 #include <time.h>
 #ifndef sun /* don't need the nl_types.h file */
 #include <nl_types.h>
@@ -67,7 +66,7 @@
 #include "SharedMsgs.h"
 
 
-
+static char unknownmessage[] = "***Unknown shared message***";
 
 /************************************************************************
  *
@@ -151,5 +150,8 @@ GetSharedMessage(
          return GETMESSAGE(30,21, "File Move Error");
       case FILE_LINK_ERROR_TITLE:
          return GETMESSAGE(30,22, "File Link Error");
+      default:
+         fprintf(stderr, "GetSharedMessage: unknown message %d\n", id);
+         return unknownmessage;
    }
 }