Commit fd9f0c06 authored by Maria Matejka's avatar Maria Matejka Committed by Maria Matejka
Browse files

Configuration strings are constant.

This is merely a const propagation. There was no problem in there.
parent a1090561
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ struct config {
  list symbols;				/* Configured symbols in config order */

  int mrtdump_file;			/* Configured MRTDump file (sysdep, fd in unix) */
  char *syslog_name;			/* Name used for syslog (NULL -> no syslog) */
  const char *syslog_name;		/* Name used for syslog (NULL -> no syslog) */
  struct rtable_config *def_tables[NET_MAX]; /* Default routing tables for each network */
  struct iface_patt *router_id_from;	/* Configured list of router ID iface patterns */

+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ CF_DECLS
  net_addr net;
  net_addr *net_ptr;
  struct symbol *s;
  char *t;
  const char *t;
  struct rtable_config *r;
  struct channel_config *cc;
  struct f_inst *x;
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ struct f_val {
    lcomm lc;
    ip_addr ip;
    const net_addr *net;
    char *s;
    const char *s;
    const struct f_tree *t;
    const struct f_trie *ti;
    const struct adata *ad;
+2 −2
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ typedef struct birdsock {
  int rcv_ttl;				/* TTL of last received datagram */
  node n;
  void *rbuf_alloc, *tbuf_alloc;
  char *password;			/* Password for MD5 authentication */
  const char *password;			/* Password for MD5 authentication */
  const char *err;			/* Error message */
  struct ssh_sock *ssh;			/* Used in SK_SSH */
} sock;
@@ -106,7 +106,7 @@ int sk_leave_group(sock *s, ip_addr maddr); /* Leave multicast group on sk iface
int sk_setup_broadcast(sock *s);
int sk_set_ttl(sock *s, int ttl);	/* Set transmit TTL for given socket */
int sk_set_min_ttl(sock *s, int ttl);	/* Set minimal accepted TTL for given socket */
int sk_set_md5_auth(sock *s, ip_addr local, ip_addr remote, int pxlen, struct iface *ifa, char *passwd, int setkey);
int sk_set_md5_auth(sock *s, ip_addr local, ip_addr remote, int pxlen, struct iface *ifa, const char *passwd, int setkey);
int sk_set_ipv6_checksum(sock *s, int offset);
int sk_set_icmp6_filter(sock *s, int p1, int p2);
void sk_log_error(sock *s, const char *p);
+1 −1
Original line number Diff line number Diff line
@@ -253,7 +253,7 @@ timer_init(void)
 * type &btime.
 */
btime
tm_parse_time(char *x)
tm_parse_time(const char *x)
{
  struct tm tm;
  int usec, n1, n2, n3, r;
Loading