mirror of https://github.com/mkerrisk/man-pages
bsearch.3: Declare variables with different types in different lines
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
037c6fd4ee
commit
b33535f535
|
@ -124,7 +124,9 @@ main(int argc, char **argv)
|
|||
{
|
||||
qsort(months, nr_of_months, sizeof(months[0]), compmi);
|
||||
for (int i = 1; i < argc; i++) {
|
||||
struct mi key, *res;
|
||||
struct mi key;
|
||||
struct mi *res;
|
||||
|
||||
key.name = argv[i];
|
||||
res = bsearch(&key, months, nr_of_months,
|
||||
sizeof(months[0]), compmi);
|
||||
|
|
Loading…
Reference in New Issue