Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libterminfo/compile.c,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libterminfo/compile.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.16 retrieving revision 1.17 diff -u -p -r1.16 -r1.17 --- src/lib/libterminfo/compile.c 2020/03/27 17:39:53 1.16 +++ src/lib/libterminfo/compile.c 2020/03/28 02:38:15 1.17 @@ -1,4 +1,4 @@ -/* $NetBSD: compile.c,v 1.16 2020/03/27 17:39:53 christos Exp $ */ +/* $NetBSD: compile.c,v 1.17 2020/03/28 02:38:15 christos Exp $ */ /* * Copyright (c) 2009, 2010, 2011, 2020 The NetBSD Foundation, Inc. @@ -32,7 +32,7 @@ #endif #include -__RCSID("$NetBSD: compile.c,v 1.16 2020/03/27 17:39:53 christos Exp $"); +__RCSID("$NetBSD: compile.c,v 1.17 2020/03/28 02:38:15 christos Exp $"); #if !HAVE_NBTOOL_CONFIG_H || HAVE_SYS_ENDIAN_H #include @@ -416,7 +416,9 @@ _ti_get_token(char **cap, char sep) static int _ti_find_rtype(const char *cap) { - for (const char *ptr = cap; (ptr = strchr(ptr, '#')) != NULL;) { + const char *ptr; + + for (ptr = cap; (ptr = strchr(ptr, '#')) != NULL;) { if (strtol(++ptr, NULL, 0) > SHRT_MAX) { return TERMINFO_RTYPE; }