X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftime%2Funix%2Futils.cpp;h=f25f61c17c03f6ea09c06f4d495ab8c5d021fcaa;hb=0b51556bd22d9d9c2dc10692fc3c1feb3c6e98b3;hp=029c75bc3cb26e0bf5bc6929b81fb26d58cb5d93;hpb=609c9a508cfdc7b42c46c4f21d17639204165a00;p=libs%2Fcore.git diff --git a/source/time/unix/utils.cpp b/source/time/unix/utils.cpp index 029c75b..f25f61c 100644 --- a/source/time/unix/utils.cpp +++ b/source/time/unix/utils.cpp @@ -13,7 +13,7 @@ namespace Time { TimeStamp now() { timeval tv; - gettimeofday(&tv, 0); + gettimeofday(&tv, nullptr); return TimeStamp(timeval_to_rawtime(tv)); } @@ -27,7 +27,7 @@ TimeDelta get_cpu_time() void sleep(const TimeDelta &d) { timespec ts = rawtime_to_timespec(d.raw()); - while(nanosleep(&ts, 0)==-1) + while(nanosleep(&ts, nullptr)==-1) if(errno!=EINTR) throw system_error("nanosleep"); }