Fixed gcc warnings in MEM driver.
This commit is contained in:
		
							parent
							
								
									68da9cc0fe
								
							
						
					
					
						commit
						8b6b353c86
					
				@ -70,11 +70,12 @@ PRIVATE char dev_zero[ZERO_BUF_SIZE];
 | 
				
			|||||||
/*===========================================================================*
 | 
					/*===========================================================================*
 | 
				
			||||||
 *				   main 				     *
 | 
					 *				   main 				     *
 | 
				
			||||||
 *===========================================================================*/
 | 
					 *===========================================================================*/
 | 
				
			||||||
PUBLIC void main(void)
 | 
					PUBLIC int main(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
/* Main program. Initialize the memory driver and start the main loop. */
 | 
					/* Main program. Initialize the memory driver and start the main loop. */
 | 
				
			||||||
  m_init();			
 | 
					  m_init();			
 | 
				
			||||||
  driver_task(&m_dtab);		
 | 
					  driver_task(&m_dtab);		
 | 
				
			||||||
 | 
					  return(OK);				
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/*===========================================================================*
 | 
					/*===========================================================================*
 | 
				
			||||||
@ -111,7 +112,7 @@ iovec_t *iov;			/* pointer to read or write request vector */
 | 
				
			|||||||
unsigned nr_req;		/* length of request vector */
 | 
					unsigned nr_req;		/* length of request vector */
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
/* Read or write one the driver's minor devices. */
 | 
					/* Read or write one the driver's minor devices. */
 | 
				
			||||||
  phys_bytes mem_phys, user_phys;
 | 
					  phys_bytes mem_phys;
 | 
				
			||||||
  int seg;
 | 
					  int seg;
 | 
				
			||||||
  unsigned count, left, chunk;
 | 
					  unsigned count, left, chunk;
 | 
				
			||||||
  vir_bytes user_vir;
 | 
					  vir_bytes user_vir;
 | 
				
			||||||
@ -287,7 +288,6 @@ message *m_ptr;				/* pointer to control message */
 | 
				
			|||||||
	/* FS wants to create a new RAM disk with the given size. */
 | 
						/* FS wants to create a new RAM disk with the given size. */
 | 
				
			||||||
	phys_bytes ramdev_size;
 | 
						phys_bytes ramdev_size;
 | 
				
			||||||
	phys_bytes ramdev_base;
 | 
						phys_bytes ramdev_base;
 | 
				
			||||||
	message m;
 | 
					 | 
				
			||||||
	int s;
 | 
						int s;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (m_ptr->PROC_NR != FS_PROC_NR) {
 | 
						if (m_ptr->PROC_NR != FS_PROC_NR) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user