From 7231ed61c6aa07af00e1d1d72e922aa7dd40b9cf Mon Sep 17 00:00:00 2001 From: jca Date: Sun, 25 Oct 2015 23:53:35 +0000 Subject: [PATCH] hms() returns a pointer to static storage, annotate the return type with "const" No functional change. --- usr.sbin/route6d/route6d.c | 6 +++--- 1 file 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]; -- 2.20.1