diff options
Diffstat (limited to 'fpm/fpm_pb.h')
-rw-r--r-- | fpm/fpm_pb.h | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/fpm/fpm_pb.h b/fpm/fpm_pb.h index 2e5f3d052..2e265511f 100644 --- a/fpm/fpm_pb.h +++ b/fpm/fpm_pb.h @@ -38,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 |