Skip to content

Commit

Permalink
Attempt to fix issue and remove unnecessary CFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
CE1CECL authored Oct 26, 2023
1 parent 0c6e87a commit 7681271
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

LIBUSB = 1
CFLAGS = -O2 -Wall -Wextra -std=c99 -pedantic -Wno-unused
CFLAGS = -std=c99
CFLAGS += -DUSE_LIBUSB=$(LIBUSB)
APPNAME = spd_dump

Expand Down
2 changes: 1 addition & 1 deletion spd_dump.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ static void send_and_check(spdio_t *io) {
int ret;
send_msg(io);
ret = recv_msg(io);
if (!ret) ERR_EXIT("timeout reached\n");
while (!ret);
ret = recv_type(io);
if (ret != BSL_REP_ACK)
ERR_EXIT("unexpected response (0x%04x)\n", ret);
Expand Down
2 changes: 1 addition & 1 deletion spd_dump_interactive.c
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ static void send_and_check(spdio_t *io) {
int ret;
send_msg(io);
ret = recv_msg(io);
if (!ret) ERR_EXIT("timeout reached\n");
while (!ret);
ret = recv_type(io);
if (ret != BSL_REP_ACK)
ERR_EXIT("unexpected response (0x%04x)\n", ret);
Expand Down

0 comments on commit 7681271

Please sign in to comment.