summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2020-06-21 09:18:27 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2020-06-21 09:18:27 -0400
commit8a43400ccf2b23f60d1101ea4d348058e7ad3c36 (patch)
treed7b70419bbf8a50948531979dfb86aaedda2ce08 /src/list.c
parentfc19a82a10dc797605d6cb5d9028685644c6db3d (diff)
add/use new function parseWarning, which honors -v/-q options
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/list.c b/src/list.c
index 593204f..4422cc9 100644
--- a/src/list.c
+++ b/src/list.c
@@ -92,9 +92,8 @@ AddToList(name_list ** list_head, char *name, char *ptr)
nptr = malloc(sizeof(name_list));
if (nptr == NULL) {
- twmrc_error_prefix();
- fprintf(stderr, "unable to allocate %lu bytes for name_list\n",
- (unsigned long) sizeof(name_list));
+ parseWarning("unable to allocate %lu bytes for name_list",
+ (unsigned long) sizeof(name_list));
Done(NULL, NULL);
}