Browse Source

Add a const to avoid a warning

tags/v0.9.3
Michael Brown 19 years ago
parent
commit
dd475a9b8c
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/arch/i386/include/virtaddr.h

+ 2
- 1
src/arch/i386/include/virtaddr.h View File

46
 	return ( void * ) ( phys_addr - virt_offset );
46
 	return ( void * ) ( phys_addr - virt_offset );
47
 }
47
 }
48
 
48
 
49
-static inline void copy_to_phys ( physaddr_t dest, void *src, size_t len ) {
49
+static inline void copy_to_phys ( physaddr_t dest, const void *src,
50
+				  size_t len ) {
50
 	memcpy ( phys_to_virt ( dest ), src, len );
51
 	memcpy ( phys_to_virt ( dest ), src, len );
51
 }
52
 }
52
 
53
 

Loading…
Cancel
Save