=================================================================== RCS file: /cvs/mandoc/compat_strsep.c,v retrieving revision 1.1 retrieving revision 1.6 diff -u -p -r1.1 -r1.6 --- mandoc/compat_strsep.c 2013/12/31 23:03:47 1.1 +++ mandoc/compat_strsep.c 2022/06/21 10:34:14 1.6 @@ -1,15 +1,6 @@ -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +/* $Id: compat_strsep.c,v 1.6 2022/06/21 10:34:14 schwarze Exp $ */ +/* $OpenBSD: compat_strsep.c,v 1.6 2022/06/21 10:34:14 schwarze Exp $ */ -#ifdef HAVE_STRSEP - -int dummy; - -#else - -/* ($)OpenBSD: strsep.c,v 1.6 2005/08/08 08:05:37 espie Exp $ */ - /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -38,7 +29,10 @@ int dummy; * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ +#include "config.h" +#include + /* * Get next token from string *stringp, where tokens are possibly-empty * strings separated by characters from delim. @@ -76,5 +70,3 @@ strsep(char **stringp, const char *delim) } /* NOTREACHED */ } - -#endif