mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-28 09:17:07 -05:00
Formatting: fix a few mis-spaced assignments.
I spotted one of those in the raw backend the other day, and now I've got round to finding a bunch more and fixing them.
This commit is contained in:
parent
9f2e1e6e03
commit
6fcc7ed728
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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++; \
|
||||
|
@ -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++; \
|
||||
|
10
sshcr.h
10
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)
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user