david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Add a const to avoid a warning

This commit is contained in:
Michael Brown 2005-05-19 13:02:38 +00:00
parent 2930fe846e
commit dd475a9b8c
1 changed files with 2 additions and 1 deletions

View File

@ -46,7 +46,8 @@ static inline void * phys_to_virt ( unsigned long phys_addr ) {
return ( void * ) ( phys_addr - virt_offset );
}
static inline void copy_to_phys ( physaddr_t dest, void *src, size_t len ) {
static inline void copy_to_phys ( physaddr_t dest, const void *src,
size_t len ) {
memcpy ( phys_to_virt ( dest ), src, len );
}