summaryrefslogtreecommitdiff
path: root/src/stdio-bridge
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-02-12 21:47:36 +0100
committerLennart Poettering <lennart@poettering.net>2013-02-13 00:56:13 +0100
commit641906e9366891e0ad3e6e38b7396a427678c4cf (patch)
tree47f90e01b79c50ab0839f0a0a10a8fae81dd9a25 /src/stdio-bridge
parent8d6167101696a28b7ac61b48fd2c1920564c4e90 (diff)
use strneq instead of strncmp
Diffstat (limited to 'src/stdio-bridge')
-rw-r--r--src/stdio-bridge/stdio-bridge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stdio-bridge/stdio-bridge.c b/src/stdio-bridge/stdio-bridge.c
index f926fe5538..adc692f1eb 100644
--- a/src/stdio-bridge/stdio-bridge.c
+++ b/src/stdio-bridge/stdio-bridge.c
@@ -69,16 +69,16 @@ static size_t patch_in_line(char *line, size_t l, size_t left) {
} else
r = 0;
- if (l == 5 && strncmp(line, "BEGIN", 5) == 0) {
+ if (l == 5 && strneq(line, "BEGIN", 5)) {
r += l;
auth_over = true;
- } else if (l == 17 && strncmp(line, "NEGOTIATE_UNIX_FD", 17) == 0) {
+ } else if (l == 17 && strneq(line, "NEGOTIATE_UNIX_FD", 17)) {
memmove(line + 13, line + 17, left);
memcpy(line, "NEGOTIATE_NOP", 13);
r += 13;
- } else if (l >= 14 && strncmp(line, "AUTH EXTERNAL ", 14) == 0) {
+ } else if (l >= 14 && strneq(line, "AUTH EXTERNAL ", 14)) {
char uid[20*2 + 1];
size_t len;