mirror of
				https://github.com/clearml/dropbear
				synced 2025-06-26 18:17:32 +00:00 
			
		
		
		
	some linting after fuzz merge (#60)
* fix prototype * remove extra comma * use m_free after m_strdup
This commit is contained in:
		
							parent
							
								
									ce1f9cdf7c
								
							
						
					
					
						commit
						257bba00ac
					
				| @ -9,8 +9,9 @@ void m_burn(void *data, unsigned int len) { | ||||
| #elif defined(HAVE_EXPLICIT_BZERO) | ||||
| 	explicit_bzero(data, len); | ||||
| #else | ||||
| 	/* This must be volatile to avoid compiler optimisation */ | ||||
| 	volatile void *p = data; | ||||
|     memset((void*)p, 0x0, len); | ||||
| 	memset((void*)p, 0x0, len); | ||||
| #endif | ||||
| } | ||||
| 
 | ||||
|  | ||||
							
								
								
									
										2
									
								
								dbutil.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								dbutil.c
									
									
									
									
									
								
							| @ -687,6 +687,6 @@ void fsync_parent_dir(const char* fn) { | ||||
| 		TRACE(("error opening directory %s for fsync: %s", dir, strerror(errno))) | ||||
| 	} | ||||
| 
 | ||||
| 	free(fn_dir); | ||||
| 	m_free(fn_dir); | ||||
| #endif | ||||
| } | ||||
|  | ||||
| @ -26,7 +26,7 @@ static int wrap_used[IOWRAP_MAXFD+1]; | ||||
| static unsigned int nused; | ||||
| static unsigned short rand_state[3]; | ||||
| 
 | ||||
| void wrapfd_setup() { | ||||
| void wrapfd_setup(void) { | ||||
| 	TRACE(("wrapfd_setup")) | ||||
| 	nused = 0; | ||||
| 	memset(wrap_fds, 0x0, sizeof(wrap_fds)); | ||||
|  | ||||
| @ -7,10 +7,10 @@ enum wrapfd_mode { | ||||
|     UNUSED = 0, | ||||
|     PLAIN, | ||||
|     INPROGRESS, | ||||
|     RANDOMIN, | ||||
|     RANDOMIN | ||||
| }; | ||||
| 
 | ||||
| void wrapfd_setup(); | ||||
| void wrapfd_setup(void); | ||||
| void wrapfd_setseed(uint32_t seed); | ||||
| // doesn't take ownership of buf. buf is optional.
 | ||||
| void wrapfd_add(int fd, buffer *buf, enum wrapfd_mode mode); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user