summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2022-01-20 14:38:56 (GMT)
committerGitHub <noreply@github.com>2022-01-20 14:38:56 (GMT)
commitd45124d7085de2771c0157f5d48d71b21a10de1f (patch)
tree20f245d0923a196fc24ebeaea1bee22c4f978c46 /test
parentdd6ad33c75bf084f08d4e84f92ab997c704b2096 (diff)
downloadhdf5-d45124d7085de2771c0157f5d48d71b21a10de1f.zip
hdf5-d45124d7085de2771c0157f5d48d71b21a10de1f.tar.gz
hdf5-d45124d7085de2771c0157f5d48d71b21a10de1f.tar.bz2
Open bsd fixes (#1195)
Diffstat (limited to 'test')
-rw-r--r--test/app_ref.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/app_ref.c b/test/app_ref.c
index 2777dc0..c4ac60c 100644
--- a/test/app_ref.c
+++ b/test/app_ref.c
@@ -69,8 +69,10 @@ Abrt_Handler(int H5_ATTR_UNUSED sig)
{
int i, n;
+ const char *string = " ID reference count: ";
for (i = 0; i < T_NUMCLASSES; i++) {
- HDfprintf(stderr, "%s ID reference count: %n", IDNAME[i], &n);
+ HDfprintf(stderr, "%s%s", IDNAME[i], string);
+ n = (int)(strlen(IDNAME[i]) + strlen(string));
HDfprintf(stderr, "%*d\n", (n < ERR_WIDTH) ? (ERR_WIDTH - n) : 0, rc[i]);
}
}