rfd does not need to be global.

Rob

Index: bgpd.c
===================================================================
RCS file: /cvs/src/usr.sbin/bgpd/bgpd.c,v
retrieving revision 1.189
diff -u -p -r1.189 bgpd.c
--- bgpd.c      28 May 2017 15:16:33 -0000      1.189
+++ bgpd.c      27 Jun 2017 15:52:02 -0000
@@ -48,7 +48,6 @@ int           dispatch_imsg(struct imsgbuf *, int
 int            control_setup(struct bgpd_config *);
 int            imsg_send_sockets(struct imsgbuf *, struct imsgbuf *);
 
-int                     rfd = -1;
 int                     cflags;
 volatile sig_atomic_t   mrtdump;
 volatile sig_atomic_t   quit;
@@ -108,6 +107,7 @@ main(int argc, char *argv[])
        char                    *saved_argv0;
        int                      debug = 0;
        int                      rflag = 0, sflag = 0;
+       int                      rfd = -1;
        int                      ch, timeout, status;
        int                      pipe_m2s[2];
        int                      pipe_m2r[2];

Reply via email to