mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Formatting: realign labels and case/default statements.
My aim has always been to have those back-dented by 2 spaces (half an indent level) compared to the statements around them, so that in particular switch statements have distinct alignment for the statement, the cases and the interior code without consuming two whole indent levels. This patch sweeps up all the violations of that principle found by my bulk-reindentation exercise.
This commit is contained in:
@ -219,7 +219,7 @@ agent_pending_query *agent_query(
|
||||
uxsel_set(sock, SELECT_R, agent_select_result);
|
||||
return conn;
|
||||
|
||||
failure:
|
||||
failure:
|
||||
*out = NULL;
|
||||
*outlen = 0;
|
||||
return NULL;
|
||||
|
@ -731,7 +731,7 @@ static int try_connect(NetSocket *sock)
|
||||
|
||||
uxsel_tell(sock);
|
||||
|
||||
ret:
|
||||
ret:
|
||||
|
||||
/*
|
||||
* No matter what happened, put the socket back in the tree.
|
||||
@ -1043,7 +1043,7 @@ void *sk_getxdmdata(Socket *sock, int *lenp)
|
||||
PUT_16BIT_MSB_FIRST(buf+4, ntohs(u.sin.sin_port));
|
||||
break;
|
||||
#ifndef NO_IPV6
|
||||
case AF_INET6:
|
||||
case AF_INET6:
|
||||
*lenp = 6;
|
||||
buf = snewn(*lenp, char);
|
||||
if (IN6_IS_ADDR_V4MAPPED(&u.sin6.sin6_addr)) {
|
||||
|
@ -354,7 +354,7 @@ static void pty_open_master(Pty *pty)
|
||||
fprintf(stderr, "pterm: unable to open a pseudo-terminal device\n");
|
||||
exit(1);
|
||||
|
||||
got_one:
|
||||
got_one:
|
||||
|
||||
/* We need to chown/chmod the /dev/ttyXX device. */
|
||||
gp = getgrnam("tty");
|
||||
|
@ -265,16 +265,16 @@ int seek_file(WFile *f, uint64_t offset, int whence)
|
||||
int lseek_whence;
|
||||
|
||||
switch (whence) {
|
||||
case FROM_START:
|
||||
case FROM_START:
|
||||
lseek_whence = SEEK_SET;
|
||||
break;
|
||||
case FROM_CURRENT:
|
||||
case FROM_CURRENT:
|
||||
lseek_whence = SEEK_CUR;
|
||||
break;
|
||||
case FROM_END:
|
||||
case FROM_END:
|
||||
lseek_whence = SEEK_END;
|
||||
break;
|
||||
default:
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -806,7 +806,7 @@ int check_stored_host_key(const char *hostname, int port,
|
||||
else
|
||||
ret = 2; /* key mismatch */
|
||||
|
||||
done:
|
||||
done:
|
||||
sfree(line);
|
||||
if (ret != 1)
|
||||
break;
|
||||
|
@ -1978,7 +1978,7 @@ gint key_event(GtkWidget *widget, GdkEventKey *event, gpointer data)
|
||||
goto done;
|
||||
}
|
||||
|
||||
done:
|
||||
done:
|
||||
|
||||
if (end-start > 0) {
|
||||
if (special) {
|
||||
|
Reference in New Issue
Block a user