1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Formatting: normalise to { on same line.

There were remarkably few of these, but I spotted one while preparing
the previous commit, and then found a handful more.
This commit is contained in:
Simon Tatham 2022-12-28 15:37:57 +00:00
parent d509a2dc1e
commit add3f89005
6 changed files with 12 additions and 24 deletions

View File

@ -90,8 +90,7 @@ static struct ec_curve *ec_p256(void)
static struct ec_curve curve = { 0 };
static bool initialised = false;
if (!initialised)
{
if (!initialised) {
mp_int *p = MP_LITERAL(0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff);
mp_int *a = MP_LITERAL(0xffffffff00000001000000000000000000000000fffffffffffffffffffffffc);
mp_int *b = MP_LITERAL(0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b);
@ -122,8 +121,7 @@ static struct ec_curve *ec_p384(void)
static struct ec_curve curve = { 0 };
static bool initialised = false;
if (!initialised)
{
if (!initialised) {
mp_int *p = MP_LITERAL(0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff);
mp_int *a = MP_LITERAL(0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000fffffffc);
mp_int *b = MP_LITERAL(0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef);
@ -154,8 +152,7 @@ static struct ec_curve *ec_p521(void)
static struct ec_curve curve = { 0 };
static bool initialised = false;
if (!initialised)
{
if (!initialised) {
mp_int *p = MP_LITERAL(0x01ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
mp_int *a = MP_LITERAL(0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc);
mp_int *b = MP_LITERAL(0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00);
@ -186,8 +183,7 @@ static struct ec_curve *ec_curve25519(void)
static struct ec_curve curve = { 0 };
static bool initialised = false;
if (!initialised)
{
if (!initialised) {
mp_int *p = MP_LITERAL(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed);
mp_int *a = MP_LITERAL(0x0000000000000000000000000000000000000000000000000000000000076d06);
mp_int *b = MP_LITERAL(0x0000000000000000000000000000000000000000000000000000000000000001);
@ -215,8 +211,7 @@ static struct ec_curve *ec_curve448(void)
static struct ec_curve curve = { 0 };
static bool initialised = false;
if (!initialised)
{
if (!initialised) {
mp_int *p = MP_LITERAL(0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
mp_int *a = MP_LITERAL(0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000262a6);
mp_int *b = MP_LITERAL(0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001);
@ -244,8 +239,7 @@ static struct ec_curve *ec_ed25519(void)
static struct ec_curve curve = { 0 };
static bool initialised = false;
if (!initialised)
{
if (!initialised) {
mp_int *p = MP_LITERAL(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed);
mp_int *d = MP_LITERAL(0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3);
mp_int *a = MP_LITERAL(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec); /* == p-1 */
@ -281,8 +275,7 @@ static struct ec_curve *ec_ed448(void)
static struct ec_curve curve = { 0 };
static bool initialised = false;
if (!initialised)
{
if (!initialised) {
mp_int *p = MP_LITERAL(0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
mp_int *d = MP_LITERAL(0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffffffffffffffffffffffffffffffffffffffffffffffff6756); /* = p - 39081 */
mp_int *a = MP_LITERAL(0x1);

View File

@ -499,8 +499,7 @@ Socket *new_connection(SockAddr *addr, const char *hostname,
int type = conf_get_int(conf, CONF_proxy_type);
if (type != PROXY_NONE &&
proxy_for_destination(addr, hostname, port, conf))
{
proxy_for_destination(addr, hostname, port, conf)) {
ProxySocket *ps;
SockAddr *proxy_addr;
char *proxy_canonical_name;

View File

@ -5841,8 +5841,7 @@ static termchar *term_bidi_line(Terminal *term, struct termline *ldata,
bidi_char);
}
for (it=0; it<term->cols ; it++)
{
for (it=0; it<term->cols ; it++) {
unsigned long uc = (ldata->chars[it].chr);
switch (uc & CSET_MASK) {

View File

@ -669,8 +669,7 @@ void key_find_callback(void *vctx, char **fingerprints,
if ((ctx->match_comment && !strcmp(ctx->string, comment)) ||
(ctx->match_fp && match_fingerprint_string(ctx->string, fingerprints,
ctx)))
{
ctx))) {
if (!ctx->found)
ctx->found = pageant_pubkey_copy(key);
ctx->nfound++;

View File

@ -1707,8 +1707,7 @@ void select_result(WPARAM wParam, LPARAM lParam)
memset(&isa, 0, sizeof(isa));
err = 0;
t = p_accept(s->s,(struct sockaddr *)&isa,&addrlen);
if (t == INVALID_SOCKET)
{
if (t == INVALID_SOCKET) {
err = p_WSAGetLastError();
if (err == WSATRY_AGAIN)
break;

View File

@ -2816,8 +2816,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message,
p.rcPaint.left < offset_width ||
p.rcPaint.top < offset_height ||
p.rcPaint.right >= offset_width + font_width*wgs->term->cols ||
p.rcPaint.bottom>= offset_height + font_height*wgs->term->rows)
{
p.rcPaint.bottom>= offset_height + font_height*wgs->term->rows) {
HBRUSH fillcolour, oldbrush;
HPEN edge, oldpen;
fillcolour = CreateSolidBrush (