david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

use malloc attribute

This commit is contained in:
Holger Lubitz 2007-08-20 20:30:17 +02:00
parent 6f0eca1400
commit bc9f960b66
1 changed files with 4 additions and 5 deletions

View File

@ -55,11 +55,10 @@ static LIST_HEAD ( miniroutes );
* @v gateway Gateway address (or ::0 for no gateway) * @v gateway Gateway address (or ::0 for no gateway)
* @ret miniroute Routing table entry, or NULL * @ret miniroute Routing table entry, or NULL
*/ */
static struct ipv6_miniroute * add_ipv6_miniroute ( struct net_device *netdev, static struct ipv6_miniroute * __malloc
struct in6_addr prefix, add_ipv6_miniroute ( struct net_device *netdev, struct in6_addr prefix,
int prefix_len, int prefix_len, struct in6_addr address,
struct in6_addr address, struct in6_addr gateway ) {
struct in6_addr gateway ) {
struct ipv6_miniroute *miniroute; struct ipv6_miniroute *miniroute;
miniroute = malloc ( sizeof ( *miniroute ) ); miniroute = malloc ( sizeof ( *miniroute ) );