summaryrefslogtreecommitdiff
path: root/usr.sbin/route6d/route6d.c
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-10-25 23:53:36 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2015-10-25 23:53:36 +0000
commit4e705126e860d2f88020175ab189d8b9f6e00a89 (patch)
treed7d5bcc8fe52385a6763928c9d318c01bab6135a /usr.sbin/route6d/route6d.c
parentafe54e52196d7c84ae46991e2ae9da60512071fe (diff)
hms() returns a pointer to static storage, annotate the return type with "const"
No functional change.
Diffstat (limited to 'usr.sbin/route6d/route6d.c')
-rw-r--r--usr.sbin/route6d/route6d.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c
index c6581fc1999..5b38bc4a564 100644
--- a/usr.sbin/route6d/route6d.c
+++ b/usr.sbin/route6d/route6d.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route6d.c,v 1.76 2015/10/25 23:50:23 jca Exp $ */
+/* $OpenBSD: route6d.c,v 1.77 2015/10/25 23:53:35 jca Exp $ */
/* $KAME: route6d.c,v 1.111 2006/10/25 06:38:13 jinmei Exp $ */
/*
@@ -235,7 +235,7 @@ struct in6_addr *getroute(struct netinfo6 *, struct in6_addr *);
void krtread(int);
int tobeadv(struct riprt *, struct ifc *);
char *xstrdup(const char *);
-char *hms(void);
+const char *hms(void);
const char *inet6_n2p(const struct in6_addr *);
struct ifac *ifa_match(const struct ifc *, const struct in6_addr *, int);
struct in6_addr *plen2mask(int);
@@ -3230,7 +3230,7 @@ xstrdup(const char *p)
return q;
}
-char *
+const char *
hms(void)
{
static char buf[BUFSIZ];