Permalink
Browse files

Ignore the return value from call to write() without getting yelled a…

…t by the compiler
  • Loading branch information...
1 parent 8f96e1a commit f0987dd3d735debca09107f1673d710ac0dc16ab Caleb James DeLisle committed Mar 8, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 admin/angel/AngelInit.c
View
4 admin/angel/AngelInit.c
@@ -234,7 +234,9 @@ int AngelInit_main(int argc, char** argv)
sendConfToCore(coreIface, tempAlloc, &config, eh, logger);
struct Message* coreResponse = InterfaceWaiter_waitForData(coreIface, eventBase, tempAlloc, eh);
- write(outToClientNo, coreResponse->bytes, coreResponse->length);
+ if (write(outToClientNo, coreResponse->bytes, coreResponse->length)) {
+ // ignore the return value of the call to write()
+ }
#ifdef Log_KEYS
uint8_t lastChar = coreResponse->bytes[coreResponse->length-1];

0 comments on commit f0987dd

Please sign in to comment.