Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/route/classid.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ char *rtnl_tc_handle2str(uint32_t handle, char *buf, size_t len)
*/
int rtnl_tc_str2handle(const char *str, uint32_t *res)
{
char *colon, *end;
const char *colon;
char *colon2, *end;
uint32_t h;
int err;

Expand All @@ -172,7 +173,8 @@ int rtnl_tc_str2handle(const char *str, uint32_t *res)
return 0;
}

h = strtoul(str, &colon, 16);
h = strtoul(str, &colon2, 16);
colon = colon2;

/* MAJ is not a number */
if (colon == str) {
Expand Down
2 changes: 1 addition & 1 deletion lib/route/qdisc/netem.c
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ int rtnl_netem_set_delay_distribution(struct rtnl_qdisc *qdisc, const char *dist
char name[NAME_MAX];
char dist_suffix[] = ".dist";
_nl_auto_free int16_t *data = NULL;
char *test_suffix;
const char *test_suffix;

/* Check several locations for the dist file */
char *test_path[] = {
Expand Down