Added const to fill_buffer
This commit is contained in:
parent
5ae60bd95d
commit
40c7b127aa
@ -109,7 +109,7 @@ static inline void unfree_block ( struct buffer *buffer,
|
|||||||
*
|
*
|
||||||
* Returns 1 for success, 0 for failure (e.g. buffer too small).
|
* 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 ) {
|
off_t offset, size_t len ) {
|
||||||
struct buffer_free_block desc;
|
struct buffer_free_block desc;
|
||||||
physaddr_t block, prev_block;
|
physaddr_t block, prev_block;
|
||||||
|
@ -39,7 +39,7 @@ extern struct buffer load_buffer;
|
|||||||
/* Functions in buffer.c */
|
/* Functions in buffer.c */
|
||||||
|
|
||||||
extern void init_buffer ( struct buffer *buffer );
|
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 );
|
off_t offset, size_t len );
|
||||||
|
|
||||||
#endif /* BUFFER_H */
|
#endif /* BUFFER_H */
|
||||||
|
Reference in New Issue
Block a user