X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fcross.cc;h=0224e461d5fb8193fe82841ecdb34051711b2f6a;hp=53ef5723ac50232d5e05fb8664a7b8dc3eba766d;hb=05654d0e1799746a9df3ccab040c92e0ed825cac;hpb=b63118dafbd7224e9196a40895d9c7cb96504717 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;