]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
iplink_can: fix coding style for pointer format
authorVincent Mailhol <mailhol@kernel.org>
Sun, 21 Sep 2025 07:32:30 +0000 (16:32 +0900)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 26 Sep 2025 17:51:24 +0000 (10:51 -0700)
checkpatch.pl complains about the pointer symbol * being attached to the
type instead of being attached to the variable:

  ERROR: "foo* bar" should be "foo *bar"
  #85: FILE: ip/iplink_can.c:85:
  +        const char* name)

  ERROR: "foo* bar" should be "foo *bar"
  #93: FILE: ip/iplink_can.c:93:
  +static void print_ctrlmode(enum output_type t, __u32 flags, const char* key)

Fix those two warnings.

Signed-off-by: Vincent Mailhol <mailhol@kernel.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/iplink_can.c

index 9f6084e63986bd05d25a050176f4640c30596b85..1afdf08825f3d9cbbb0454592d2ed7dc1388a6de 100644 (file)
@@ -82,7 +82,7 @@ static void set_ctrlmode(char *name, char *arg,
 }
 
 static void print_flag(enum output_type t, __u32 *flags, __u32 flag,
-                      const charname)
+                      const char *name)
 {
        if (*flags & flag) {
                *flags &= ~flag;
@@ -90,7 +90,7 @@ static void print_flag(enum output_type t, __u32 *flags, __u32 flag,
        }
 }
 
-static void print_ctrlmode(enum output_type t, __u32 flags, const charkey)
+static void print_ctrlmode(enum output_type t, __u32 flags, const char *key)
 {
        if (!flags)
                return;