Re: [PATCH 3/6] libxcmd: merge command() and iterate_command()
From: Eric Sandeen <hidden>
Date: 2016-12-20 20:17:56
On 12/20/16 2:31 AM, Christoph Hellwig wrote:
On Fri, Dec 16, 2016 at 03:41:12PM +1100, Dave Chinner wrote:quoted
From: Dave Chinner <redacted> Simplify the command loop further by merging the command loop iteration checks with the command execution function. This removes all visibility of command iteration from the main command execution loop, and enables us to factor and clean up the command loop processing neatly. Signed-Off-By: Dave Chinner <redacted>Looks fine, but some minor nitpicks below: Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by, maybe?
quoted
+static int +process_input(return bool instead of int (and switch done in the caller to bool as well)?
Everything below it is an int, fwiw, seems like a job for another day.
quoted
+ char *input, + bool iterate) { - int c, i, j = 0, done = 0; - char *input;Align the arguments to the same row as the variables below it?
I'll fix that on merge. Thanks, -Eric
-- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html