aboutsummaryrefslogtreecommitdiff
path: root/src/null.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/null.c')
-rw-r--r--src/null.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/null.c b/src/null.c
index 4a55b00..74a1870 100644
--- a/src/null.c
+++ b/src/null.c
@@ -17,14 +17,14 @@
#include "wydawca.h"
int
-null_move_file(struct file_triplet *trp, enum file_type file_id)
+null_move_file(struct wy_triplet *trp, enum file_type file_id)
{
const struct spool *spool = trp->spool;
const char *file_name = trp->file[file_id].name;
wy_debug(1, (_("spool %s: installing file `%s/%s'"),
spool->tag, trp->relative_dir, file_name));
UPDATE_STATS(STAT_UPLOADS);
- if (!dry_run_mode && unlink(file_name)) {
+ if (!wy_dry_run && unlink(file_name)) {
wy_log(LOG_ERR, _("cannot unlink %s: %s"),
file_name, strerror(errno));
return 1;
@@ -33,7 +33,7 @@ null_move_file(struct file_triplet *trp, enum file_type file_id)
}
int
-null_archive_file(struct file_triplet *trp, const char *file_name)
+null_archive_file(struct wy_triplet *trp, const char *file_name)
{
wy_debug(1, (_("spool %s: archiving `%s'"),
trp->spool->tag, file_name));
@@ -42,7 +42,7 @@ null_archive_file(struct file_triplet *trp, const char *file_name)
}
int
-null_symlink_file(struct file_triplet *trp,
+null_symlink_file(struct wy_triplet *trp,
const char *wanted_src, const char *wanted_dst)
{
wy_debug(1, (_("spool %s: symlinking `%s' to `%s'"),
@@ -52,7 +52,7 @@ null_symlink_file(struct file_triplet *trp,
}
int
-null_rmsymlink_file(struct file_triplet *trp, const char *file_name)
+null_rmsymlink_file(struct wy_triplet *trp, const char *file_name)
{
wy_debug(1, (_("spool %s: removing symlink `%s/%s'"),
trp->spool->tag, trp->relative_dir, file_name));

Return to:

Send suggestions and report system problems to the System administrator.