mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Switch to using unsigned char in DLF import
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									78d782f3e9
								
							
						
					
					
						commit
						e86d298734
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		
							
								
								
									
										2
									
								
								dive.h
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								dive.h
									
										
									
									
									
								
							|  | @ -627,7 +627,7 @@ extern int parse_dm4_buffer(sqlite3 *handle, const char *url, const char *buf, i | |||
| extern int parse_dm5_buffer(sqlite3 *handle, const char *url, const char *buf, int size, struct dive_table *table); | ||||
| extern int parse_shearwater_buffer(sqlite3 *handle, const char *url, const char *buf, int size, struct dive_table *table); | ||||
| extern int parse_cobalt_buffer(sqlite3 *handle, const char *url, const char *buf, int size, struct dive_table *table); | ||||
| extern int parse_dlf_buffer(char *buffer, size_t size); | ||||
| extern int parse_dlf_buffer(unsigned char *buffer, size_t size); | ||||
| 
 | ||||
| extern int parse_file(const char *filename); | ||||
| extern int parse_csv_file(const char *filename, int time, int depth, int temp, int po2f, int cnsf, int ndlf, int ttsf, int stopdepthf, int pressuref, int sepidx, const char *csvtemplate, int units); | ||||
|  |  | |||
|  | @ -2531,9 +2531,9 @@ int parse_cobalt_buffer(sqlite3 *handle, const char *url, const char *buffer, in | |||
| 	return 0; | ||||
| } | ||||
| 
 | ||||
| int parse_dlf_buffer(char *buffer, size_t size) | ||||
| int parse_dlf_buffer(unsigned char *buffer, size_t size) | ||||
| { | ||||
| 	char *ptr = (char *)buffer; | ||||
| 	unsigned char *ptr = buffer; | ||||
| 	bool event, found; | ||||
| 	int i; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue