]> wimlib.net Git - wimlib/commitdiff
set_message_queue_names(): while => for
authorEric Biggers <ebiggers3@gmail.com>
Sun, 3 Mar 2013 22:32:38 +0000 (16:32 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 3 Mar 2013 22:32:38 +0000 (16:32 -0600)
src/mount_image.c

index a05a822d10d78d0f2dc92b94076acdba5d7a36b4..bd1a7d54bc5aee6660905ef3be4fa24407380ecf 100644 (file)
@@ -848,12 +848,9 @@ static int set_message_queue_names(struct wimfs_context *ctx,
                        return WIMLIB_ERR_NOTDIR;
        }
 
                        return WIMLIB_ERR_NOTDIR;
        }
 
-       p = dir_path;
-       while (*p) {
+       for (p = dir_path; *p; p++)
                if (*p == '/')
                        *p = 0xff;
                if (*p == '/')
                        *p = 0xff;
-               p++;
-       }
 
        ctx->unmount_to_daemon_mq_name = strcat_dup(u2d_prefix, dir_path,
                                                    NAME_MAX);
 
        ctx->unmount_to_daemon_mq_name = strcat_dup(u2d_prefix, dir_path,
                                                    NAME_MAX);