Browse Source

use malloc attribute

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
bc9f960b66
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      src/net/ipv6.c

+ 4
- 5
src/net/ipv6.c View File

55
  * @v gateway		Gateway address (or ::0 for no gateway)
55
  * @v gateway		Gateway address (or ::0 for no gateway)
56
  * @ret miniroute	Routing table entry, or NULL
56
  * @ret miniroute	Routing table entry, or NULL
57
  */
57
  */
58
-static struct ipv6_miniroute * add_ipv6_miniroute ( struct net_device *netdev,
59
-						    struct in6_addr prefix,
60
-						    int prefix_len,
61
-						    struct in6_addr address,
62
-						    struct in6_addr gateway ) {
58
+static struct ipv6_miniroute * __malloc 
59
+add_ipv6_miniroute ( struct net_device *netdev, struct in6_addr prefix,
60
+		     int prefix_len, struct in6_addr address,
61
+		     struct in6_addr gateway ) {
63
 	struct ipv6_miniroute *miniroute;
62
 	struct ipv6_miniroute *miniroute;
64
 	
63
 	
65
 	miniroute = malloc ( sizeof ( *miniroute ) );
64
 	miniroute = malloc ( sizeof ( *miniroute ) );

Loading…
Cancel
Save