X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=fpm%2Ffpm_pb.h;h=2e265511f20880b4eb3cbf2d37f82d38be9e37d5;hb=2569910bb6e5c00ececc60ed15b182e14a88cb9d;hp=8f74ac06eb94114502e3ab624905c0a41ffdc8a8;hpb=93c7bed1c9e0ce297e966851ef778ed8bcbe3b6e;p=mirror_frr.git diff --git a/fpm/fpm_pb.h b/fpm/fpm_pb.h index 8f74ac06e..2e265511f 100644 --- a/fpm/fpm_pb.h +++ b/fpm/fpm_pb.h @@ -17,10 +17,9 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with Quagga; see the file COPYING. If not, write to the Free - * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - * 02111-1307, USA. + * You should have received a copy of the GNU General Public License along + * with this program; see the file COPYING; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ /* @@ -39,25 +38,23 @@ * fpm__route_key__create */ #define fpm_route_key_create fpm__route_key__create -static inline Fpm__RouteKey * -fpm__route_key__create (qpb_allocator_t *allocator, struct prefix *prefix) +static inline Fpm__RouteKey *fpm__route_key__create(qpb_allocator_t *allocator, + struct prefix *prefix) { - Fpm__RouteKey *key; - - key = QPB_ALLOC (allocator, typeof (*key)); - if (!key) - { - return NULL; - } - fpm__route_key__init (key); - - key->prefix = qpb__l3_prefix__create (allocator, prefix); - if (!key->prefix) - { - return NULL; - } - - return key; + Fpm__RouteKey *key; + + key = QPB_ALLOC(allocator, typeof(*key)); + if (!key) { + return NULL; + } + fpm__route_key__init(key); + + key->prefix = qpb__l3_prefix__create(allocator, prefix); + if (!key->prefix) { + return NULL; + } + + return key; } #endif