Przeglądaj źródła

use malloc attribute

tags/v0.9.3
Holger Lubitz 17 lat temu
rodzic
commit
bc9f960b66
1 zmienionych plików z 4 dodań i 5 usunięć
  1. 4
    5
      src/net/ipv6.c

+ 4
- 5
src/net/ipv6.c Wyświetl plik

@@ -55,11 +55,10 @@ static LIST_HEAD ( miniroutes );
55 55
  * @v gateway		Gateway address (or ::0 for no gateway)
56 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 62
 	struct ipv6_miniroute *miniroute;
64 63
 	
65 64
 	miniroute = malloc ( sizeof ( *miniroute ) );

Ładowanie…
Anuluj
Zapisz