瀏覽代碼

use malloc attribute

tags/v0.9.3
Holger Lubitz 17 年之前
父節點
當前提交
6f0eca1400
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3
    4
      src/net/ipv4.c

+ 3
- 4
src/net/ipv4.c 查看文件

@@ -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 ) );

Loading…
取消
儲存