[80510] branches/gsoc11-rev-upgrade/base/src/libmachista1.0
cal at macports.org
cal at macports.org
Wed Jul 13 16:28:27 PDT 2011
Revision: 80510
http://trac.macports.org/changeset/80510
Author: cal at macports.org
Date: 2011-07-13 16:28:26 -0700 (Wed, 13 Jul 2011)
Log Message:
-----------
rev-upgrade: Made macho_strerror() return a const char *, changed occurrences of "errno" to "err", because it apparently causes problems
with SWIG (and maybe without it, too?)
Modified Paths:
--------------
branches/gsoc11-rev-upgrade/base/src/libmachista1.0/libmachista.c
branches/gsoc11-rev-upgrade/base/src/libmachista1.0/libmachista.h
Modified: branches/gsoc11-rev-upgrade/base/src/libmachista1.0/libmachista.c
===================================================================
--- branches/gsoc11-rev-upgrade/base/src/libmachista1.0/libmachista.c 2011-07-13 23:25:12 UTC (rev 80509)
+++ branches/gsoc11-rev-upgrade/base/src/libmachista1.0/libmachista.c 2011-07-13 23:28:26 UTC (rev 80510)
@@ -482,9 +482,9 @@
}
/* Returns string representation of the MACHO_* error code constants */
-char *macho_strerror(int errno) {
+const char *macho_strerror(int err) {
int num = 0;
- while ((errno >>= 1) > 0)
+ while ((err >>= 1) > 0)
num++;
static char *errors[] = {
/* 0x00 */ "Success",
Modified: branches/gsoc11-rev-upgrade/base/src/libmachista1.0/libmachista.h
===================================================================
--- branches/gsoc11-rev-upgrade/base/src/libmachista1.0/libmachista.h 2011-07-13 23:25:12 UTC (rev 80509)
+++ branches/gsoc11-rev-upgrade/base/src/libmachista1.0/libmachista.h 2011-07-13 23:28:26 UTC (rev 80510)
@@ -132,7 +132,7 @@
/**
* Returns a string representation of the MACHO_* error code constants
*/
-char *macho_strerror(int errno);
+const char *macho_strerror(int err);
#endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110713/15a842cd/attachment.html>
More information about the macports-changes
mailing list