X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcross.cc;h=0224e461d5fb8193fe82841ecdb34051711b2f6a;hb=9e4c091e6ef0f79fab10664e95240de2f14e5702;hp=53ef5723ac50232d5e05fb8664a7b8dc3eba766d;hpb=f1d30fb114b3b2c6ccd8fdf5823e7cd6b26c1eef;p=dcpomatic.git diff --git a/src/lib/cross.cc b/src/lib/cross.cc index 53ef5723a..0224e461d 100644 --- a/src/lib/cross.cc +++ b/src/lib/cross.cc @@ -202,7 +202,7 @@ run_ffprobe (boost::filesystem::path content, boost::filesystem::path out, share CloseHandle (child_stderr_write); - while (1) { + while (true) { char buffer[512]; DWORD read; if (!ReadFile(child_stderr_read, buffer, sizeof(buffer), &read, 0) || read == 0) { @@ -247,7 +247,7 @@ mount_info () return m; } - while (1) { + while (true) { struct mntent* mnt = getmntent (f); if (!mnt) { break;