diff options
author | Peter Ammon <corydoras@ridiculousfish.com> | 2012-01-14 03:41:50 -0800 |
---|---|---|
committer | Peter Ammon <corydoras@ridiculousfish.com> | 2012-01-14 03:41:50 -0800 |
commit | f3e2d2f68f14120e298fb1d50be89fa5e83c9222 (patch) | |
tree | 96ef9489858ca97b2c305e2e7e3267bce36f1687 /print_help.cpp | |
parent | a359f45df219e6a3845870ca69b4116083d787f7 (diff) |
Lots of warnings fixes and const correctness
Diffstat (limited to 'print_help.cpp')
-rw-r--r-- | print_help.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print_help.cpp b/print_help.cpp index 40c1723e..18a0f965 100644 --- a/print_help.cpp +++ b/print_help.cpp @@ -14,10 +14,10 @@ #define HELP_ERR "Could not show help message\n" /* defined in common.h */ -ssize_t write_loop(int fd, char *buff, size_t count); +ssize_t write_loop(int fd, const char *buff, size_t count); -void print_help( 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 ); |