aboutsummaryrefslogtreecommitdiffhomepage
path: root/print_help.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-18 16:30:30 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-11-18 16:30:30 -0800
commit9992b8eb0e3366ff8a3948aa0b66a19c3c12c737 (patch)
tree6dda0fef85812016fbba9ea067c9d586092b506d /print_help.cpp
parentbab69f26724028d16054a3daf5c78aad7c67bb2d (diff)
Apply new indentation, brace, and whitespace style
Diffstat (limited to 'print_help.cpp')
-rw-r--r--print_help.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/print_help.cpp b/print_help.cpp
index 3bb17835..06bed30c 100644
--- a/print_help.cpp
+++ b/print_help.cpp
@@ -17,18 +17,18 @@
ssize_t write_loop(int fd, const char *buff, size_t count);
-void print_help( const char *c, int fd )
+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 );
+ 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) )
+ if (printed < CMD_LEN)
{
- write_loop(2, HELP_ERR, strlen(HELP_ERR));
- }
+ if ((system(cmd) == -1))
+ {
+ write_loop(2, HELP_ERR, strlen(HELP_ERR));
+ }
- }
+ }
}