Преглед на файлове

use malloc attribute

tags/v0.9.3
Holger Lubitz преди 18 години
родител
ревизия
6f0eca1400
променени са 1 файла, в които са добавени 3 реда и са изтрити 4 реда
  1. 3
    4
      src/net/ipv4.c

+ 3
- 4
src/net/ipv4.c Целия файл

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…
Отказ
Запис