Show
Ignore:
Timestamp:
03/12/08 21:07:23 (8 months ago)
Author:
mwhitworth
Message:

Fix linker problem.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/memory/mmap.c

    r11 r16  
    599599        }else if (!vNode) 
    600600        { 
    601                 int err=NameToVNode(&vNode,DEVICES_PATH "Zero",0); 
    602                 if (err) 
     601                /* Map to the zero file, so we can use the existing infrastructure. */ 
     602                if (NameToVNode(&vNode,DEVICES_PATH "Zero",0)) 
    603603                        return 0; 
    604604        } 
     
    762762                if (!(vNode=MMapGetVNode(fd))) 
    763763                        return 0; 
    764  
     764                         
    765765        return MMapDo(current,vNode,PAGE_ALIGN(address),PAGE_ALIGN_UP(length),protection,offset,flags); 
    766766}