diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-04-23 23:15:18 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-04-23 23:15:50 +0300 |
commit | 662f6eddf08edc3f2ba30ac58853cb0de86b30a3 (patch) | |
tree | e7a0369e84690d3dd5ec8c5877c68d8dd730173e /src/vtab.c | |
parent | 8234484dba123ad8001657def8fb57133f9610bf (diff) | |
download | wydawca-662f6eddf08edc3f2ba30ac58853cb0de86b30a3.tar.gz wydawca-662f6eddf08edc3f2ba30ac58853cb0de86b30a3.tar.bz2 |
Remove a left-over global variable
Diffstat (limited to 'src/vtab.c')
-rw-r--r-- | src/vtab.c | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -127,8 +127,8 @@ int move_file(struct wy_triplet *trp, enum file_type file_id) { int rc = trp->spool->vtab.move_file(trp, file_id); - report_add("Move %s to %s: %s", trp->file[file_id].name, - trp->relative_dir, rc == 0 ? "OK" : "FAILED"); + triplet_report_add(trp, "Move %s to %s: %s", trp->file[file_id].name, + trp->relative_dir, rc == 0 ? "OK" : "FAILED"); return rc; } @@ -136,8 +136,9 @@ int archive_file(struct wy_triplet *trp, const char *file_name) { int rc = trp->spool->vtab.archive_file(trp, file_name); - report_add("Archive and remove %s/%s: %s", - trp->relative_dir, file_name, rc == 0 ? "OK" : "FAILED"); + triplet_report_add(trp, "Archive and remove %s/%s: %s", + trp->relative_dir, file_name, + rc == 0 ? "OK" : "FAILED"); return rc; } @@ -146,8 +147,9 @@ symlink_file(struct wy_triplet *trp, const char *wanted_src, const char *wanted_dst) { int rc = trp->spool->vtab.symlink_file(trp, wanted_src, wanted_dst); - report_add("Symlink %s to %s in %s/: %s", wanted_src, wanted_dst, - trp->relative_dir, rc == 0 ? "OK" : "FAILED"); + triplet_report_add(trp, "Symlink %s to %s in %s/: %s", + wanted_src, wanted_dst, + trp->relative_dir, rc == 0 ? "OK" : "FAILED"); return rc; } @@ -155,7 +157,8 @@ int rmsymlink_file(struct wy_triplet *trp, const char *file_name) { int rc = trp->spool->vtab.rmsymlink_file(trp, file_name); - report_add("Remove symlink %s/%s: %s", trp->relative_dir, file_name, - rc == 0 ? "OK" : "FAILED"); + triplet_report_add(trp, "Remove symlink %s/%s: %s", + trp->relative_dir, file_name, + rc == 0 ? "OK" : "FAILED"); return rc; } |