|  | @@ -62,16 +62,16 @@ static tor_mutex_t cb_buf_mutex;
 | 
	
		
			
				|  |  |   * ucontext_t structure.
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  void
 | 
	
		
			
				|  |  | -clean_backtrace(void **stack, int depth, const ucontext_t *ctx)
 | 
	
		
			
				|  |  | +clean_backtrace(void **stack, size_t depth, const ucontext_t *ctx)
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  |  #ifdef PC_FROM_UCONTEXT
 | 
	
		
			
				|  |  |  #if defined(__linux__)
 | 
	
		
			
				|  |  | -  const int n = 1;
 | 
	
		
			
				|  |  | +  const size_t n = 1;
 | 
	
		
			
				|  |  |  #elif defined(__darwin__) || defined(__APPLE__) || defined(__OpenBSD__) \
 | 
	
		
			
				|  |  |    || defined(__FreeBSD__)
 | 
	
		
			
				|  |  | -  const int n = 2;
 | 
	
		
			
				|  |  | +  const size_t n = 2;
 | 
	
		
			
				|  |  |  #else
 | 
	
		
			
				|  |  | -  const int n = 1;
 | 
	
		
			
				|  |  | +  const size_t n = 1;
 | 
	
		
			
				|  |  |  #endif
 | 
	
		
			
				|  |  |    if (depth <= n)
 | 
	
		
			
				|  |  |      return;
 | 
	
	
		
			
				|  | @@ -89,9 +89,9 @@ clean_backtrace(void **stack, int depth, const ucontext_t *ctx)
 | 
	
		
			
				|  |  |  void
 | 
	
		
			
				|  |  |  log_backtrace(int severity, int domain, const char *msg)
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  | -  int depth;
 | 
	
		
			
				|  |  | +  size_t depth;
 | 
	
		
			
				|  |  |    char **symbols;
 | 
	
		
			
				|  |  | -  int i;
 | 
	
		
			
				|  |  | +  size_t i;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    tor_mutex_acquire(&cb_buf_mutex);
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -120,7 +120,7 @@ static void
 | 
	
		
			
				|  |  |  crash_handler(int sig, siginfo_t *si, void *ctx_)
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  |    char buf[40];
 | 
	
		
			
				|  |  | -  int depth;
 | 
	
		
			
				|  |  | +  size_t depth;
 | 
	
		
			
				|  |  |    ucontext_t *ctx = (ucontext_t *) ctx_;
 | 
	
		
			
				|  |  |    int n_fds, i;
 | 
	
		
			
				|  |  |    const int *fds = NULL;
 | 
	
	
		
			
				|  | @@ -174,7 +174,7 @@ install_bt_handler(void)
 | 
	
		
			
				|  |  |       * libc has pre-loaded the symbols we need to dump things, so that later
 | 
	
		
			
				|  |  |       * reads won't be denied by the sandbox code */
 | 
	
		
			
				|  |  |      char **symbols;
 | 
	
		
			
				|  |  | -    int depth = backtrace(cb_buf, MAX_DEPTH);
 | 
	
		
			
				|  |  | +    size_t depth = backtrace(cb_buf, MAX_DEPTH);
 | 
	
		
			
				|  |  |      symbols = backtrace_symbols(cb_buf, depth);
 | 
	
		
			
				|  |  |      if (symbols)
 | 
	
		
			
				|  |  |        free(symbols);
 |