]> pilppa.org Git - libplpdevicebus.git/commitdiff
fix compiler warning from sleep prototype
authorMika Laitio <lamikr@pilppa.org>
Mon, 7 Sep 2015 08:07:16 +0000 (11:07 +0300)
committerMika Laitio <lamikr@pilppa.org>
Mon, 7 Sep 2015 08:07:16 +0000 (11:07 +0300)
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
src_server/DeviceManagerServer.cc

index 1a7e17296b85885fcff83793c91fc3d78260fdd7..53e9c0f6bbae60f609784dd0657a57fa134d6639 100644 (file)
@@ -6,6 +6,7 @@
  */
 #include <sstream>
 #include <typeinfo>
+#include <unistd.h>
 
 #include <plp/log.h>
 #include <plp/retval.h>
@@ -52,7 +53,7 @@ DeviceManagerServer::DeviceManagerServer(list<Device *> dev_lst_param) {
        //_dev_lst      = Factory::get_device_list();
        _dev_lst        = dev_lst_param;
        /* In some toolchains the size is not unsigned int instead of long
-           unsigned int, and that can cause warnings/errors without typecasting 
+           unsigned int, and that can cause warnings/errors without typecasting
          */
        log_info("device count: %lu\n", (long unsigned int)_dev_lst.size());
        _lstnr_thrd     = 0;