From b0983ab18b97c5712561c50b851c55784b97824d Mon Sep 17 00:00:00 2001 From: tTh Date: Mon, 11 Nov 2024 17:13:20 +0100 Subject: [PATCH] msg bug + better exit --- Fonderie/interpolator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Fonderie/interpolator.c b/Fonderie/interpolator.c index 873a3fb..f4d6869 100644 --- a/Fonderie/interpolator.c +++ b/Fonderie/interpolator.c @@ -55,7 +55,7 @@ IdxValue *idxvalues; #if DEBUG_LEVEL fprintf(stderr, ">>> %s ( %p %p %d %p)\n", __func__, ptr_glob, - ptr_idxval, method, average); + ptr_idxval, method, p_average); #endif if (0==method && verbosity) { @@ -140,8 +140,8 @@ foo = glob(pattern, 0, NULL, &globbuf); fprintf(stderr, " globbing '%s' -> %d, %d files found\n", pattern, foo, (int)globbuf.gl_pathc); if (0 == globbuf.gl_pathc) { - fprintf(stderr, "%s : no file found, aborting\n", __func__); - return -1; + fprintf(stderr, "%s : no file found, ABEND\n", __func__); + exit(1); } idx_values = NULL;