parse_prefix in parse.c got changed but the declaration in bgpctl.c
authorphessler <phessler@openbsd.org>
Fri, 17 Apr 2015 07:51:09 +0000 (07:51 +0000)
committerphessler <phessler@openbsd.org>
Fri, 17 Apr 2015 07:51:09 +0000 (07:51 +0000)
commit9fef0798c662808017dce9ecd4c6c7d82e1c0fa3
tree0297603e8666b21585f3a14bffeacf621fc57f6d
parentb7e886b5153008fdc406b6b7e960c99617d7b205
parse_prefix in parse.c got changed but the declaration in bgpctl.c
wasn't updated, so we would crash when doing `bgpctl net bulk` commands.

Fix by moving parse_prefix into a header, since we use it in more than
one file.

crash found by henning@
underlying problem found by blambert@

OK sthen@ deraadt@ claudio@ henning@
usr.sbin/bgpctl/bgpctl.c
usr.sbin/bgpctl/parser.c
usr.sbin/bgpctl/parser.h