preparatory patch for -Wwrite-strings #6
This commit is contained in:
@@ -24,7 +24,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)
|
||||
|
||||
@@ -13,11 +13,10 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "rt_names.h"
|
||||
#include "utils.h"
|
||||
|
||||
char *rtnl_rtntype_n2a(int id, char *buf, int len)
|
||||
const char *rtnl_rtntype_n2a(int id, char *buf, int len)
|
||||
{
|
||||
switch (id) {
|
||||
case RTN_UNSPEC:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#ifndef __RTM_MAP_H__
|
||||
#define __RTM_MAP_H__ 1
|
||||
|
||||
char *rtnl_rtntype_n2a(int id, char *buf, int len);
|
||||
const char *rtnl_rtntype_n2a(int id, char *buf, int len);
|
||||
int rtnl_rtntype_a2n(int *id, char *arg);
|
||||
|
||||
int get_rt_realms(uint32_t *realms, char *arg);
|
||||
|
||||
Reference in New Issue
Block a user