Permalink
Browse files

More BSD sillyness.

  • Loading branch information...
1 parent 6d49747 commit 95d0c1729a8a4c02e6f3b2696a6491ae643c5106 Caleb James DeLisle committed Mar 8, 2013
Showing with 4 additions and 4 deletions.
  1. +3 −3 admin/angel/AngelInit.c
  2. +1 −1 cmake/modules/FindLibuv.cmake
View
@@ -234,9 +234,9 @@ int AngelInit_main(int argc, char** argv)
sendConfToCore(coreIface, tempAlloc, &config, eh, logger);
struct Message* coreResponse = InterfaceWaiter_waitForData(coreIface, eventBase, tempAlloc, eh);
- // Ignore the result of write() without the compiler complaining.
- ssize_t ret = write(outToClientNo, coreResponse->bytes, coreResponse->length);
- ret = ret;
+ if (write(outToClientNo, coreResponse->bytes, coreResponse->length)) {
+ // Ignore the result of write() without the compiler complaining.
+ }
#ifdef Log_KEYS
uint8_t lastChar = coreResponse->bytes[coreResponse->length-1];
@@ -97,7 +97,7 @@ if (NOT LIBUV_FOUND AND "$ENV{NO_STATIC}" STREQUAL "")
if (APPLE)
set(MAKE_COMMAND "make")
else ()
- if (BSD)
+ if (FREEBSD)
set(make gmake)
else()
set(make make)

0 comments on commit 95d0c17

Please sign in to comment.