gget

gget Commit Details

Date:2016-08-12 18:13:31 (3 years 11 months ago)
Author:Grégory Soutadé
Branch:master
Commit:9ebfb9f7cf63d4fd44145b3ff2887470c7ebb068
Parents: bfdb3b4161b6d14fc0d6c6a08f3d5dc4ccd55b20
Message:Use alphabteical order for getopt

Changes:
Mgget.c (2 diffs)

File differences

gget.c
512512
513513
514514
515
515
516516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532517
533518
534519
......
570555
571556
572557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573573
574574
575575
576
577
578
579576
580577
581578
579
580
581
582582
583583
584584
int continuous_mode=0;
int exists;
while ((opt = getopt(argc, argv, "hn:l:o:u:qm:")) != -1) {
while ((opt = getopt(argc, argv, "hl:m:n:o:qu:")) != -1) {
switch (opt) {
case 'n':
nb_threads = strtoul(optarg, &endptr, 0);
if (*endptr)
{
usage(argv[0]);
return 1;
}
if (nb_threads == 0)
nb_threads = DEFAULT_NB_THREADS;
else if (nb_threads > MAX_NB_THREADS)
{
printf("Max numberb of threads is %d\n", MAX_NB_THREADS);
nb_threads = MAX_NB_THREADS;
}
break;
case 'l':
max_speed = strtoul(optarg, &endptr, 0);
if (*endptr)
}
max_chunk_size *= multiplier;
break;
case 'n':
nb_threads = strtoul(optarg, &endptr, 0);
if (*endptr)
{
usage(argv[0]);
return 1;
}
if (nb_threads == 0)
nb_threads = DEFAULT_NB_THREADS;
else if (nb_threads > MAX_NB_THREADS)
{
printf("Max numberb of threads is %d\n", MAX_NB_THREADS);
nb_threads = MAX_NB_THREADS;
}
break;
case 'o':
out_filename = strdup(optarg);
break;
case 'u':
user_agent = strdup(optarg);
break;
case 'q':
quiet = 1;
break;
case 'u':
user_agent = strdup(optarg);
break;
default:
case 'h':
usage(argv[0]);

Archive Download the corresponding diff file

Branches

Tags