chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a800b5
)
event: some snake-oil to speed up impossible error checks
author
Lennart Poettering
<lennart@poettering.net>
Sat, 14 Dec 2013 04:08:47 +0000
(
05:08
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Sat, 14 Dec 2013 04:10:25 +0000
(
05:10
+0100)
src/libsystemd-bus/sd-event.c
patch
|
blob
|
history
diff --git
a/src/libsystemd-bus/sd-event.c
b/src/libsystemd-bus/sd-event.c
index bf8b0fcf64ffc98efd69ebb8f434d8291c81e94e..06c84d717ab23a8c3359fac1c92c4166768e2abe 100644
(file)
--- a/
src/libsystemd-bus/sd-event.c
+++ b/
src/libsystemd-bus/sd-event.c
@@
-1605,7
+1605,7
@@
static int flush_timer(sd_event *e, int fd, uint32_t events, usec_t *next) {
return -errno;
}
- if (
ss != sizeof(x
))
+ if (
_unlikely_(ss != sizeof(x)
))
return -EIO;
if (next)
@@
-1733,7
+1733,7
@@
static int process_signal(sd_event *e, uint32_t events) {
return -errno;
}
- if (
ss != sizeof(si
))
+ if (
_unlikely_(ss != sizeof(si)
))
return -EIO;
read_one = true;