aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish_indent.c
diff options
context:
space:
mode:
authorGravatar liljencrantz <liljencrantz@gmail.com>2007-09-22 00:07:52 +1000
committerGravatar liljencrantz <liljencrantz@gmail.com>2007-09-22 00:07:52 +1000
commit084c0c5f80ceca7e8db043d874907967e69c2d36 (patch)
tree2613eb7589dc888f576d8aff7f5e271b6ac026de /fish_indent.c
parentd2d397d9eb8ec9c4003d1ce45b26a7cc133e801f (diff)
Correct minor typos, stupid error messages, indentation and drop unused variable.
darcs-hash:20070921140752-75c98-74318b9daffa071845187bcc0b72259ca37b7e18.gz
Diffstat (limited to 'fish_indent.c')
-rw-r--r--fish_indent.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/fish_indent.c b/fish_indent.c
index 35bd24e4..e6a3f19a 100644
--- a/fish_indent.c
+++ b/fish_indent.c
@@ -145,7 +145,7 @@ static int indent( string_buffer_t *out, wchar_t *in, int flags )
case TOK_PIPE:
{
- sb_append( out, L"| " );
+ sb_append( out, L" | " );
is_command = 1;
break;
}
@@ -202,7 +202,7 @@ static int indent( string_buffer_t *out, wchar_t *in, int flags )
default:
{
- debug( 0, L"Unknown wha? %ls", last );
+ debug( 0, L"Unknown token '%ls'", last );
exit(1);
}
}
@@ -282,10 +282,10 @@ int main( int argc, char **argv )
int opt_index = 0;
int opt = getopt_long( argc,
- argv,
- GETOPT_STRING,
- long_options,
- &opt_index );
+ argv,
+ GETOPT_STRING,
+ long_options,
+ &opt_index );
if( opt == -1 )
break;