diff options
author | shemminger <shemminger> | 2006-03-14 19:38:34 +0000 |
---|---|---|
committer | shemminger <shemminger> | 2006-03-14 19:38:34 +0000 |
commit | 46b67dab264f424b0e9c59f7b5b7283623c679cd (patch) | |
tree | 3d6b5f640493a1c9165660e9a4318d4d05a1ba2e | |
parent | 3925ad811940c391dee973dd2f842c7b322556ef (diff) |
Fix build errors from last patchss-060314
-rw-r--r-- | tc/f_u32.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -834,8 +834,9 @@ static int u32_parse_opt(struct filter_util *qu, char *handle, int argc, char ** } else if (matches(*argv, "divisor") == 0) { unsigned divisor; NEXT_ARG(); - if (get_unsigned(&divisor, *argv, 0) || divisor == 0 || - divisor > 0x100 || (divisor - 1 & divisor)) { + if (get_unsigned(&divisor, *argv, 0) || + divisor == 0 || + divisor > 0x100 || ((divisor - 1) & divisor)) { fprintf(stderr, "Illegal \"divisor\"\n"); return -1; } @@ -881,7 +882,7 @@ static int u32_parse_opt(struct filter_util *qu, char *handle, int argc, char ** struct tc_u32_sel sel; struct tc_u32_key keys[4]; } sel2; - memset(sel2, 0, sizeof(sel32)); + memset(&sel2, 0, sizeof(sel2)); NEXT_ARG(); if (parse_selector(&argc, &argv, &sel2.sel, n)) { fprintf(stderr, "Illegal \"sample\"\n"); @@ -894,7 +895,7 @@ static int u32_parse_opt(struct filter_util *qu, char *handle, int argc, char ** if (*argv != 0 && strcmp(*argv, "divisor") == 0) { NEXT_ARG(); if (get_unsigned(&divisor, *argv, 0) || divisor == 0 || - divisor > 0x100 || (divisor - 1 & divisor)) { + divisor > 0x100 || ((divisor - 1) & divisor)) { fprintf(stderr, "Illegal sample \"divisor\"\n"); return -1; } |