mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Fix warning
Commit 9771255919 introduces a compiler warning due to mismatched
pointer types. Fixed here.
Reported-by: Stefan Fuchs <sfuchs@gmx.de>
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
			
			
This commit is contained in:
		
							parent
							
								
									dd510fcea7
								
							
						
					
					
						commit
						f1437cfec7
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		|  | @ -610,6 +610,11 @@ static void get_uint8(char *buffer, uint8_t *i) | ||||||
| 	*i = atoi(buffer); | 	*i = atoi(buffer); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | static void get_uint16(char *buffer, uint16_t *i) | ||||||
|  | { | ||||||
|  | 	*i = atoi(buffer); | ||||||
|  | } | ||||||
|  | 
 | ||||||
| static void get_bearing(char *buffer, bearing_t *bearing) | static void get_bearing(char *buffer, bearing_t *bearing) | ||||||
| { | { | ||||||
| 	bearing->degrees = atoi(buffer); | 	bearing->degrees = atoi(buffer); | ||||||
|  | @ -990,7 +995,7 @@ static void try_to_fill_sample(struct sample *sample, const char *name, char *bu | ||||||
| 		return; | 		return; | ||||||
| 	if (MATCH("stopdepth.sample", depth, &sample->stopdepth)) | 	if (MATCH("stopdepth.sample", depth, &sample->stopdepth)) | ||||||
| 		return; | 		return; | ||||||
| 	if (MATCH("cns.sample", get_uint8, &sample->cns)) | 	if (MATCH("cns.sample", get_uint16, &sample->cns)) | ||||||
| 		return; | 		return; | ||||||
| 	if (MATCH("rbt.sample", sampletime, &sample->rbt)) | 	if (MATCH("rbt.sample", sampletime, &sample->rbt)) | ||||||
| 		return; | 		return; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue