]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
use malloc attribute
authorHolger Lubitz <hal@duncan.ol.sub.de>
Mon, 20 Aug 2007 18:30:17 +0000 (20:30 +0200)
committerHolger Lubitz <hal@duncan.ol.sub.de>
Mon, 20 Aug 2007 18:30:17 +0000 (20:30 +0200)
src/net/ipv6.c

index 3b7429b8686e1d8564b201a3080e83cb76eabba0..c228f09c48be192fd8cedf5e3988e3d09c582132 100644 (file)
@@ -55,11 +55,10 @@ static LIST_HEAD ( miniroutes );
  * @v gateway          Gateway address (or ::0 for no gateway)
  * @ret miniroute      Routing table entry, or NULL
  */
-static struct ipv6_miniroute * add_ipv6_miniroute ( struct net_device *netdev,
-                                                   struct in6_addr prefix,
-                                                   int prefix_len,
-                                                   struct in6_addr address,
-                                                   struct in6_addr gateway ) {
+static struct ipv6_miniroute * __malloc 
+add_ipv6_miniroute ( struct net_device *netdev, struct in6_addr prefix,
+                    int prefix_len, struct in6_addr address,
+                    struct in6_addr gateway ) {
        struct ipv6_miniroute *miniroute;
        
        miniroute = malloc ( sizeof ( *miniroute ) );