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