summaryrefslogtreecommitdiffstats
path: root/zebra/client_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/client_main.c')
-rw-r--r--zebra/client_main.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/zebra/client_main.c b/zebra/client_main.c
index 17130c602..95b9d00dc 100644
--- a/zebra/client_main.c
+++ b/zebra/client_main.c
@@ -186,11 +186,7 @@ int main(int argc, char **argv)
/* Establish connection to zebra. */
zclient = zclient_new(master);
zclient->enable = 1;
-#ifdef HAVE_TCP_ZEBRA
- zclient->sock = zclient_socket();
-#else
- zclient->sock = zclient_socket_un(ZEBRA_SERV_PATH);
-#endif /* HAVE_TCP_ZEBRA */
+ zclient_socket_connect(zclient);
/* Open simulation file. */
fp = fopen(argv[1], "r");