]> git.sur5r.net Git - cc65/commitdiff
Use _errno, not errno.
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 3 Jun 2010 21:31:06 +0000 (21:31 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 3 Jun 2010 21:31:06 +0000 (21:31 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@4703 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/perror.c

index 9edc08f6e84c931e45cb88bd454b5b38d2cc23ca..ddc015c1e671854f5abc7664ad0a8605714ee15c 100644 (file)
@@ -6,10 +6,10 @@
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2003 Ullrich von Bassewitz                                       */
-/*               Römerstrasse 52                                             */
-/*               D-70794 Filderstadt                                         */
-/* EMail:        uz@cc65.org                                                 */
+/* (C) 1998-2010, Ullrich von Bassewitz                                      */
+/*                Roemerstrasse 52                                           */
+/*                D-70794 Filderstadt                                        */
+/* EMail:         uz@cc65.org                                                */
 /*                                                                           */
 /*                                                                           */
 /* This software is provided 'as-is', without any expressed or implied       */
@@ -42,7 +42,7 @@
 void __fastcall__ perror (const char* msg)
 {
     /* Fetch the message that corresponds to errno */
-    const char* errormsg = strerror (errno);
+    const char* errormsg = strerror (_errno);
 
     /* Different output depending on msg */
     if (msg) {