Sfoglia il codice sorgente

Added const to fill_buffer

tags/v0.9.3
Michael Brown 19 anni fa
parent
commit
40c7b127aa
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1
    1
      src/core/buffer.c
  2. 1
    1
      src/include/buffer.h

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

@@ -109,7 +109,7 @@ static inline void unfree_block ( struct buffer *buffer,
109 109
  *
110 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 113
 		  off_t offset, size_t len ) {
114 114
 	struct buffer_free_block desc;
115 115
 	physaddr_t block, prev_block;

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

@@ -39,7 +39,7 @@ extern struct buffer load_buffer;
39 39
 /* Functions in buffer.c */
40 40
 
41 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 43
 			 off_t offset, size_t len );
44 44
 
45 45
 #endif /* BUFFER_H */

Loading…
Annulla
Salva