diff options
author | Łukasz Niemier <lukasz@niemier.pl> | 2012-11-18 11:23:22 +0100 |
---|---|---|
committer | Łukasz Niemier <lukasz@niemier.pl> | 2012-11-18 11:23:22 +0100 |
commit | 47df1ae40adecd0a02fc7dd06ab0745cb18c3fe0 (patch) | |
tree | 13bf3e8fdcae60fdfb5fa5e26c95818dc7a49790 /print_help.cpp | |
parent | b79854ad1aa814d9d35d76a1929b4726fa4bffa5 (diff) |
Remove trailing whitespaces and change tabs to spaces
Diffstat (limited to 'print_help.cpp')
-rw-r--r-- | print_help.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/print_help.cpp b/print_help.cpp index 18a0f965..3bb17835 100644 --- a/print_help.cpp +++ b/print_help.cpp @@ -1,6 +1,6 @@ /** \file print_help.c - Print help message for the specified command + Print help message for the specified command */ #include <stdlib.h> @@ -19,16 +19,16 @@ ssize_t write_loop(int fd, const char *buff, size_t count); void print_help( const char *c, int fd ) { - char cmd[ CMD_LEN]; - int printed = snprintf( cmd, CMD_LEN, "fish -c '__fish_print_help %s >&%d'", c, fd ); - - if( printed < CMD_LEN ) - { - if( (system( cmd ) == -1) ) - { - write_loop(2, HELP_ERR, strlen(HELP_ERR)); - } - - } - + char cmd[ CMD_LEN]; + int printed = snprintf( cmd, CMD_LEN, "fish -c '__fish_print_help %s >&%d'", c, fd ); + + if( printed < CMD_LEN ) + { + if( (system( cmd ) == -1) ) + { + write_loop(2, HELP_ERR, strlen(HELP_ERR)); + } + + } + } |