summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/buffer.h21
1 files changed, 1 insertions, 20 deletions
diff --git a/src/include/gpxe/buffer.h b/src/include/gpxe/buffer.h
index 72c0846ac..cb7c0870e 100644
--- a/src/include/gpxe/buffer.h
+++ b/src/include/gpxe/buffer.h
@@ -101,25 +101,6 @@ struct buffer {
extern int fill_buffer ( struct buffer *buffer, const void *data,
size_t offset, size_t len );
-
-/** Expand data buffer
- *
- * @v buffer Data buffer
- * @v new_len New length
- * @ret rc Return status code
- *
- * Expand the data buffer to accommodate more data. Some buffers may
- * not support being expanded.
- */
-static inline int expand_buffer ( struct buffer *buffer, size_t new_len ) {
-
- if ( new_len <= buffer->len )
- return 0;
-
- if ( ! buffer->expand )
- return -ENOBUFS;
-
- return buffer->expand ( buffer, new_len );
-}
+extern int expand_buffer ( struct buffer *buffer, size_t new_len );
#endif /* _GPXE_BUFFER_H */