Skip to content

Commit

Permalink
examples: fix mi-mctp build warning errors
Browse files Browse the repository at this point in the history
Initialize net and eid variables to 0.

Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t authored and igaw committed Apr 30, 2024
1 parent 4846625 commit 7250989
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/mi-mctp.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,8 @@ int main(int argc, char **argv)
nvme_root_t root;
nvme_mi_ep_t ep;
bool dbus = false, usage = true;
uint8_t eid;
int rc = 0, net;
uint8_t eid = 0;
int rc = 0, net = 0;

if (argc >= 2 && strcmp(argv[1], "dbus") == 0) {
usage = false;
Expand Down

0 comments on commit 7250989

Please sign in to comment.