@@ -2392,7 +2392,7 @@ open_tun(const char *dev, const char *dev_type, const char *dev_node, struct tun
2392
2392
{
2393
2393
if (ioctl (if_fd , SIOCGLIFFLAGS , & ifr ) < 0 )
2394
2394
{
2395
- msg (M_ERR , "Can't get flags\n " );
2395
+ msg (M_ERR , "Can't get flags" );
2396
2396
}
2397
2397
strncpynt (ifr .lifr_name , tt -> actual_name , sizeof (ifr .lifr_name ));
2398
2398
ifr .lifr_ppa = ppa ;
@@ -2403,7 +2403,7 @@ open_tun(const char *dev, const char *dev_type, const char *dev_node, struct tun
2403
2403
}
2404
2404
if (ioctl (if_fd , SIOCGLIFFLAGS , & ifr ) < 0 )
2405
2405
{
2406
- msg (M_ERR , "Can't get flags\n " );
2406
+ msg (M_ERR , "Can't get flags" );
2407
2407
}
2408
2408
/* Push arp module to if_fd */
2409
2409
if (ioctl (if_fd , I_PUSH , "arp" ) < 0 )
@@ -2422,18 +2422,18 @@ open_tun(const char *dev, const char *dev_type, const char *dev_node, struct tun
2422
2422
/* Push arp module to ip_fd */
2423
2423
if (ioctl (tt -> ip_fd , I_PUSH , "arp" ) < 0 )
2424
2424
{
2425
- msg (M_ERR , "Can't push ARP module\n " );
2425
+ msg (M_ERR , "Can't push ARP module" );
2426
2426
}
2427
2427
2428
2428
/* Open arp_fd */
2429
2429
if ((arp_fd = open (arp_node , O_RDWR , 0 )) < 0 )
2430
2430
{
2431
- msg (M_ERR , "Can't open %s\n " , arp_node );
2431
+ msg (M_ERR , "Can't open %s" , arp_node );
2432
2432
}
2433
2433
/* Push arp module to arp_fd */
2434
2434
if (ioctl (arp_fd , I_PUSH , "arp" ) < 0 )
2435
2435
{
2436
- msg (M_ERR , "Can't push ARP module\n " );
2436
+ msg (M_ERR , "Can't push ARP module" );
2437
2437
}
2438
2438
2439
2439
/* Set ifname to arp */
@@ -2443,7 +2443,7 @@ open_tun(const char *dev, const char *dev_type, const char *dev_node, struct tun
2443
2443
strioc_if .ic_dp = (char * )& ifr ;
2444
2444
if (ioctl (arp_fd , I_STR , & strioc_if ) < 0 )
2445
2445
{
2446
- msg (M_ERR , "Can't set ifname to arp\n " );
2446
+ msg (M_ERR , "Can't set ifname to arp" );
2447
2447
}
2448
2448
}
2449
2449
0 commit comments