mirror of https://github.com/schoebel/mars
main: move make_peer_dir_list
This commit is contained in:
parent
72cbf7b8be
commit
5fd960b91c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue