diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-10-19 13:42:08 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-10-19 13:57:23 +0300 |
commit | 43a33ef69331c2dc6a1812421ac5637dfdeeb288 (patch) | |
tree | afbeebef2c309830eb39a06c14b5fcbc801ac74a /sal | |
parent | 3cbd8c24a8550296154fe4e85fc879af034aa978 (diff) |
WaE: passing argument discards qualifiers from pointer target type
expected 'void *' but argument is of type 'volatile int *'
errno is volatile on Android, and apparently it is not OK to pass the
address of a volatile valye to a function expecting void * in their
gcc version.
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/process.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sal/osl/unx/process.c b/sal/osl/unx/process.c index 22c6adb72e27..424056744c21 100644 --- a/sal/osl/unx/process.c +++ b/sal/osl/unx/process.c @@ -481,6 +481,7 @@ static void ChildStatusProc(void *pData) { /* Child */ int chstatus = 0; + int errno_copy; if (channel[0] != -1) close(channel[0]); @@ -558,7 +559,8 @@ static void ChildStatusProc(void *pData) OSL_TRACE("ChildStatusProc : starting '%s' failed",data.m_pszArgs[0]); /* if we reach here, something went wrong */ - if ( !safeWrite(channel[1], &errno, sizeof(errno)) ) + errno_copy = errno; + if ( !safeWrite(channel[1], &errno_copy, sizeof(errno_copy)) ) OSL_TRACE("sendFdPipe : sending failed (%s)",strerror(errno)); if ( channel[1] != -1 ) |