浏览代码

use malloc attribute

tags/v0.9.3
Holger Lubitz 17 年前
父节点
当前提交
05708503e5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/include/gpxe/iobuf.h

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

@@ -161,7 +161,7 @@ static inline size_t iob_tailroom ( struct io_buffer *iobuf ) {
161 161
 	return ( iobuf->end - iobuf->tail );
162 162
 }
163 163
 
164
-extern struct io_buffer * alloc_iob ( size_t len );
164
+extern struct io_buffer * __malloc alloc_iob ( size_t len );
165 165
 extern void free_iob ( struct io_buffer *iobuf );
166 166
 extern void iob_pad ( struct io_buffer *iobuf, size_t min_len );
167 167
 extern int iob_ensure_headroom ( struct io_buffer *iobuf, size_t len );

正在加载...
取消
保存