Skip to content

Commit 1257fd2

Browse files
vigneshraja123717root
authored andcommitted
fixed warnings
1 parent dd312f2 commit 1257fd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cli/graph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static void draw_status(WINDOW *win, int x_off, int x_cnt, const char *status)
134134
mvwprintw(win, 0, 0, " ");
135135
for (i = 0; i < x_cnt * 2 + x_off; i++)
136136
mvwaddch(win, 1, i, ' ');
137-
mvwprintw(win, 1, x_off, status);
137+
mvwprintw(win, 1, x_off, "%s",status);
138138
wrefresh(win);
139139
}
140140

lib/diag.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ int switchtec_diag_eye_fetch(struct switchtec_dev *dev, struct switchtec_diag_po
251251
data.eye_right = out.eye_right;
252252
data.eye_top_x1 = out.eye_top_x1;
253253
data.eye_bottom_x1 = out.eye_bottom_x1;
254-
memcpy(data_out, &data, sizeof(struct switchtec_diag_port_eye_fetch));
254+
memcpy(data_out, &data, sizeof(struct switchtec_diag_port_eye_data));
255255
}
256256
else
257257
{

0 commit comments

Comments
 (0)