pscan: new applet (portscanner). ~1350 bytes. By Tito <farmatito@tiscali.it>
[oweals/busybox.git] / networking / libiproute / ll_proto.c
index 9ee5ab23f8159df78cd6c16ec095d0b84e462749..10d749881cb4fef39465e09d2be2b6c76491bb87 100644 (file)
@@ -1,3 +1,4 @@
+/* vi: set sw=4 ts=4: */
 /*
  * ll_proto.c
  *
  * Authors:    Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
  */
 
-#include <stdio.h>
-#include <arpa/inet.h>
-#include <string.h>
-
+#include "libbb.h"
 #include "rt_names.h"
 #include "utils.h"
 
-#if __GLIBC__ >=2 && __GLIBC_MINOR >= 1
+#if defined(__GLIBC__) && __GLIBC__ >=2 && __GLIBC_MINOR__ >= 1
 #include <net/ethernet.h>
 #else
 #include <linux/if_ether.h>
@@ -25,7 +23,7 @@
 #define __PF(f,n) { ETH_P_##f, #n },
 static struct {
        int id;
-       char *name;
+       const char *name;
 } llproto_names[] = {
 __PF(LOOP,loop)
 __PF(PUP,pup)