preparatory patch for -Wwrite-strings #8 (missed part)

This commit is contained in:
Denis Vlasenko 2007-01-30 00:44:41 +00:00
parent eb10e17b7b
commit 27a131e08e
2 changed files with 7 additions and 9 deletions

View File

@ -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)

View File

@ -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