2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-12-14 23:31:39 +00:00

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

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 );
}