diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-06 11:40:25 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-06 11:40:25 +0000 |
commit | 90cd6e9b8b41a5418b87ab3f4832fdcc3cf2c3f5 (patch) | |
tree | a728c7e31e9a10563bdf13b21214f69e9d575f04 /carg_parser.c | |
parent | Adding debian version 1.5~rc1-1. (diff) | |
download | clzip-90cd6e9b8b41a5418b87ab3f4832fdcc3cf2c3f5.tar.xz clzip-90cd6e9b8b41a5418b87ab3f4832fdcc3cf2c3f5.zip |
Merging upstream version 1.5.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'carg_parser.c')
-rw-r--r-- | carg_parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/carg_parser.c b/carg_parser.c index a86f76f..378b5e3 100644 --- a/carg_parser.c +++ b/carg_parser.c @@ -45,7 +45,7 @@ static char push_back_record( struct Arg_parser * const ap, const int code, const char * const argument ) { const int len = strlen( argument ); - struct ap_Record *p; + struct ap_Record * p; void * tmp = ap_resize_buffer( ap->data, ( ap->data_size + 1 ) * sizeof (struct ap_Record) ); if( !tmp ) return 0; @@ -222,12 +222,12 @@ char ap_init( struct Arg_parser * const ap, while( argind < argc ) { const unsigned char ch1 = argv[argind][0]; - const unsigned char ch2 = ( ch1 ? argv[argind][1] : 0 ); + const unsigned char ch2 = ch1 ? argv[argind][1] : 0; if( ch1 == '-' && ch2 ) /* we found an option */ { const char * const opt = argv[argind]; - const char * const arg = (argind + 1 < argc) ? argv[argind+1] : 0; + const char * const arg = ( argind + 1 < argc ) ? argv[argind+1] : 0; if( ch2 == '-' ) { if( !argv[argind][2] ) { ++argind; break; } /* we found "--" */ |