From b723c868d17ff4ca624afccdce2d75ebf4a85046 Mon Sep 17 00:00:00 2001 From: schwarze Date: Mon, 30 Dec 2013 18:27:15 +0000 Subject: [PATCH] Remove duplicate const specifiers from the declaration of mandoc_escape(). Found by Thomas Klausner using clang. No functional change. --- usr.bin/mandoc/mandoc.c | 4 ++-- usr.bin/mandoc/mandoc.h | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/usr.bin/mandoc/mandoc.c b/usr.bin/mandoc/mandoc.c index 82c03f522df..d65f286d1cd 100644 --- a/usr.bin/mandoc/mandoc.c +++ b/usr.bin/mandoc/mandoc.c @@ -1,4 +1,4 @@ -/* $Id: mandoc.c,v 1.43 2013/12/30 00:52:18 schwarze Exp $ */ +/* $Id: mandoc.c,v 1.44 2013/12/30 18:27:15 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * Copyright (c) 2011, 2012, 2013 Ingo Schwarze @@ -36,7 +36,7 @@ static char *time2a(time_t); enum mandoc_esc -mandoc_escape(const char const **end, const char const **start, int *sz) +mandoc_escape(const char **end, const char **start, int *sz) { const char *local_start; int local_sz; diff --git a/usr.bin/mandoc/mandoc.h b/usr.bin/mandoc/mandoc.h index 134f2e33a28..b57a487416d 100644 --- a/usr.bin/mandoc/mandoc.h +++ b/usr.bin/mandoc/mandoc.h @@ -1,4 +1,4 @@ -/* $Id: mandoc.h,v 1.55 2013/10/05 21:17:29 schwarze Exp $ */ +/* $Id: mandoc.h,v 1.56 2013/12/30 18:27:15 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2012, 2013 Ingo Schwarze @@ -400,8 +400,7 @@ struct man; __BEGIN_DECLS void *mandoc_calloc(size_t, size_t); -enum mandoc_esc mandoc_escape(const char const **, - const char const **, int *); +enum mandoc_esc mandoc_escape(const char **, const char **, int *); void *mandoc_malloc(size_t); void *mandoc_realloc(void *, size_t); char *mandoc_strdup(const char *); -- 2.20.1