diff --git a/src/lib66/backup_cmd_switcher.c b/src/lib66/backup_cmd_switcher.c index a0441891225433135040b2a62dae2c5d2c24cca9..bd1bfbe60cd9aa81dd9fdb3d25e2ddbf5cf5db05 100644 --- a/src/lib66/backup_cmd_switcher.c +++ b/src/lib66/backup_cmd_switcher.c @@ -12,27 +12,24 @@ * except according to the terms contained in the LICENSE file./ */ -#include <errno.h> #include <string.h> +#include <stdint.h> #include <sys/stat.h> #include <oblibs/obgetopt.h> #include <oblibs/log.h> #include <oblibs/string.h> -#include <oblibs/types.h> #include <oblibs/sastr.h> #include <skalibs/stralloc.h> #include <skalibs/types.h> #include <skalibs/djbunix.h> -#include <skalibs/unix-transactional.h> +#include <skalibs/unix-transactional.h>//atomic_symlink -#include <66/utils.h> #include <66/constants.h> #include <66/enum.h> #include <66/ssexec.h> -//#include <stdio.h> //USAGE "backup_switcher [ -v verbosity ] [ -t type ] [ -b backup ] [ -s switch ] tree" // for -b: return 0 if point to original source, return 1 if point to backup // for -s: -s0 -> origin, -s1 -> backup ; diff --git a/src/lib66/backup_make_new.c b/src/lib66/backup_make_new.c index cee24078f5845e291fdc17d5d775ae8b3272cd9e..355a289187198b074a44be617536a1cab68cd56d 100644 --- a/src/lib66/backup_make_new.c +++ b/src/lib66/backup_make_new.c @@ -12,9 +12,6 @@ * except according to the terms contained in the LICENSE file./ */ -#include <66/tree.h> -#include <66/db.h> - #include <sys/stat.h> #include <stddef.h> @@ -26,8 +23,10 @@ #include <skalibs/djbunix.h> #include <66/constants.h> -#include <66/utils.h> #include <66/enum.h> +#include <66/resolve.h> +#include <66/tree.h> +#include <66/db.h> // force: 0->check, 1->remove and create int backup_make_new(ssexec_t *info, unsigned int type)