summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-16 10:35:17 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-16 10:35:17 +0000
commit6a2f7f41cf7c544d6abce958f89c873b24f79b18 (patch)
tree6155700deea3477ee366aec5360909261ed53cd6 /libbb
parent033e592cbc96c150c67ac9be7df65e314be5c8f8 (diff)
downloadbusybox-w32-6a2f7f41cf7c544d6abce958f89c873b24f79b18.tar.gz
busybox-w32-6a2f7f41cf7c544d6abce958f89c873b24f79b18.tar.bz2
busybox-w32-6a2f7f41cf7c544d6abce958f89c873b24f79b18.zip
whitespace fixes, no code changes
Diffstat (limited to 'libbb')
-rw-r--r--libbb/getopt32.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libbb/getopt32.c b/libbb/getopt32.c
index 672d70a0a..c09956940 100644
--- a/libbb/getopt32.c
+++ b/libbb/getopt32.c
@@ -53,8 +53,8 @@ getopt32(int argc, char **argv, const char *applet_opts, ...)
53 char *pointer_to_arg_for_d; 53 char *pointer_to_arg_for_d;
54 54
55 flags = getopt32(argc, argv, "a:b:c:d:", 55 flags = getopt32(argc, argv, "a:b:c:d:",
56 &pointer_to_arg_for_a, &pointer_to_arg_for_b, 56 &pointer_to_arg_for_a, &pointer_to_arg_for_b,
57 &pointer_to_arg_for_c, &pointer_to_arg_for_d); 57 &pointer_to_arg_for_c, &pointer_to_arg_for_d);
58 58
59 The type of the pointer (char* or llist_t*) may be controlled 59 The type of the pointer (char* or llist_t*) may be controlled
60 by the "::" special separator that is set in the external string 60 by the "::" special separator that is set in the external string
@@ -121,9 +121,9 @@ const char *opt_complementary
121 opt_complementary = "ww"; 121 opt_complementary = "ww";
122 getopt32(argc, argv, "w", &w_counter); 122 getopt32(argc, argv, "w", &w_counter);
123 if (w_counter) 123 if (w_counter)
124 width = (w_counter == 1) ? 132 : INT_MAX; 124 width = (w_counter == 1) ? 132 : INT_MAX;
125 else 125 else
126 get_terminal_width(...&width...); 126 get_terminal_width(...&width...);
127 127
128 w_counter is a pointer to an integer. It has to be passed to 128 w_counter is a pointer to an integer. It has to be passed to
129 getopt32() after all other option argument sinks. 129 getopt32() after all other option argument sinks.
@@ -137,9 +137,9 @@ const char *opt_complementary
137 opt_complementary = "vv:b::b-c:c-b"; 137 opt_complementary = "vv:b::b-c:c-b";
138 f = getopt32(argc, argv, "vb:c", &my_b, &verbose_level); 138 f = getopt32(argc, argv, "vb:c", &my_b, &verbose_level);
139 if (f & 2) // -c after -b unsets -b flag 139 if (f & 2) // -c after -b unsets -b flag
140 while (my_b) { dosomething_with(my_b->data); my_b = my_b->link; } 140 while (my_b) { dosomething_with(my_b->data); my_b = my_b->link; }
141 if (my_b) // but llist is stored if -b is specified 141 if (my_b) // but llist is stored if -b is specified
142 free_llist(my_b); 142 free_llist(my_b);
143 if (verbose_level) printf("verbose level is %d\n", verbose_level); 143 if (verbose_level) printf("verbose level is %d\n", verbose_level);
144 144
145Special characters: 145Special characters:
@@ -200,9 +200,9 @@ Special characters:
200 opt = getopt32(argc, argv, "sd:x", &smax_print_depth); 200 opt = getopt32(argc, argv, "sd:x", &smax_print_depth);
201 201
202 if (opt & 2) 202 if (opt & 2)
203 max_print_depth = atoi(smax_print_depth); 203 max_print_depth = atoi(smax_print_depth);
204 if (opt & 4) 204 if (opt & 4)
205 printf("Detected odd -x usage\n"); 205 printf("Detected odd -x usage\n");
206 206
207 "--" A double dash between two options, or between an option and a group 207 "--" A double dash between two options, or between an option and a group
208 of options, means that they are mutually exclusive. Unlike 208 of options, means that they are mutually exclusive. Unlike