mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-08-09 22:49:43 +00:00
Fix some freeBSD compile warnings.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
This commit is contained in:
parent
d8a433b0b3
commit
5ad129874e
@ -132,7 +132,7 @@ try_smaller:
|
||||
one_way->u.pmq.q = q;
|
||||
strcpy(one_way->u.pmq.name, name);
|
||||
|
||||
res = fchown(q, c->euid, c->egid);
|
||||
res = fchown((int)q, c->euid, c->egid);
|
||||
if (res == -1) {
|
||||
res = -errno;
|
||||
qb_util_log(LOG_ERR, "fchown:%s %s", name, strerror(errno));
|
||||
|
||||
@ -726,6 +726,9 @@ static int32_t qb_ipcs_uc_recv_and_auth(int32_t sock, void *msg, size_t len,
|
||||
res = -EBADMSG;
|
||||
}
|
||||
#else /* no credentials */
|
||||
ugp->pid = 0;
|
||||
ugp->uid = 0;
|
||||
ugp->gid = 0;
|
||||
res = -ENOTSUP;
|
||||
#endif /* no credentials */
|
||||
|
||||
|
||||
@ -242,7 +242,7 @@ static int32_t my_sysv_sem_create(qb_ringbuffer_t * rb, uint32_t flags)
|
||||
res = 0;
|
||||
}
|
||||
qb_util_log(LOG_INFO, "sem key:%d, id:%d, value:%d",
|
||||
sem_key, rb->sem_id, semctl(rb->sem_id, 0, GETVAL, 0));
|
||||
(int)sem_key, rb->sem_id, semctl(rb->sem_id, 0, GETVAL, 0));
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user