Subject: rev 40 - trunk/phylo

From: [email-masked]
Date: Sun, 23 Nov 2003 18:09:52 -0600

Author: kfogel
Date: 2003-11-23 18:09:48 -0600 (Sun, 23 Nov 2003)
New Revision: 40

Modified:
   trunk/phylo/phylo.c
Log:
Get modern:

* phylo/phylo.c
  (report_syserr): Use strerror.

Modified: trunk/phylo/phylo.c
===================================================================
--- trunk/phylo/phylo.c	2003-11-24 00:07:03 UTC (rev 39)
+++ trunk/phylo/phylo.c	2003-11-24 00:09:48 UTC (rev 40)
@@ -639,13 +639,8 @@
 void
 report_syserr ()
 {
-  const char *message;
+  const char *message = strerror (errno);
 
-  if (errno < 0 || errno > sys_nerr)
-    message = "<unrecognized error code>";
-  else
-    message = sys_errlist[errno];
-
   printf ("(phylo-error ");
   write_quoted (stdout, message, strlen (message));
   puts (")");