diff --git a/otherbackends/raw.c b/otherbackends/raw.c index c95db970..7f35d206 100644 --- a/otherbackends/raw.c +++ b/otherbackends/raw.c @@ -91,7 +91,7 @@ static void raw_closing(Plug *plug, PlugCloseType type, const char *error_msg) if (!raw->sent_socket_eof) { if (raw->s) sk_write_eof(raw->s); - raw->sent_socket_eof= true; + raw->sent_socket_eof = true; } } raw->sent_console_eof = true; @@ -287,7 +287,7 @@ static void raw_special(Backend *be, SessionSpecialCode code, int arg) if (code == SS_EOF && raw->s) { if (!raw->sent_socket_eof) sk_write_eof(raw->s); - raw->sent_socket_eof= true; + raw->sent_socket_eof = true; raw_check_close(raw); } diff --git a/pageant.c b/pageant.c index 6cd1120b..2d509728 100644 --- a/pageant.c +++ b/pageant.c @@ -1683,7 +1683,7 @@ void pageant_reencrypt_all(void) #define crGetChar(c) do \ { \ while (len == 0) { \ - *crLine =__LINE__; return; case __LINE__:; \ + *crLine = __LINE__; return; case __LINE__:; \ } \ len--; \ (c) = (unsigned char)*data++; \ diff --git a/ssh/sharing.c b/ssh/sharing.c index 97337229..92d83924 100644 --- a/ssh/sharing.c +++ b/ssh/sharing.c @@ -1742,7 +1742,7 @@ static void share_got_pkt_from_downstream(struct ssh_sharing_connstate *cs, #define crGetChar(c) do \ { \ while (len == 0) { \ - *crLine =__LINE__; return; case __LINE__:; \ + *crLine = __LINE__; return; case __LINE__:; \ } \ len--; \ (c) = (unsigned char)*data++; \ diff --git a/sshcr.h b/sshcr.h index 12bfea6c..960c757e 100644 --- a/sshcr.h +++ b/sshcr.h @@ -39,7 +39,7 @@ #define crFinishFreeV } sfree(s); return; } while (0) #define crReturn(z) \ do {\ - *crLine =__LINE__; return (z); case __LINE__:;\ + *crLine = __LINE__; return (z); case __LINE__:;\ } while (0) #define crReturnV \ do {\ @@ -64,22 +64,22 @@ */ #define crMaybeWaitUntil(c) \ do { \ - *crLine =__LINE__; \ + *crLine = __LINE__; \ case __LINE__: if (!(c)) return 0; \ } while (0) #define crMaybeWaitUntilV(c) \ do { \ - *crLine =__LINE__; \ + *crLine = __LINE__; \ case __LINE__: if (!(c)) return; \ } while (0) #define crWaitUntil(c) \ do { \ - *crLine =__LINE__; return; \ + *crLine = __LINE__; return; \ case __LINE__: if (!(c)) return 0; \ } while (0) #define crWaitUntilV(c) \ do { \ - *crLine =__LINE__; return; \ + *crLine = __LINE__; return; \ case __LINE__: if (!(c)) return; \ } while (0) diff --git a/windows/gss.c b/windows/gss.c index 60af74c0..905bea67 100644 --- a/windows/gss.c +++ b/windows/gss.c @@ -451,8 +451,8 @@ static Ssh_gss_stat ssh_sspi_init_sec_context(struct ssh_gss_library *lib, winSsh_gss_ctx *winctx = (winSsh_gss_ctx *) *ctx; SecBuffer wsend_tok = {send_tok->length,SECBUFFER_TOKEN,send_tok->value}; SecBuffer wrecv_tok = {recv_tok->length,SECBUFFER_TOKEN,recv_tok->value}; - SecBufferDesc output_desc={SECBUFFER_VERSION,1,&wsend_tok}; - SecBufferDesc input_desc ={SECBUFFER_VERSION,1,&wrecv_tok}; + SecBufferDesc output_desc = {SECBUFFER_VERSION,1,&wsend_tok}; + SecBufferDesc input_desc = {SECBUFFER_VERSION,1,&wrecv_tok}; unsigned long flags=ISC_REQ_MUTUAL_AUTH|ISC_REQ_REPLAY_DETECT| ISC_REQ_CONFIDENTIALITY|ISC_REQ_ALLOCATE_MEMORY; ULONG ret_flags=0; @@ -503,7 +503,7 @@ static Ssh_gss_stat ssh_sspi_free_tok(struct ssh_gss_library *lib, static Ssh_gss_stat ssh_sspi_release_cred(struct ssh_gss_library *lib, Ssh_gss_ctx *ctx) { - winSsh_gss_ctx *winctx= (winSsh_gss_ctx *) *ctx; + winSsh_gss_ctx *winctx = (winSsh_gss_ctx *) *ctx; /* check input */ if (winctx == NULL) return SSH_GSS_FAILURE; @@ -523,7 +523,7 @@ static Ssh_gss_stat ssh_sspi_release_cred(struct ssh_gss_library *lib, static Ssh_gss_stat ssh_sspi_release_name(struct ssh_gss_library *lib, Ssh_gss_name *srv_name) { - char *pStr= (char *) *srv_name; + char *pStr = (char *) *srv_name; if (pStr == NULL) return SSH_GSS_FAILURE; sfree(pStr); @@ -587,7 +587,7 @@ static Ssh_gss_stat ssh_sspi_get_mic(struct ssh_gss_library *lib, Ssh_gss_ctx ctx, Ssh_gss_buf *buf, Ssh_gss_buf *hash) { - winSsh_gss_ctx *winctx= (winSsh_gss_ctx *) ctx; + winSsh_gss_ctx *winctx = (winSsh_gss_ctx *) ctx; SecPkgContext_Sizes ContextSizes; SecBufferDesc InputBufferDescriptor; SecBuffer InputSecurityToken[2]; @@ -634,7 +634,7 @@ static Ssh_gss_stat ssh_sspi_verify_mic(struct ssh_gss_library *lib, Ssh_gss_buf *buf, Ssh_gss_buf *mic) { - winSsh_gss_ctx *winctx= (winSsh_gss_ctx *) ctx; + winSsh_gss_ctx *winctx = (winSsh_gss_ctx *) ctx; SecBufferDesc InputBufferDescriptor; SecBuffer InputSecurityToken[2]; ULONG qop; diff --git a/windows/window.c b/windows/window.c index 696d8c2c..88701247 100644 --- a/windows/window.c +++ b/windows/window.c @@ -4675,7 +4675,7 @@ static int TranslateKey(WinGuiSeat *wgs, UINT message, WPARAM wParam, /* helg: clear CAPS LOCK state if caps lock switches to cyrillic */ if(keystate[VK_CAPITAL] != 0 && conf_get_bool(wgs->conf, CONF_xlat_capslockcyr)) { - capsOn= !left_alt; + capsOn = !left_alt; keystate[VK_CAPITAL] = 0; }