Skip to content
Snippets Groups Projects
Commit e4f78c36 authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

fix build

parent d86c26f6
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@
#include <oblibs/log.h>
#include <oblibs/types.h>
#include <oblibs/directory.h>
#include <oblibs/string.h>
#include <skalibs/stralloc.h>
#include <skalibs/djbunix.h>
......@@ -35,22 +36,21 @@ int backup_make_new(ssexec_t *info, unsigned int type)
int r ;
size_t newsrc, newback, typelen ;
size_t newsrc, newback ;
char *ptype = NULL ;
if (type == TYPE_CLASSIC) {
ptype = SS_SVC ;
typelen = SS_SVC_LEN ;
} else {
ptype = SS_DB ;
typelen = SS_DB_LEN ;
}
char src[info->base.len + SS_SYSTEM_LEN + 1 + info->treename.len + SS_SVDIRS_LEN + SS_RESOLVE_LEN + 1] ;
auto_strings(src, info->base.s, SS_SYSTEM, "/", info->treename.s, SS_SVDIRS, ptype)
auto_strings(src, info->base.s, SS_SYSTEM, "/", info->treename.s, SS_SVDIRS, ptype) ;
newsrc = info->base.len + SS_SYSTEM_LEN + 1 + info->treename.len + SS_SVDIRS_LEN ;
char back[info->base.len + SS_SYSTEM_LEN + SS_BACKUP_LEN + 1 + info->treename.len + SS_RESOLVE_LEN + 1] ;
......
......@@ -19,6 +19,7 @@
#include <oblibs/log.h>
#include <oblibs/types.h>
#include <oblibs/string.h>
#include <skalibs/stralloc.h>
#include <skalibs/djbunix.h>
......
......@@ -42,7 +42,7 @@ int db_compile(char const *workdir, char const *tree, char const *treename, char
auto_strings(dest, workdir, SS_DB, "/", treename) ;
char src[wlen + SS_DB_LEN + SS_SRC_LEN + 1] ;
auto_strings(src, workdir, SS_DB, SS_SRC)
auto_strings(src, workdir, SS_DB, SS_SRC) ;
r = scan_mode(dest,S_IFDIR) ;
if (r) {
......
......@@ -17,6 +17,7 @@
#include <sys/stat.h>
#include <oblibs/log.h>
#include <oblibs/string.h>
#include <skalibs/stralloc.h>
#include <skalibs/djbunix.h>
......
......@@ -17,6 +17,7 @@
#include <sys/types.h>
#include <oblibs/log.h>
#include <oblibs/string.h>
#include <66/constants.h>
......
......@@ -20,6 +20,7 @@
#include <string.h>
#include <oblibs/log.h>
#include <oblibs/string.h>
#include <skalibs/types.h>
#include <skalibs/djbunix.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment