diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tdb/tools/tdbtool.c | 4 | ||||
-rw-r--r-- | lib/util/util_runcmd.c | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/lib/tdb/tools/tdbtool.c b/lib/tdb/tools/tdbtool.c index 99d4841cf3..d4b85dcdb1 100644 --- a/lib/tdb/tools/tdbtool.c +++ b/lib/tdb/tools/tdbtool.c @@ -448,11 +448,9 @@ static void speed_tdb(const char *tlimit) _start_timer(); do { long int r = random(); - TDB_DATA key, dbuf; + TDB_DATA key; key.dptr = discard_const_p(uint8_t, str); key.dsize = strlen((char *)key.dptr); - dbuf.dptr = (uint8_t *) &r; - dbuf.dsize = sizeof(r); tdb_fetch(tdb, key); t = _end_timer(); ops++; diff --git a/lib/util/util_runcmd.c b/lib/util/util_runcmd.c index d617254432..cfe0034a32 100644 --- a/lib/util/util_runcmd.c +++ b/lib/util/util_runcmd.c @@ -74,7 +74,6 @@ struct tevent_req *samba_runcmd_send(TALLOC_CTX *mem_ctx, struct samba_runcmd_state *state; int p1[2], p2[2]; char **argv; - int ret; va_list ap; req = tevent_req_create(mem_ctx, &state, @@ -187,7 +186,7 @@ struct tevent_req *samba_runcmd_send(TALLOC_CTX *mem_ctx, } va_end(ap); - ret = execvp(state->arg0, argv); + (void)execvp(state->arg0, argv); fprintf(stderr, "Failed to exec child - %s\n", strerror(errno)); _exit(255); return NULL; |