From 70eda640d592be7beb5a1e054630a53b78331ebf Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Thu, 6 May 2021 15:54:39 +0200 Subject: [PATCH] slcan_attach: remove trailing whitespace Signed-off-by: Marc Kleine-Budde --- slcan_attach.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/slcan_attach.c b/slcan_attach.c index a022252..4e1ce13 100644 --- a/slcan_attach.c +++ b/slcan_attach.c @@ -213,7 +213,7 @@ int main(int argc, char **argv) /* try to rename the created device if requested */ if (name) { int s = socket(PF_INET, SOCK_DGRAM, 0); - + printf("rename netdevice %s to %s ... ", buf, name); if (s < 0) @@ -222,12 +222,12 @@ int main(int argc, char **argv) /* current slcan%d name is still in ifr.ifr_name */ memset (ifr.ifr_newname, 0, sizeof(ifr.ifr_newname)); strncpy (ifr.ifr_newname, name, sizeof(ifr.ifr_newname) - 1); - + if (ioctl(s, SIOCSIFNAME, &ifr) < 0) printf("failed!\n"); else printf("ok.\n"); - + close(s); } }