Browse Source

use malloc attribute

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
6f0eca1400
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      src/net/ipv4.c

+ 3
- 4
src/net/ipv4.c View File

39
  * @v gateway		Gateway address (or @c INADDR_NONE for no gateway)
39
  * @v gateway		Gateway address (or @c INADDR_NONE for no gateway)
40
  * @ret miniroute	Routing table entry, or NULL
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
 	struct ipv4_miniroute *miniroute;
45
 	struct ipv4_miniroute *miniroute;
47
 
46
 
48
 	DBG ( "IPv4 add %s", inet_ntoa ( address ) );
47
 	DBG ( "IPv4 add %s", inet_ntoa ( address ) );

Loading…
Cancel
Save