Browse Source

Move short options closer to long options.

Georgi Chorbadzhiyski 12 years ago
parent
commit
603965e480
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      tsdecrypt.c

+ 3
- 1
tsdecrypt.c View File

@@ -103,6 +103,8 @@ void run_benchmark(void) {
103 103
 	puts("* Done *");
104 104
 }
105 105
 
106
+static const char short_options[] = "i:d:N:Sl:L:I:RzM:W:O:o:t:g:pwxyc:C:A:s:U:P:B:eZ:Ef:X:H:G:KJ:D:jbhV";
107
+
106 108
 // Unused short options: FQTYakmnqruv0123456789
107 109
 static const struct option long_options[] = {
108 110
 	{ "ident",				required_argument, NULL, 'i' },
@@ -270,7 +272,7 @@ static int parse_io_param(struct io *io, char *opt, int open_flags, mode_t open_
270 272
 
271 273
 static void parse_options(struct ts *ts, int argc, char **argv) {
272 274
 	int j, i, ca_err = 0, server_err = 1, input_addr_err = 0, output_addr_err = 0, output_intf_err = 0, ident_err = 0, port_set = 0;
273
-	while ( (j = getopt_long(argc, argv, "i:d:N:Sl:L:I:RzM:W:O:o:t:g:pwxyc:C:A:s:U:P:B:eZ:Ef:X:H:G:KJ:D:jbhV", long_options, NULL)) != -1 ) {
275
+	while ((j = getopt_long(argc, argv, short_options, long_options, NULL)) != -1) {
274 276
 		char *p = NULL;
275 277
 		switch (j) {
276 278
 			case 'i':

Loading…
Cancel
Save