* Please note that the PLYMOUTH_SOCKET_PATH has a
* leading NULL byte to mark it as an abstract socket
*/
- ret = connect(fd, &su, offsetof(struct sockaddr_un, sun_path) + 1 + strlen(su.sun_path+1));
+ ret = connect(fd, (const struct sockaddr *) &su,
+ offsetof(struct sockaddr_un, sun_path) + 1 + strlen(su.sun_path+1));
if (ret < 0) {
if (errno != ECONNREFUSED)
warnx(_("cannot connect on UNIX socket"));
*/
r = -1;
if (ctl->usedns || ctl->useip)
- r = dns_lookup(domain, sizeof(domain), ctl->useip, p->ut_addr_v6);
+ r = dns_lookup(domain, sizeof(domain), ctl->useip, (int32_t*)p->ut_addr_v6);
if (r < 0) {
size_t sz = sizeof(p->ut_host);
break;
}
- LOG(2, (stderr, "%d: started thread [tid=%d,index=%zu]\n",
- proc->pid, (int) th->tid, th->index));
+ LOG(2, (stderr, "%d: started thread [tid=%jd,index=%zu]\n",
+ proc->pid, (intmax_t) th->tid, th->index));
index += nobjects;
ncreated++;
}
err(EXIT_FAILURE, "pthread_join failed");
}
- LOG(2, (stderr, "%d: thread exited [tid=%d,return=%d]\n",
- proc->pid, (int) th->tid, th->retval));
+ LOG(2, (stderr, "%d: thread exited [tid=%jd,return=%d]\n",
+ proc->pid, (intmax_t) th->tid, th->retval));
}
}
fprintf(stderr, " uuid: <%s>\n", p);
fprintf(stderr, " idx: %zu\n", obj->idx);
fprintf(stderr, " process: %d\n", (int) obj->pid);
- fprintf(stderr, " thread: %d\n", (int) obj->tid);
+ fprintf(stderr, " thread: %jd\n", (intmax_t) obj->tid);
fprintf(stderr, "}\n");
}
if (new->rlim_cur == RLIM_INFINITY)
printf("<%s", _("unlimited"));
else
- printf("<%ju", new->rlim_cur);
+ printf("<%ju", (uintmax_t)new->rlim_cur);
if (new->rlim_max == RLIM_INFINITY)
printf(":%s>\n", _("unlimited"));
else
- printf(":%ju>\n", new->rlim_max);
+ printf(":%ju>\n", (uintmax_t)new->rlim_max);
}
if (prlimit(pid, lim->desc->resource, new, old) == -1)