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:
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).
|
||||
*/
|
||||
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;
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user