diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-04-19 18:39:55 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-04-19 18:39:55 +0200 |
commit | 84084ea2a178f782184d75db10f252efdc62fb5f (patch) | |
tree | fd8b135033d80289eb06e2e835d4ffec8e5e18d9 /runtime | |
parent | 6b8e9477a2bd4810010ac91ba76909713b0dbb15 (diff) | |
download | rsyslog-84084ea2a178f782184d75db10f252efdc62fb5f.tar.gz rsyslog-84084ea2a178f782184d75db10f252efdc62fb5f.tar.xz rsyslog-84084ea2a178f782184d75db10f252efdc62fb5f.zip |
improved quality of imsolaris code
including refctoring for a more simple solution
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/rsyslog.h | 1 | ||||
-rw-r--r-- | runtime/stream.c | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/runtime/rsyslog.h b/runtime/rsyslog.h index 173f15a8..09dc7ae6 100644 --- a/runtime/rsyslog.h +++ b/runtime/rsyslog.h @@ -362,6 +362,7 @@ enum rsRetVal_ /** return value. All methods return this if not specified oth RS_RET_PEER_CLOSED_CONN = -2144, /**< remote peer closed connection (information, no error) */ RS_RET_ERR_OPEN_KLOG = -2145, /**< error opening the kernel log socket (primarily solaris) */ RS_RET_ERR_AQ_CONLOG = -2146, /**< error aquiring console log (on solaris) */ + RS_RET_ERR_DOOR = -2147, /**< some problems with handling the Solaris door functionality */ /* RainerScript error messages (range 1000.. 1999) */ RS_RET_SYSVAR_NOT_FOUND = 1001, /**< system variable could not be found (maybe misspelled) */ diff --git a/runtime/stream.c b/runtime/stream.c index e8805a40..e6680adc 100644 --- a/runtime/stream.c +++ b/runtime/stream.c @@ -215,7 +215,8 @@ doPhysOpen(strm_t *pThis) } pThis->fd = open((char*)pThis->pszCurrFName, iFlags, pThis->tOpenMode); - DBGPRINTF("file '%s' opened as #%d with mode %d\n", pThis->pszCurrFName, pThis->fd, pThis->tOpenMode); + DBGPRINTF("file '%s' opened as #%d with mode %d\n", pThis->pszCurrFName, + pThis->fd, (int) pThis->tOpenMode); if(pThis->fd == -1) { char errStr[1024]; int err = errno; |