mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 02:21:44 +03:00
import: use (void) more
CID #1299018-9.
This commit is contained in:
parent
b3b90a25f3
commit
edfd706d9c
@ -110,16 +110,14 @@ int path_spec_watch(PathSpec *s, sd_event_io_handler_t handler) {
|
|||||||
} else {
|
} else {
|
||||||
exists = true;
|
exists = true;
|
||||||
|
|
||||||
/* Path exists, we don't need to watch parent
|
/* Path exists, we don't need to watch parent too closely. */
|
||||||
too closely. */
|
|
||||||
if (oldslash) {
|
if (oldslash) {
|
||||||
char *cut2 = oldslash + (oldslash == s->path);
|
char *cut2 = oldslash + (oldslash == s->path);
|
||||||
char tmp2 = *cut2;
|
char tmp2 = *cut2;
|
||||||
*cut2 = '\0';
|
*cut2 = '\0';
|
||||||
|
|
||||||
inotify_add_watch(s->inotify_fd, s->path, IN_MOVE_SELF);
|
(void) inotify_add_watch(s->inotify_fd, s->path, IN_MOVE_SELF);
|
||||||
/* Error is ignored, the worst can happen is
|
/* Error is ignored, the worst can happen is we get spurious events. */
|
||||||
we get spurious events. */
|
|
||||||
|
|
||||||
*cut2 = tmp2;
|
*cut2 = tmp2;
|
||||||
}
|
}
|
||||||
|
@ -137,7 +137,7 @@ static int curl_glue_socket_callback(CURLM *curl, curl_socket_t s, int action, v
|
|||||||
if (sd_event_add_io(g->event, &io, fd, events, curl_glue_on_io, g) < 0)
|
if (sd_event_add_io(g->event, &io, fd, events, curl_glue_on_io, g) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
sd_event_source_set_description(io, "curl-io");
|
(void) sd_event_source_set_description(io, "curl-io");
|
||||||
|
|
||||||
r = hashmap_put(g->ios, FD_TO_PTR(s), io);
|
r = hashmap_put(g->ios, FD_TO_PTR(s), io);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
@ -204,7 +204,7 @@ static int curl_glue_timer_callback(CURLM *curl, long timeout_ms, void *userdata
|
|||||||
if (sd_event_add_time(g->event, &g->timer, clock_boottime_or_monotonic(), usec, 0, curl_glue_on_timer, g) < 0)
|
if (sd_event_add_time(g->event, &g->timer, clock_boottime_or_monotonic(), usec, 0, curl_glue_on_timer, g) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
sd_event_source_set_description(g->timer, "curl-timer");
|
(void) sd_event_source_set_description(g->timer, "curl-timer");
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user