Skip to content

Commit

Permalink
director: Fix spelling mistakes
Browse files Browse the repository at this point in the history
Original work by @jsoref
  • Loading branch information
cmouse committed Nov 1, 2017
1 parent d47cf08 commit 688653d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/director/director-connection.c
Expand Up @@ -87,7 +87,7 @@
# error DIRECTOR_CONNECTION_PONG_TIMEOUT_MSECS is too low
#endif

#define CMD_IS_USER_HANDHAKE(args) \
#define CMD_IS_USER_HANDSHAKE(args) \
(str_array_length(args) > 2)

#define DIRECTOR_OPT_CONSISTENT_HASHING "consistent-hashing"
Expand Down Expand Up @@ -716,7 +716,7 @@ director_cmd_user(struct director_connection *conn,
bool forced;

/* NOTE: if more parameters are added, update also
CMD_IS_USER_HANDHAKE() macro */
CMD_IS_USER_HANDSHAKE() macro */
if (str_array_length(args) != 2 ||
str_to_uint(args[0], &username_hash) < 0 ||
net_addr2ip(args[1], &ip) < 0) {
Expand Down Expand Up @@ -1414,7 +1414,7 @@ director_connection_handle_handshake(struct director_connection *conn,
return director_cmd_host_hand_start(conn, args) ? 1 : -1;
}

if (conn->in && strcmp(cmd, "USER") == 0 && CMD_IS_USER_HANDHAKE(args))
if (conn->in && strcmp(cmd, "USER") == 0 && CMD_IS_USER_HANDSHAKE(args))
return director_handshake_cmd_user(conn, args) ? 1 : -1;

/* both get DONE */
Expand Down Expand Up @@ -1483,7 +1483,7 @@ director_connection_sync_host(struct director_connection *conn,
timestamp);
return FALSE;
} else if (seq < host->last_sync_seq) {
i_warning("Last SYNC seq for %s appears to be stale, reseting "
i_warning("Last SYNC seq for %s appears to be stale, resetting "
"(seq=%u, timestamp=%u -> seq=%u, timestamp=%u)",
host->name, host->last_sync_seq,
host->last_sync_timestamp, seq, timestamp);
Expand Down

0 comments on commit 688653d

Please sign in to comment.