Remove info() and die()

This commit is contained in:
Johan Malm 2021-07-22 21:30:17 +01:00
parent 22f5073ebd
commit 20fd8f59a7
11 changed files with 26 additions and 51 deletions

View file

@ -85,7 +85,7 @@ find_dir(struct ctx *ctx)
/* handle /etc/xdg... */
ctx->build_path_fn(ctx, NULL, d.path);
if (debug) {
info("%s", ctx->buf);
fprintf(stderr, "%s\n", ctx->buf);
}
if (isdir(ctx->buf)) {
return ctx->buf;
@ -100,7 +100,7 @@ find_dir(struct ctx *ctx)
for (gchar **p = prefixes; *p; p++) {
ctx->build_path_fn(ctx, *p, d.path);
if (debug) {
info("%s", ctx->buf);
fprintf(stderr, "%s\n", ctx->buf);
}
if (isdir(ctx->buf)) {
g_strfreev(prefixes);