]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
remove extra newline from perror() calls
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Sat, 26 Jan 2008 19:08:31 +0000 (11:08 -0800)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Sat, 26 Jan 2008 19:08:31 +0000 (11:08 -0800)
perror error adds a newline, so don't split error message
across two lines.

ip/ipaddress.c
ip/ipneigh.c
ip/iproute.c
ip/xfrm_policy.c

index d1c66204e1a66ee081b0ae5d9464154d604c8331..6dc61eba996047b8f482bfceebb8fd5ae1598d6a 100644 (file)
@@ -317,7 +317,7 @@ int print_linkinfo(const struct sockaddr_nl *who,
 static int flush_update(void)
 {
        if (rtnl_send(&rth, filter.flushb, filter.flushp) < 0) {
-               perror("Failed to send flush request\n");
+               perror("Failed to send flush request");
                return -1;
        }
        filter.flushp = 0;
index db684f59af0d1210853fe288c89f6fdc2ad6053c..b40de5b4364528a7c63eff5cd22ba1c04c7191c9 100644 (file)
@@ -88,7 +88,7 @@ int nud_state_a2n(unsigned *state, char *arg)
 static int flush_update(void)
 {
        if (rtnl_send(&rth, filter.flushb, filter.flushp) < 0) {
-               perror("Failed to send flush request\n");
+               perror("Failed to send flush request");
                return -1;
        }
        filter.flushp = 0;
index 7a885b0ce080be085068141779d6704cef633b4b..685cb85fe16b3fad05d8473f095b02f5fbc03fed 100644 (file)
@@ -113,7 +113,7 @@ static struct
 static int flush_update(void)
 {
        if (rtnl_send(&rth, filter.flushb, filter.flushp) < 0) {
-               perror("Failed to send flush request\n");
+               perror("Failed to send flush request");
                return -1;
        }
        filter.flushp = 0;
index 419ca67b4890ef8cb6aae770ed9c4d3df45fb0ed..b5e5c3fee45e807c5e5f2d2087edaed27587d13b 100644 (file)
@@ -784,7 +784,7 @@ static int xfrm_policy_list_or_deleteall(int argc, char **argv, int deleteall)
                        }
 
                        if (rtnl_send(&rth, xb.buf, xb.offset) < 0) {
-                               perror("Failed to send delete-all request\n");
+                               perror("Failed to send delete-all request");
                                exit(1);
                        }
                        if (show_stats > 1)