Pārlūkot izejas kodu

use malloc attribute

tags/v0.9.3
Holger Lubitz 17 gadus atpakaļ
vecāks
revīzija
6f0eca1400
1 mainītis faili ar 3 papildinājumiem un 4 dzēšanām
  1. 3
    4
      src/net/ipv4.c

+ 3
- 4
src/net/ipv4.c Parādīt failu

@@ -39,10 +39,9 @@ static LIST_HEAD ( frag_buffers );
39 39
  * @v gateway		Gateway address (or @c INADDR_NONE for no gateway)
40 40
  * @ret miniroute	Routing table entry, or NULL
41 41
  */
42
-static struct ipv4_miniroute * add_ipv4_miniroute ( struct net_device *netdev,
43
-						    struct in_addr address,
44
-						    struct in_addr netmask,
45
-						    struct in_addr gateway ) {
42
+static struct ipv4_miniroute * __malloc
43
+add_ipv4_miniroute ( struct net_device *netdev, struct in_addr address,
44
+		     struct in_addr netmask, struct in_addr gateway ) {
46 45
 	struct ipv4_miniroute *miniroute;
47 46
 
48 47
 	DBG ( "IPv4 add %s", inet_ntoa ( address ) );

Notiek ielāde…
Atcelt
Saglabāt