main: move make_peer_dir_list

This commit is contained in:
Thomas Schoebel-Theuer 2020-10-14 16:49:45 +02:00
parent 72cbf7b8be
commit 5fd960b91c
1 changed files with 13 additions and 14 deletions

View File

@ -2021,6 +2021,19 @@ struct mars_peerinfo {
bool doing_additional;
};
static
char *make_peer_dir_list(const char *mypeer)
{
char *res;
res = path_make("|/mars/defaults-%s/"
"|/mars/actual-%s/",
mypeer,
mypeer
);
return res;
}
static
struct mars_peerinfo *find_peer(const char *peer_name)
{
@ -3180,20 +3193,6 @@ void peer_destruct(void *_peer)
_kill_peer(peer);
}
static
char * make_peer_dir_list(char *mypeer)
{
char *res;
res = path_make(
"|/mars/defaults-%s/"
"|/mars/actual-%s/",
mypeer,
mypeer
);
return res;
}
static
int _make_peer(struct mars_dent *dent)
{