* also resource limits from login config, but we
* still call setresuid, setresgid to be sure to set all uid*/
if(setusercontext(NULL, pwd, uid,
- LOGIN_SETALL & ~LOGIN_SETUSER & ~LOGIN_SETGROUP) != 0)
+ (unsigned int)LOGIN_SETALL & ~LOGIN_SETUSER & ~LOGIN_SETGROUP) != 0)
log_warn("unable to setusercontext %s: %s",
cfg->username, strerror(errno));
#endif /* HAVE_SETUSERCONTEXT */
*/
#include "config.h"
+
+#ifdef CLIENT_SUBNET /* keeps splint happy */
+
#include "edns-subnet/edns-subnet.h"
#include "util/regional.h"
#include "util/log.h"
if(!upstream) return 0;
return sizeof(*upstream) + regional_get_mem(upstream->region);
}
+
+#endif /* CLIENT_SUBNET */
*/
#include "config.h"
+
+#ifdef CLIENT_SUBNET /* keeps splint happy */
+
#include <ldns/ldns.h>
#include "edns-subnet/subnetmod.h"
{
return &subnetmod_block;
}
+
+#endif /* CLIENT_SUBNET */
#endif
#ifdef UNBOUND_DEBUG
ins =
+#else
+ (void)
#endif
rbtree_insert(outnet->serviced, &sq->node);
log_assert(ins != NULL); /* must not be already present */
size_t backlen = 0;
#ifdef UNBOUND_DEBUG
rbnode_t* rem =
+#else
+ (void)
#endif
/* remove from tree, and schedule for deletion, so that callbacks
* can safely deregister themselves and even create new serviced
if(!sq->cblist && !sq->to_be_deleted) {
#ifdef UNBOUND_DEBUG
rbnode_t* rem =
+#else
+ (void)
#endif
rbtree_delete(sq->outnet->serviced, sq);
log_assert(rem); /* should be present */
const XML_Char *ATTR_UNUSED(publicId),
const XML_Char *ATTR_UNUSED(notationName))
{
- XML_StopParser((XML_Parser)userData, XML_FALSE);
+ (void)XML_StopParser((XML_Parser)userData, XML_FALSE);
}
/**
#endif
/* random initial value */
-static uint32_t raninit = 0xdeadbeef;
+static uint32_t raninit = (uint32_t)0xdeadbeef;
void
hash_set_raninit(uint32_t v)
ldns_buffer_clear(env->scratch_buffer);
#ifdef UNBOUND_DEBUG
s =
+#else
+ (void)
#endif
ldns_rdf2buffer_str_dname(env->scratch_buffer, &rdf);
log_assert(s == LDNS_STATUS_OK);
}
#ifdef UNBOUND_DEBUG
r =
+#else
+ (void)
#endif
rbtree_insert(anchors->tree, &ta->node);
if(lockit) {
return r;
#ifdef UNBOUND_DEBUG
n =
+#else
+ (void)
#endif
rbtree_insert(table, &c->node);
log_assert(n); /* cannot be duplicate, just did lookup */