diff options
| author | Andreas Oberritter <obi@opendreambox.org> | 2011-01-03 15:52:51 +0100 |
|---|---|---|
| committer | Andreas Oberritter <obi@opendreambox.org> | 2011-01-19 04:24:23 +0100 |
| commit | 7b76c1241ca53ff1dec451d0732719d3882c56a6 (patch) | |
| tree | 0aa2bc4515250d6e91d6a6f82bd8a9afd4cf182b /lib/python/Plugins/Extensions/SocketMMI | |
| parent | 3c367808a0d999678d91c5e3bd34d83e2ac22095 (diff) | |
| download | enigma2-7b76c1241ca53ff1dec451d0732719d3882c56a6.tar.gz enigma2-7b76c1241ca53ff1dec451d0732719d3882c56a6.zip | |
use %zd for ssize_t and %zu for size_t
Diffstat (limited to 'lib/python/Plugins/Extensions/SocketMMI')
| -rw-r--r-- | lib/python/Plugins/Extensions/SocketMMI/src/socket_mmi.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/Plugins/Extensions/SocketMMI/src/socket_mmi.cpp b/lib/python/Plugins/Extensions/SocketMMI/src/socket_mmi.cpp index 673b525c..9a69de37 100644 --- a/lib/python/Plugins/Extensions/SocketMMI/src/socket_mmi.cpp +++ b/lib/python/Plugins/Extensions/SocketMMI/src/socket_mmi.cpp @@ -118,11 +118,11 @@ eAutoInitP0<eSocket_UI> init_socketui(eAutoInitNumbers::rc, "Socket MMI"); int eSocketMMIHandler::send_to_mmisock( void* buf, size_t len) { - int ret = write(connfd, buf, len); + ssize_t ret = write(connfd, buf, len); if ( ret < 0 ) eDebug("[eSocketMMIHandler] write (%m)"); - else if ( (uint)ret != len ) - eDebug("[eSocketMMIHandler] only %d bytes sent.. %d bytes should be sent", ret, len ); + else if ( (size_t)ret != len ) + eDebug("[eSocketMMIHandler] only %zd bytes sent.. %zu bytes should be sent", ret, len ); else return 0; return ret; |
