2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-23 19:51:46 +00:00

Added const to fill_buffer

This commit is contained in:
Michael Brown 2005-05-17 14:34:46 +00:00
parent 5ae60bd95d
commit 40c7b127aa
2 changed files with 2 additions and 2 deletions

View File

@ -109,7 +109,7 @@ static inline void unfree_block ( struct buffer *buffer,
*
* Returns 1 for success, 0 for failure (e.g. buffer too small).
*/
int fill_buffer ( struct buffer *buffer, void *data,
int fill_buffer ( struct buffer *buffer, const void *data,
off_t offset, size_t len ) {
struct buffer_free_block desc;
physaddr_t block, prev_block;

View File

@ -39,7 +39,7 @@ extern struct buffer load_buffer;
/* Functions in buffer.c */
extern void init_buffer ( struct buffer *buffer );
extern int fill_buffer ( struct buffer *buffer, void *data,
extern int fill_buffer ( struct buffer *buffer, const void *data,
off_t offset, size_t len );
#endif /* BUFFER_H */