Fix kbuild bugs noticed by Bernhard Fischer <rep.nop@aon.at>
[oweals/busybox.git] / networking / interface.c
index c3cc7c0bc564d4d5cfe3381a464f0b9ff8a813e5..6c8e93879833cf236d74660cc17158a0a2dfddd9 100644 (file)
@@ -325,7 +325,7 @@ static int sockets_open(int family)
                        sfd = af->fd;
        }
        if (sfd < 0) {
-               bb_error_msg("No usable address families found.");
+               bb_error_msg("no usable address families found");
        }
        return sfd;
 }
@@ -363,7 +363,7 @@ static int nstrcmp(const char *a, const char *b)
        }
 
        if (isdigit(*a) && isdigit(*b)) {
-               return atoi(a_ptr) > atoi(b_ptr) ? 1 : -1;
+               return xatoul(a_ptr) > xatoul(b_ptr) ? 1 : -1;
        }
        return *a - *b;
 }
@@ -557,7 +557,7 @@ static int if_readlist_proc(char *target)
 
        fh = fopen(_PATH_PROCNET_DEV, "r");
        if (!fh) {
-               bb_perror_msg("Warning: cannot open %s. Limited output.", _PATH_PROCNET_DEV);
+               bb_perror_msg("warning: cannot open %s, limiting output", _PATH_PROCNET_DEV);
                return if_readconf();
        }
        fgets(buf, sizeof buf, fh);     /* eat line */
@@ -938,7 +938,7 @@ static void ife_print(struct interface *ptr)
                        printf("(auto)");
        }
 #endif
-       printf("\n");
+       puts("");
 
        if (ptr->has_ip) {
                printf("          %s addr:%s ", ap->name,
@@ -1007,7 +1007,7 @@ static void ife_print(struct interface *ptr)
                                default:
                                        printf("Unknown");
                                }
-                               printf("\n");
+                               puts("");
                        }
                }
                fclose(f);
@@ -1034,7 +1034,7 @@ static void ife_print(struct interface *ptr)
        if (ptr->outfill || ptr->keepalive)
                printf("  Outfill:%d  Keepalive:%d", ptr->outfill, ptr->keepalive);
 #endif
-       printf("\n");
+       puts("");
 
        /* If needed, display the interface statistics. */
 
@@ -1083,9 +1083,9 @@ static void ife_print(struct interface *ptr)
                }
                if (ptr->map.dma)
                        printf("DMA chan:%x ", ptr->map.dma);
-               printf("\n");
+               puts("");
        }
-       printf("\n");
+       puts("");
 }