Use afswch->af_other_status for carp_status() and pfsync_status().

Sponsored by:	Rambler
This commit is contained in:
Gleb Smirnoff 2005-02-22 14:07:47 +00:00
parent d5469a8ba5
commit ef3abbe88a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=142224
2 changed files with 6 additions and 6 deletions

View File

@ -52,14 +52,14 @@
static const char *carp_states[] = { CARP_STATES };
void carp_status(int s, const struct rt_addrinfo *);
void carp_status(int s);
void setcarp_advbase(const char *,int, int, const struct afswtch *rafp);
void setcarp_advskew(const char *, int, int, const struct afswtch *rafp);
void setcarp_passwd(const char *, int, int, const struct afswtch *rafp);
void setcarp_vhid(const char *, int, int, const struct afswtch *rafp);
void
carp_status(int s, const struct rt_addrinfo *info __unused)
carp_status(int s)
{
const char *state;
struct carpreq carpr;
@ -183,7 +183,7 @@ static struct cmd carp_cmds[] = {
static struct afswtch af_carp = {
.af_name = "af_carp",
.af_af = AF_UNSPEC,
.af_status = carp_status,
.af_other_status = carp_status,
};
static __constructor void

View File

@ -47,7 +47,7 @@
void setpfsync_syncif(const char *, int, int, const struct afswtch *rafp);
void unsetpfsync_syncif(const char *, int, int, const struct afswtch *rafp);
void setpfsync_maxupd(const char *, int, int, const struct afswtch *rafp);
void pfsync_status(int, const struct rt_addrinfo *);
void pfsync_status(int);
void
setpfsync_syncif(const char *val, int d, int s, const struct afswtch *rafp)
@ -104,7 +104,7 @@ setpfsync_maxupd(const char *val, int d, int s, const struct afswtch *rafp)
}
void
pfsync_status(int s, const struct rt_addrinfo *info __unused)
pfsync_status(int s)
{
struct pfsyncreq preq;
@ -128,7 +128,7 @@ static struct cmd pfsync_cmds[] = {
static struct afswtch af_pfsync = {
.af_name = "af_pfsync",
.af_af = AF_UNSPEC,
.af_status = pfsync_status,
.af_other_status = pfsync_status,
};
static __constructor void