projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49e8729
)
coccinelle: let's use STRLEN() rather strlen() at one more place
author
Lennart Poettering
<lennart@poettering.net>
Wed, 24 Jan 2018 10:07:47 +0000
(11:07 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 24 Jan 2018 10:07:47 +0000
(11:07 +0100)
src/shared/bus-unit-util.c
patch
|
blob
|
history
diff --git
a/src/shared/bus-unit-util.c
b/src/shared/bus-unit-util.c
index
94ee716
..
bc77c3a
100644
(file)
--- a/
src/shared/bus-unit-util.c
+++ b/
src/shared/bus-unit-util.c
@@
-1382,7
+1382,7
@@
static int bus_append_socket_property(sd_bus_message *m, const char *field, cons
if (isempty(eq))
r = sd_bus_message_append(m, "(sv)", "Listen", "a(ss)", 0);
else
- r = sd_bus_message_append(m, "(sv)", "Listen", "a(ss)", 1, field +
strlen
("Listen"), eq);
+ r = sd_bus_message_append(m, "(sv)", "Listen", "a(ss)", 1, field +
STRLEN
("Listen"), eq);
if (r < 0)
return bus_log_create_error(r);