]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxcmd: merge command() and iterate_command()
authorDave Chinner <dchinner@redhat.com>
Thu, 12 Jan 2017 20:12:41 +0000 (14:12 -0600)
committerEric Sandeen <sandeen@redhat.com>
Thu, 12 Jan 2017 20:12:41 +0000 (14:12 -0600)
commitd6ac04629b5797b96a76be34723b6d11ea45557a
tree7cec73245bb92d5213d4a8cedb78f8ad84d290cf
parentef346a25dc992d4e35ce2aec23479c066626b77c
libxcmd: merge command() and iterate_command()

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.

[ sandeen: align process_input() args ]

Signed-Off-By: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxcmd/command.c