Browse Source

Added const to fill_buffer

tags/v0.9.3
Michael Brown 19 years ago
parent
commit
40c7b127aa
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/core/buffer.c
  2. 1
    1
      src/include/buffer.h

+ 1
- 1
src/core/buffer.c View File

109
  *
109
  *
110
  * Returns 1 for success, 0 for failure (e.g. buffer too small).
110
  * Returns 1 for success, 0 for failure (e.g. buffer too small).
111
  */
111
  */
112
-int fill_buffer ( struct buffer *buffer, void *data,
112
+int fill_buffer ( struct buffer *buffer, const void *data,
113
 		  off_t offset, size_t len ) {
113
 		  off_t offset, size_t len ) {
114
 	struct buffer_free_block desc;
114
 	struct buffer_free_block desc;
115
 	physaddr_t block, prev_block;
115
 	physaddr_t block, prev_block;

+ 1
- 1
src/include/buffer.h View File

39
 /* Functions in buffer.c */
39
 /* Functions in buffer.c */
40
 
40
 
41
 extern void init_buffer ( struct buffer *buffer );
41
 extern void init_buffer ( struct buffer *buffer );
42
-extern int fill_buffer ( struct buffer *buffer, void *data,
42
+extern int fill_buffer ( struct buffer *buffer, const void *data,
43
 			 off_t offset, size_t len );
43
 			 off_t offset, size_t len );
44
 
44
 
45
 #endif /* BUFFER_H */
45
 #endif /* BUFFER_H */

Loading…
Cancel
Save