]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
wrappers: tvh_safe_usleep - fix ERRNO_AGAIN call - coverity
authorJaroslav Kysela <perex@perex.cz>
Mon, 23 May 2016 19:26:32 +0000 (21:26 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 23 May 2016 19:26:32 +0000 (21:26 +0200)
src/wrappers.c

index e1caa3d5feead1421fc31fb549189890689cbf57..9b3572c0a584668ab55f510db47dae80b00a796c 100644 (file)
@@ -282,7 +282,7 @@ tvh_safe_usleep(int64_t us)
   do {
     r = tvh_usleep(us);
     if (r < 0) {
-      if (ERRNO_AGAIN(r))
+      if (ERRNO_AGAIN(-r))
         continue;
       break;
     }