* documentation is at <https://www.eyrie.org/~eagle/software/c-tap-harness/>.
*
* Written by Russ Allbery <eagle@eyrie.org>
- * Copyright 2009-2019 Russ Allbery <eagle@eyrie.org>
+ * Copyright 2009-2019, 2021 Russ Allbery <eagle@eyrie.org>
* Copyright 2001-2002, 2004-2008, 2011-2014
* The Board of Trustees of the Leland Stanford Junior University
*
/* Print out the lazy plan if needed. */
fflush(stderr);
- if (_lazy && _planned > 0)
+ if (_lazy)
printf("1..%lu\n", _planned);
/* Print out a summary of the results. */
size_t length;
/* Don't assume that the source string is nul-terminated. */
- for (p = s; (size_t)(p - s) < n && *p != '\0'; p++)
+ for (p = s; (size_t) (p - s) < n && *p != '\0'; p++)
;
- length = (size_t)(p - s);
+ length = (size_t) (p - s);
copy = (char *) malloc(length + 1);
if (copy == NULL)
sysbail("failed to strndup %lu bytes", (unsigned long) length);