mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-22 09:44:56 +02:00
fixes for suncc warnings
git-svn-id: file:///svn/unbound/trunk@1438 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
+1
-1
@@ -628,7 +628,7 @@ print_mem(SSL* ssl, struct worker* worker, struct daemon* daemon)
|
||||
extern void* unbound_start_brk;
|
||||
void* cur = sbrk(0);
|
||||
if(!print_longnum(ssl, "mem.total.sbrk"SQ,
|
||||
(size_t)(cur - unbound_start_brk))) return 0;
|
||||
(size_t)((char*)cur - (char*)unbound_start_brk))) return 0;
|
||||
#endif /* HAVE_SBRK */
|
||||
msg = slabhash_get_mem(daemon->env->msg_cache);
|
||||
rrset = slabhash_get_mem(&daemon->env->rrset_cache->table);
|
||||
|
||||
@@ -104,6 +104,7 @@ has_additional(uint16_t t)
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
/* NOTREACHED */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -467,6 +467,7 @@ ub_process(struct ub_ctx* ctx)
|
||||
}
|
||||
free(msg);
|
||||
}
|
||||
/* NOTREACHED */
|
||||
return UB_NOERROR;
|
||||
}
|
||||
|
||||
|
||||
@@ -2187,8 +2187,7 @@ return_bogus:
|
||||
qinfo->qname_len, qinfo->qclass);
|
||||
return (*ke) != NULL;
|
||||
}
|
||||
/* unreachable */
|
||||
log_assert(0);
|
||||
/* NOTREACHED */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user