Kaydet (Commit) b686bab2 authored tarafından Caolán McNamara's avatar Caolán McNamara

WaE: return value of fwrite unchecked

Change-Id: I83ecc3ef45eb411741db4b4ff20982bff1709d99
üst d7850592
...@@ -871,7 +871,8 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, /*pMediator*/ ) ...@@ -871,7 +871,8 @@ IMPL_LINK( PluginConnector, WorkOnNewMessageHdl, Mediator*, /*pMediator*/ )
break; break;
case eNPP_Shutdown: case eNPP_Shutdown:
{ {
write( wakeup_fd[1], "xxxx", 4 ); bool bSuccess = (4 == write(wakeup_fd[1], "xxxx", 4));
SAL_WARN_IF( !bSuccess, "extensions", "short write");
} }
break; break;
default: default:
......
...@@ -65,7 +65,8 @@ static long GlobalConnectionLostHdl( void* /*pInst*/, void* /*pArg*/ ) ...@@ -65,7 +65,8 @@ static long GlobalConnectionLostHdl( void* /*pInst*/, void* /*pArg*/ )
{ {
medDebug( 1, "pluginapp exiting due to connection lost\n" ); medDebug( 1, "pluginapp exiting due to connection lost\n" );
write( wakeup_fd[1], "xxxx", 4 ); bool bSuccess = (4 == write(wakeup_fd[1], "xxxx", 4 ));
SAL_WARN_IF( !bSuccess, "extensions", "short write");
return 0; return 0;
} }
...@@ -111,7 +112,8 @@ extern "C" ...@@ -111,7 +112,8 @@ extern "C"
IMPL_LINK( PluginConnector, NewMessageHdl, Mediator*, /*pMediator*/ ) IMPL_LINK( PluginConnector, NewMessageHdl, Mediator*, /*pMediator*/ )
{ {
medDebug( 1, "new message handler\n" ); medDebug( 1, "new message handler\n" );
write( wakeup_fd[1], "cccc", 4 ); bool bSuccess = (4 == write(wakeup_fd[1], "cccc", 4));
SAL_WARN_IF( !bSuccess, "extensions", "short write");
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment