comparison packages/redboot/current/src/main.c @ 1513:c4355f101bf6

Cleanups to remove warnings
author gthomas
date Tue, 24 Feb 2004 14:15:14 +0000
parents 0ec4d1b9182f
children 43a89c18d005
comparison
equal deleted inserted replaced
1512:489f52f54b1c 1513:c4355f101bf6
465 do_help(int argc, char *argv[]) 465 do_help(int argc, char *argv[])
466 { 466 {
467 struct cmd *cmd; 467 struct cmd *cmd;
468 char *which = (char *)0; 468 char *which = (char *)0;
469 469
470 if (!scan_opts(argc, argv, 1, 0, 0, (void **)&which, OPTION_ARG_TYPE_STR, "<topic>")) { 470 if (!scan_opts(argc, argv, 1, 0, 0, (void *)&which, OPTION_ARG_TYPE_STR, "<topic>")) {
471 diag_printf("Invalid argument\n"); 471 diag_printf("Invalid argument\n");
472 return; 472 return;
473 } 473 }
474 cmd = __RedBoot_CMD_TAB__; 474 cmd = __RedBoot_CMD_TAB__;
475 show_help(cmd, &__RedBoot_CMD_TAB_END__, which, ""); 475 show_help(cmd, &__RedBoot_CMD_TAB_END__, which, "");
525 hal_virtual_comm_table_t *__chan; 525 hal_virtual_comm_table_t *__chan;
526 526
527 __mem_fault_handler = 0; // Let GDB handle any faults directly 527 __mem_fault_handler = 0; // Let GDB handle any faults directly
528 entry = entry_address; // Default from last 'load' operation 528 entry = entry_address; // Default from last 'load' operation
529 init_opts(&opts[0], 'w', true, OPTION_ARG_TYPE_NUM, 529 init_opts(&opts[0], 'w', true, OPTION_ARG_TYPE_NUM,
530 (void **)&wait_time, (bool *)&wait_time_set, "wait timeout"); 530 (void *)&wait_time, (bool *)&wait_time_set, "wait timeout");
531 init_opts(&opts[1], 'c', false, OPTION_ARG_TYPE_FLG, 531 init_opts(&opts[1], 'c', false, OPTION_ARG_TYPE_FLG,
532 (void **)&cache_enabled, (bool *)0, "go with caches enabled"); 532 (void *)&cache_enabled, (bool *)0, "go with caches enabled");
533 num_options = 2; 533 num_options = 2;
534 #ifdef CYGPKG_IO_ETH_DRIVERS 534 #ifdef CYGPKG_IO_ETH_DRIVERS
535 init_opts(&opts[2], 'n', false, OPTION_ARG_TYPE_FLG, 535 init_opts(&opts[2], 'n', false, OPTION_ARG_TYPE_FLG,
536 (void **)&stop_net, (bool *)0, "go with network driver stopped"); 536 (void *)&stop_net, (bool *)0, "go with network driver stopped");
537 num_options++; 537 num_options++;
538 #endif 538 #endif
539 if (!scan_opts(argc, argv, 1, opts, num_options, (void *)&entry, OPTION_ARG_TYPE_NUM, "starting address")) 539 if (!scan_opts(argc, argv, 1, opts, num_options, (void *)&entry, OPTION_ARG_TYPE_NUM, "starting address"))
540 { 540 {
541 return; 541 return;
685 #ifdef CYGSEM_REDBOOT_FLASH_CONFIG 685 #ifdef CYGSEM_REDBOOT_FLASH_CONFIG
686 struct config_option opt; 686 struct config_option opt;
687 #endif 687 #endif
688 688
689 init_opts(&opts[0], 'b', true, OPTION_ARG_TYPE_NUM, 689 init_opts(&opts[0], 'b', true, OPTION_ARG_TYPE_NUM,
690 (void **)&new_rate, (bool *)&new_rate_set, "new baud rate"); 690 (void *)&new_rate, (bool *)&new_rate_set, "new baud rate");
691 if (!scan_opts(argc, argv, 1, opts, 1, 0, 0, "")) { 691 if (!scan_opts(argc, argv, 1, opts, 1, 0, 0, "")) {
692 return; 692 return;
693 } 693 }
694 __chan = CYGACC_CALL_IF_CONSOLE_PROCS(); 694 __chan = CYGACC_CALL_IF_CONSOLE_PROCS();
695 if (new_rate_set) { 695 if (new_rate_set) {