Project

General

Profile

Enhancement #750 » 0007-sanitize-fix-unused-return-values.patch

Loïc Gomez, 2022-01-10 19:27

View differences:

src/bip_main.c
else
pid = getpid();
snprintf(buf, (size_t) 29, "%lu\n", (unsigned long int)pid);
write(fd, buf, strlen(buf));
ssize_t written;
written = write(fd, buf, strlen(buf));
if (written <= 0)
mylog(LOG_ERROR, "Could not write to PID file");
close(fd);
bip.listener = listen_new(conf_ip, conf_port, conf_css);
(6-6/24)