--- /dev/null
+@@
+statement s;
+@@
+- while (true)
++ for (;;)
+s
+@@
+statement s;
+@@
+- while (1)
++ for (;;)
+s
static int arguments_parse(struct arguments *args, int argc,
char *const argv[])
{
- while (true) {
+ for (;;) {
int c;
int index = 0;
return -1;
}
- while (1) {
+ for (;;) {
len = lxc_read_nointr(in, buf, 8096);
if (len < 0) {
SYSERROR("Error reading old file %s", old);
fname = must_realloc(NULL, strlen(lxcpath) + 20);
- while (1) {
+ for (;;) {
sprintf(fname, "%s/snap%d", lxcpath, i);
ret = stat(fname, &sb);
}
/* Generate random names until we find one that doesn't exist. */
- while (true) {
+ for (;;) {
name[0] = '\0';
(void)strlcpy(name, template, IFNAMSIZ);
return true;
b = path + strlen(root) + 1;
- while (true) {
+ for (;;) {
while (*b && (*b == '/'))
b++;
if (!*b)
p = basecginfo;
- while (true) {
+ for (;;) {
p = strchr(p, ':');
if (!p)
return NULL;
sk->max_transid = (u64)-1;
sk->nr_items = 4096;
- while(1) {
+ for (;;) {
ret = ioctl(fd, BTRFS_IOC_TREE_SEARCH, &args);
e = errno;
if (ret < 0) {
if (p)
*p = '\0';
- while (1) {
+ for (;;) {
sprintf(path, "/dev/nbd%d", i);
if (!file_exists(path))
* constantly...
*/
va_copy(ap2, ap);
- while (1) {
+ for (;;) {
char *arg = va_arg(ap2, char *);
if (!arg)
break;
return NULL;
count = skip;
- while (1) {
+ for (;;) {
char *arg = va_arg(ap, char *);
if (!arg)
break;
return ret;
}
- while (true) {
+ for (;;) {
int c;
int index = 0;
goto out;
}
- while (1) {
+ for (;;) {
int newfd, saved_errno;
char *nextpath;