diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-12-20 18:10:30 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2016-12-20 18:18:44 +0100 |
commit | ae435b1972ab95b647e816da6a2dbb9951628218 (patch) | |
tree | 157435d20e9a8170d1477c5db58cd1f90f1b5f1c /zebra/zebra_ptm.c | |
parent | build: remove INSTALL.quagga.txt (diff) | |
download | frr-ae435b1972ab95b647e816da6a2dbb9951628218.tar.xz frr-ae435b1972ab95b647e816da6a2dbb9951628218.zip |
build: replace some hardcoding with ./configure
Several places have paths and names that can change hardcoded, e.g. the
package name and the /var/run path. This fixes a few of them, there's
still some to do.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/zebra_ptm.c')
-rw-r--r-- | zebra/zebra_ptm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/zebra/zebra_ptm.c b/zebra/zebra_ptm.c index e6d13b507..c5223199a 100644 --- a/zebra/zebra_ptm.c +++ b/zebra/zebra_ptm.c @@ -38,6 +38,7 @@ #include "vrf.h" #include "rib.h" #include "zebra_vrf.h" +#include "version.h" #define ZEBRA_PTM_RECONNECT_TIME_INITIAL 1 /* initial reconnect is 1s */ #define ZEBRA_PTM_RECONNECT_TIME_MAX 300 @@ -119,7 +120,7 @@ zebra_ptm_init (void) ptm_cb.pid = getpid(); zebra_ptm_install_commands(); - sprintf(buf, "%s", "quagga"); + sprintf(buf, "%s", FRR_PTM_NAME); ptm_hdl = ptm_lib_register(buf, NULL, zebra_ptm_handle_msg_cb, zebra_ptm_handle_msg_cb); ptm_cb.wb = buffer_new(0); |