Thanks to Sebastian Huber.
{ 0, NULL }
};
-static const char *dhcp_params[] = {
+static const char * const dhcp_params[] = {
"ip_address",
"subnet_cidr",
"network_number",
void
dhcp_printoptions(void)
{
- const char **p;
+ const char * const *p;
size_t i;
const struct dhcp_opt *opt;
//#define VENDOR_SPLIT
static int sock = -1;
-static struct in6_addr in6addr_linklocal_alldhcp =
+static const struct in6_addr in6addr_linklocal_alldhcp =
IN6ADDR_LINKLOCAL_ALLDHCP_INIT;
static struct sockaddr_in6 from;
static struct msghdr sndhdr;
#define INITDEFINES @INITDEFINES@
#define INITDEFINE6S @INITDEFINE6S@
-extern const char *dhcpcd_embedded_conf[];
+extern const char * const dhcpcd_embedded_conf[];
int skip = 0, have_profile = 0;
#ifndef EMBEDDED_CONFIG
char *buf;
- const char **e;
+ const char * const *e;
size_t buflen, ol;
#endif
#if !defined(INET) || !defined(INET6)
#define DEFAULT_PATH "PATH=/usr/bin:/usr/sbin:/bin:/sbin"
-static const char *if_params[] = {
+static const char * const if_params[] = {
"interface",
"reason",
"pid",
void
if_printoptions(void)
{
- const char **p;
+ const char * const *p;
for (p = if_params; *p; p++)
printf(" - %s\n", *p);