Remove unused msg_dump arg
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Fri, 18 Nov 2016 16:40:06 +0000 (17:40 +0100)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Fri, 18 Nov 2016 16:55:26 +0000 (17:55 +0100)
nmrp.c

diff --git a/nmrp.c b/nmrp.c
index 7f65e5631e26a59f7971b00b72ec0636046ba929..42057a56b7ceaf4b082dc4709a09b29734cb1437 100644 (file)
--- a/nmrp.c
+++ b/nmrp.c
@@ -134,10 +134,9 @@ static uint16_t to_region_code(const char *region)
        return 0;
 }
 
-static void msg_dump(struct nmrp_msg *msg, int dump_opts)
+static void msg_dump(struct nmrp_msg *msg)
 {
-       struct nmrp_opt *opt;
-       int remain_len, len, i;
+       int remain_len;
 
        fprintf(stderr, "res=0x%04x, code=0x%02x, id=0x%02x, len=%u",
                        msg->reserved, msg->code, msg->id, msg->len);
@@ -200,7 +199,7 @@ static int msg_ntoh(struct nmrp_msg *msg)
        }
 
        fprintf(stderr, "Unexpected message format.\n");
-       msg_dump(msg, 0);
+       msg_dump(msg);
        return 1;
 }
 
@@ -714,7 +713,7 @@ int nmrp_do(struct nmrpd_args *args)
                        default:
                                fprintf(stderr, "Unknown message code 0x%02x!\n",
                                                rx.msg.code);
-                               msg_dump(&rx.msg, 0);
+                               msg_dump(&rx.msg);
                }
 
                if (tx.msg.code != NMRP_C_NONE) {