dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtfile / SharedMsgs.c
index 2813bcbb4805559ea255b01cd8e226a6f4c637be..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
  */
@@ -66,7 +66,7 @@
 #include "SharedMsgs.h"
 
 
-
+static char unknownmessage[] = "***Unknown shared message***";
 
 /************************************************************************
  *
@@ -150,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;
    }
 }