瀏覽代碼

use malloc attribute

tags/v0.9.3
Holger Lubitz 18 年之前
父節點
當前提交
9386263433
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/include/gpxe/dhcp.h

+ 1
- 1
src/include/gpxe/dhcp.h 查看文件

502
 extern void unregister_dhcp_options ( struct dhcp_option_block *options );
502
 extern void unregister_dhcp_options ( struct dhcp_option_block *options );
503
 extern void init_dhcp_options ( struct dhcp_option_block *options,
503
 extern void init_dhcp_options ( struct dhcp_option_block *options,
504
 				void *data, size_t max_len );
504
 				void *data, size_t max_len );
505
-extern struct dhcp_option_block * alloc_dhcp_options ( size_t max_len );
505
+extern struct dhcp_option_block * __malloc alloc_dhcp_options ( size_t max_len );
506
 extern struct dhcp_option *
506
 extern struct dhcp_option *
507
 set_dhcp_option ( struct dhcp_option_block *options, unsigned int tag,
507
 set_dhcp_option ( struct dhcp_option_block *options, unsigned int tag,
508
 		  const void *data, size_t len );
508
 		  const void *data, size_t len );

Loading…
取消
儲存