diff options
author | arnej27959 <arnej@yahoo-inc.com> | 2016-07-03 22:10:17 +0200 |
---|---|---|
committer | arnej27959 <arnej@yahoo-inc.com> | 2016-07-03 22:10:17 +0200 |
commit | eb917b75e73c6c66a7d9d5204bffd313f2dbc194 (patch) | |
tree | 375a0c3df3f711ec642f4b675e4d263d4f06d103 /configd/src | |
parent | 15ec5ced8d82f275183d5cac32f41b295f109849 (diff) |
editing error: mis-placed parenthesis
* this was leading to really strange problems in system tests.
Diffstat (limited to 'configd/src')
-rw-r--r-- | configd/src/apps/sentinel/command-connection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configd/src/apps/sentinel/command-connection.cpp b/configd/src/apps/sentinel/command-connection.cpp index 4bba9c62be9..bd3988bdbba 100644 --- a/configd/src/apps/sentinel/command-connection.cpp +++ b/configd/src/apps/sentinel/command-connection.cpp @@ -50,8 +50,8 @@ CommandConnection::printf(const char *fmt, ...) int ret = vsnprintf(buf, sizeof buf, fmt, args); va_end(args); - size_t len = strlen(buf); - if (write(_fd, buf, strlen(buf) != len)) { + ssize_t len = strlen(buf); + if (write(_fd, buf, len) != len) { perror("CommandConnection::printf failed"); } return ret; |