diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-11-29 20:41:31 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-11-29 20:41:31 +0000 |
commit | bcb575cbe4ae64e4fabab31c687f093eb6f46901 (patch) | |
tree | 3ca515db75aa48c45bf30d7e81f48432ae987436 | |
parent | 608c60e3cfd00f662e3ca6c7af011c2d43b17e65 (diff) |
tabs on empty lines
-rw-r--r-- | usr.sbin/bgpctl/parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpctl/parser.c b/usr.sbin/bgpctl/parser.c index 6bb27fbb858..33cdbfb7fa2 100644 --- a/usr.sbin/bgpctl/parser.c +++ b/usr.sbin/bgpctl/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.22 2005/11/02 14:11:37 claudio Exp $ */ +/* $OpenBSD: parser.c,v 1.23 2005/11/29 20:41:30 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -548,14 +548,14 @@ parse_prefix(const char *word, struct bgpd_addr *addr, u_int8_t *prefixlen) mask = strtonum(p + 1, 0, 128, &errstr); if (errstr) errx(1, "invalid netmask: %s", errstr); - + if ((ps = malloc(strlen(word) - strlen(p) + 1)) == NULL) fatal("host: malloc"); strlcpy(ps, word, strlen(word) - strlen(p) + 1); if (parse_addr(ps, addr) == 0) return (0); - + free(ps); } else if (parse_addr(word, addr) == 0) |