summaryrefslogtreecommitdiff
path: root/avr/cmd_cpu.c
diff options
context:
space:
mode:
authorLeo C2018-10-01 15:49:00 +0200
committerLeo C2018-10-01 15:49:00 +0200
commitd2f546c134b8c7ae6e2068aaf9316bb8835c13c2 (patch)
tree0f846ea2a82a91958975f36c306e298018e20342 /avr/cmd_cpu.c
parentf6154a3944b775a6d6846f132b184d94b44bc204 (diff)
parentdd1cc6f0b4a9cc2b49afb86c768813c087e46b4b (diff)
downloadz180-stamp-d2f546c134b8c7ae6e2068aaf9316bb8835c13c2.zip
Merge branch 'z80-if' of ssh://cb/home/leo/Projekte/stamp/z180-stamp into z80-if
Diffstat (limited to 'avr/cmd_cpu.c')
-rw-r--r--avr/cmd_cpu.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/avr/cmd_cpu.c b/avr/cmd_cpu.c
index 61e3ec3..f343885 100644
--- a/avr/cmd_cpu.c
+++ b/avr/cmd_cpu.c
@@ -225,9 +225,6 @@ command_ret_t do_cpu_test(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int
uint32_t pulsewidth = 10; /* ms */
- /* reset getopt() */
- optind = 0;
-
int opt;
while ((opt = getopt(argc, argv, PSTR("t:"))) != -1) {
switch (opt) {
@@ -258,8 +255,6 @@ command_ret_t do_bus_test(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int
char ch;
#if 0
- /* reset getopt() */
- optind = 0;
int opt;
while ((opt = getopt(argc, argv, PSTR("t:"))) != -1) {
switch (opt) {
@@ -363,9 +358,6 @@ command_ret_t do_cpu_freq(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int
uint8_t mem_save[ARRAY_SIZE(loop_code)];
- /* reset getopt() */
- optind = 0;
-
int opt;
while ((opt = getopt(argc, argv, PSTR("swnuc:t:"))) != -1) {
switch (opt) {