|  | @@ -212,7 +212,7 @@ const char *SRS_TIME_BASECHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";
 | 
		
	
		
			
			| 212 | 212 |  #define SRS_TIME_SLOTS		(1<<(SRS_TIME_BASEBITS<<(SRS_TIME_SIZE-1)))
 | 
		
	
		
			
			| 213 | 213 |  
 | 
		
	
		
			
			| 214 | 214 |  int
 | 
		
	
		
			
			| 215 |  | -srs_timestamp_create(srs_t *srs, char *buf, time_t now)
 | 
		
	
		
			
			|  | 215 | +srs_timestamp_create(srs_t *srs __attribute__((unused)), char *buf, time_t now)
 | 
		
	
		
			
			| 216 | 216 |  {
 | 
		
	
		
			
			| 217 | 217 |  	now = now / SRS_TIME_PRECISION;
 | 
		
	
		
			
			| 218 | 218 |  	buf[1] = SRS_TIME_BASECHARS[now & ((1 << SRS_TIME_BASEBITS) - 1)];
 | 
		
	
	
		
			
			|  | @@ -507,7 +507,7 @@ srs_compile_guarded(srs_t *srs,
 | 
		
	
		
			
			| 507 | 507 |  }
 | 
		
	
		
			
			| 508 | 508 |  
 | 
		
	
		
			
			| 509 | 509 |  int
 | 
		
	
		
			
			| 510 |  | -srs_parse_shortcut(srs_t *srs, char *buf, int buflen, char *senduser)
 | 
		
	
		
			
			|  | 510 | +srs_parse_shortcut(srs_t *srs, char *buf, unsigned buflen, char *senduser)
 | 
		
	
		
			
			| 511 | 511 |  {
 | 
		
	
		
			
			| 512 | 512 |  	char	*srshash;
 | 
		
	
		
			
			| 513 | 513 |  	char	*srsstamp;
 | 
		
	
	
		
			
			|  | @@ -538,7 +538,7 @@ srs_parse_shortcut(srs_t *srs, char *buf, int buflen, char *senduser)
 | 
		
	
		
			
			| 538 | 538 |  						srshost, srsuser);
 | 
		
	
		
			
			| 539 | 539 |  		if (ret != SRS_SUCCESS)
 | 
		
	
		
			
			| 540 | 540 |  			return ret;
 | 
		
	
		
			
			| 541 |  | -		sprintf(buf, "%s@%s", srsuser, srshost);
 | 
		
	
		
			
			|  | 541 | +		snprintf(buf, buflen, "%s@%s", srsuser, srshost);
 | 
		
	
		
			
			| 542 | 542 |  		return SRS_SUCCESS;
 | 
		
	
		
			
			| 543 | 543 |  	}
 | 
		
	
		
			
			| 544 | 544 |  
 | 
		
	
	
		
			
			|  | @@ -577,13 +577,13 @@ srs_parse_guarded(srs_t *srs, char *buf, int buflen, char *senduser)
 | 
		
	
		
			
			| 577 | 577 |  }
 | 
		
	
		
			
			| 578 | 578 |  
 | 
		
	
		
			
			| 579 | 579 |  int
 | 
		
	
		
			
			| 580 |  | -srs_forward(srs_t *srs, char *buf, int buflen,
 | 
		
	
		
			
			|  | 580 | +srs_forward(srs_t *srs, char *buf, unsigned buflen,
 | 
		
	
		
			
			| 581 | 581 |  				const char *sender, const char *alias)
 | 
		
	
		
			
			| 582 | 582 |  {
 | 
		
	
		
			
			| 583 | 583 |  	char	*senduser;
 | 
		
	
		
			
			| 584 | 584 |  	char	*sendhost;
 | 
		
	
		
			
			| 585 | 585 |  	char	*tmp;
 | 
		
	
		
			
			| 586 |  | -	int		 len;
 | 
		
	
		
			
			|  | 586 | +	unsigned		 len;
 | 
		
	
		
			
			| 587 | 587 |  
 | 
		
	
		
			
			| 588 | 588 |  	if (srs->noforward)
 | 
		
	
		
			
			| 589 | 589 |  		return SRS_ENOTREWRITTEN;
 | 
		
	
	
		
			
			|  | @@ -650,11 +650,11 @@ srs_forward_alloc(srs_t *srs, char **sptr,
 | 
		
	
		
			
			| 650 | 650 |  }
 | 
		
	
		
			
			| 651 | 651 |  
 | 
		
	
		
			
			| 652 | 652 |  int
 | 
		
	
		
			
			| 653 |  | -srs_reverse(srs_t *srs, char *buf, int buflen, const char *sender)
 | 
		
	
		
			
			|  | 653 | +srs_reverse(srs_t *srs, char *buf, unsigned buflen, const char *sender)
 | 
		
	
		
			
			| 654 | 654 |  {
 | 
		
	
		
			
			| 655 | 655 |  	char	*senduser;
 | 
		
	
		
			
			| 656 | 656 |  	char	*tmp;
 | 
		
	
		
			
			| 657 |  | -	int		 len;
 | 
		
	
		
			
			|  | 657 | +	unsigned		 len;
 | 
		
	
		
			
			| 658 | 658 |  
 | 
		
	
		
			
			| 659 | 659 |  	if (!SRS_IS_SRS_ADDRESS(sender))
 | 
		
	
		
			
			| 660 | 660 |  		return SRS_ENOTSRSADDRESS;
 |