summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2016-02-22 14:20:07 +0100
committerGerd Hoffmann <kraxel@redhat.com>2016-02-22 14:20:07 +0100
commite47189e03f819e352186f646c22cb6ec6877b076 (patch)
treef4fa4f7d902afa8ee723049de458d2e73fa8de26
parent444d9179ac176587dad1ff2bb3fbbb9eaf060c21 (diff)
downloadamtterm-e47189e03f819e352186f646c22cb6ec6877b076.tar.gz
fixup indention
-rw-r--r--redir.c97
1 files changed, 49 insertions, 48 deletions
diff --git a/redir.c b/redir.c
index ceffd5c..760e5ce 100644
--- a/redir.c
+++ b/redir.c
@@ -389,54 +389,55 @@ int redir_data(struct redir *r)
goto again;
redir_stop(r);
break;
- case SOL_CONTROLS_FROM_HOST: {
- bshift = r->blen; /* FIXME */
- if (r->blen < bshift)
- goto again;
-
- /* Host sends this message to the Management Console when
- * the host has changed its COM port control lines. This
- * message is likely to be one of the first messages that
- * the Host sends to the Console after it starts SOL
- * redirection.
- */
- struct controls_from_host_message *msg = (struct controls_from_host_message *) r->buf;
- //printf("Type %x, control %d, status %d\n", msg->type, msg->control, msg->status);
- if (msg->status & LOOPBACK_ACTIVE) {
- if (r->verbose)
- fprintf (stderr, "Warning, SOL device is running in loopback mode. Text input may not be accepted\n");
- in_loopback_mode = 1;
- } else if (in_loopback_mode) {
- if (r->verbose)
- fprintf (stderr, "SOL device is no longer running in loopback mode\n");
- in_loopback_mode = 0;
- }
-
- if (0 == (msg->status & SYSTEM_POWER_STATE)) {
- if (r->verbose)
- fprintf (stderr, "The system is powered off.\n");
- powered_off = 1;
- } else if (powered_off) {
- if (r->verbose)
- fprintf (stderr, "The system is powered on.\n");
- powered_off = 0;
- }
-
- if (r->verbose) {
- if (msg->status & (TX_OVERFLOW|RX_FLUSH_TIMEOUT|TESTMODE_ACTIVE))
- fprintf (stderr, "Other unhandled status condition\n");
-
- if (msg->control & RTS_CONTROL)
- fprintf (stderr, "RTS is asserted on the COM Port\n");
-
- if (msg->control & DTR_CONTROL)
- fprintf (stderr, "DTR is asserted on the COM Port\n");
-
- if (msg->control & BREAK_CONTROL)
- fprintf (stderr, "BREAK is asserted on the COM Port\n");
- }
-
- break;
+ case SOL_CONTROLS_FROM_HOST:
+ {
+ bshift = r->blen; /* FIXME */
+ if (r->blen < bshift)
+ goto again;
+
+ /* Host sends this message to the Management Console when
+ * the host has changed its COM port control lines. This
+ * message is likely to be one of the first messages that
+ * the Host sends to the Console after it starts SOL
+ * redirection.
+ */
+ struct controls_from_host_message *msg = (struct controls_from_host_message *) r->buf;
+ //printf("Type %x, control %d, status %d\n", msg->type, msg->control, msg->status);
+ if (msg->status & LOOPBACK_ACTIVE) {
+ if (r->verbose)
+ fprintf (stderr, "Warning, SOL device is running in loopback mode."
+ " Text input may not be accepted\n");
+ in_loopback_mode = 1;
+ } else if (in_loopback_mode) {
+ if (r->verbose)
+ fprintf (stderr, "SOL device is no longer running in loopback mode\n");
+ in_loopback_mode = 0;
+ }
+
+ if (0 == (msg->status & SYSTEM_POWER_STATE)) {
+ if (r->verbose)
+ fprintf (stderr, "The system is powered off.\n");
+ powered_off = 1;
+ } else if (powered_off) {
+ if (r->verbose)
+ fprintf (stderr, "The system is powered on.\n");
+ powered_off = 0;
+ }
+
+ if (r->verbose) {
+ if (msg->status & (TX_OVERFLOW|RX_FLUSH_TIMEOUT|TESTMODE_ACTIVE))
+ fprintf (stderr, "Other unhandled status condition\n");
+
+ if (msg->control & RTS_CONTROL)
+ fprintf (stderr, "RTS is asserted on the COM Port\n");
+
+ if (msg->control & DTR_CONTROL)
+ fprintf (stderr, "DTR is asserted on the COM Port\n");
+
+ if (msg->control & BREAK_CONTROL)
+ fprintf (stderr, "BREAK is asserted on the COM Port\n");
+ }
+ break;
}
default:
snprintf(r->err, sizeof(r->err), "%s: unknown r->buf 0x%02x",