msg bug + better exit

This commit is contained in:
tTh 2024-11-11 17:13:20 +01:00
parent 08fcf513cc
commit b0983ab18b

View File

@ -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;