preparatory patch for -Wwrite-strings #8 (missed part)
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#include <linux/if_arp.h>
|
||||
|
||||
#include "rt_names.h"
|
||||
@@ -19,9 +18,9 @@
|
||||
const char* ll_type_n2a(int type, char *buf, int len)
|
||||
{
|
||||
#define __PF(f,n) { ARPHRD_##f, #n },
|
||||
static struct {
|
||||
static const struct {
|
||||
int type;
|
||||
char *name;
|
||||
const char *name;
|
||||
} arphrd_names[] = {
|
||||
{ 0, "generic" },
|
||||
__PF(ETHER,ether)
|
||||
|
||||
@@ -25,5 +25,4 @@ extern int ll_addr_a2n(unsigned char *lladdr, int len, char *arg);
|
||||
extern const char* ll_proto_n2a(unsigned short id, char *buf, int len);
|
||||
extern int ll_proto_a2n(unsigned short *id, char *buf);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user