From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f67.google.com ([209.85.214.67]:54496 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752375AbeCMVQf (ORCPT ); Tue, 13 Mar 2018 17:16:35 -0400 Received: by mail-it0-f67.google.com with SMTP id w3-v6so1895791itc.4 for ; Tue, 13 Mar 2018 14:16:35 -0700 (PDT) From: Roman Mashak To: stephen@networkplumber.org Cc: netdev@vger.kernel.org, kernel@mojatatu.com, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, Roman Mashak Subject: [PATCH iproute2 1/1] tc: use get_u32() in psample action to match types Date: Tue, 13 Mar 2018 17:16:23 -0400 Message-Id: <1520975783-8593-1-git-send-email-mrv@mojatatu.com> Sender: netdev-owner@vger.kernel.org List-ID: Signed-off-by: Roman Mashak --- tc/m_sample.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tc/m_sample.c b/tc/m_sample.c index ff5ee6bd1ef6..dff986f59999 100644 --- a/tc/m_sample.c +++ b/tc/m_sample.c @@ -65,7 +65,7 @@ static int parse_sample(struct action_util *a, int *argc_p, char ***argv_p, while (argc > 0) { if (matches(*argv, "rate") == 0) { NEXT_ARG(); - if (get_unsigned(&rate, *argv, 10) != 0) { + if (get_u32(&rate, *argv, 10) != 0) { fprintf(stderr, "Illegal rate %s\n", *argv); usage(); return -1; @@ -73,7 +73,7 @@ static int parse_sample(struct action_util *a, int *argc_p, char ***argv_p, rate_set = true; } else if (matches(*argv, "group") == 0) { NEXT_ARG(); - if (get_unsigned(&group, *argv, 10) != 0) { + if (get_u32(&group, *argv, 10) != 0) { fprintf(stderr, "Illegal group num %s\n", *argv); usage(); @@ -82,7 +82,7 @@ static int parse_sample(struct action_util *a, int *argc_p, char ***argv_p, group_set = true; } else if (matches(*argv, "trunc") == 0) { NEXT_ARG(); - if (get_unsigned(&trunc, *argv, 10) != 0) { + if (get_u32(&trunc, *argv, 10) != 0) { fprintf(stderr, "Illegal truncation size %s\n", *argv); usage(); -- 2.7.4