summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2022-04-11 08:47:39 +0200
committerGerd Hoffmann <kraxel@redhat.com>2022-04-22 14:52:30 +0200
commitc264e4319195e2cc7b2b77194abc610ff08baafd (patch)
tree5c210bd9ef1f103694674c5fb0d3b3c683987486
parent732064d16e8cff6c445205fbcd17b7e1d37caba7 (diff)
downloadamtterm-c264e4319195e2cc7b2b77194abc610ff08baafd.tar.gz
amtterm: cleanup whitespace
Signed-off-by: Hannes Reinecke <hare@suse.de>
-rw-r--r--amtterm.c58
1 files changed, 29 insertions, 29 deletions
diff --git a/amtterm.c b/amtterm.c
index 5f63ee8..b6c7538 100644
--- a/amtterm.c
+++ b/amtterm.c
@@ -107,11 +107,11 @@ static int redir_loop(struct redir *r)
if (r->verbose)
fprintf(stderr, "\n" APPNAME ": saw ^], exiting\n");
redir_sol_stop(r);
- }
- for (i = 0; i < rc; i++) {
- /* meet BIOS expectations */
- if (buf[i] == 0x0a)
- buf[i] = 0x0d;
+ }
+ for (i = 0; i < rc; i++) {
+ /* meet BIOS expectations */
+ if (buf[i] == 0x0a)
+ buf[i] = 0x0d;
}
if (-1 == redir_sol_send(r, buf, rc))
return -1;
@@ -170,23 +170,23 @@ static void tty_restore(void)
static void usage(FILE *fp)
{
fprintf(fp,
- "\n"
+ "\n"
"This is " APPNAME ", release " VERSION ", I'll establish\n"
"serial-over-lan (sol) connections to your Intel AMT boxes.\n"
- "\n"
- "usage: " APPNAME " [options] host [port]\n"
- "options:\n"
- " -h print this text\n"
- " -v verbose (default)\n"
- " -q quiet\n"
- " -u user username (default: admin)\n"
- " -p pass password (default: $AMT_PASSWORD)\n"
- "\n"
- "By default port 16994 is used.\n"
+ "\n"
+ "usage: " APPNAME " [options] host [port]\n"
+ "options:\n"
+ " -h print this text\n"
+ " -v verbose (default)\n"
+ " -q quiet\n"
+ " -u user username (default: admin)\n"
+ " -p pass password (default: $AMT_PASSWORD)\n"
+ "\n"
+ "By default port 16994 is used.\n"
"If no password is given " APPNAME " will ask for one.\n"
- "\n"
- "-- \n"
- "(c) 2007 Gerd Hoffmann <kraxel@redhat.com>\n"
+ "\n"
+ "-- \n"
+ "(c) 2007 Gerd Hoffmann <kraxel@redhat.com>\n"
"\n");
}
@@ -209,9 +209,9 @@ int main(int argc, char *argv[])
snprintf(r.pass, sizeof(r.pass), "%s", h);
for (;;) {
- if (-1 == (c = getopt(argc, argv, "hvqu:p:")))
- break;
- switch (c) {
+ if (-1 == (c = getopt(argc, argv, "hvqu:p:")))
+ break;
+ switch (c) {
case 'v':
r.verbose = 1;
break;
@@ -226,13 +226,13 @@ int main(int argc, char *argv[])
memset(optarg,'*',strlen(optarg)); /* rm passwd from ps list */
break;
- case 'h':
- usage(stdout);
- exit(0);
- default:
- usage(stderr);
- exit(1);
- }
+ case 'h':
+ usage(stdout);
+ exit(0);
+ default:
+ usage(stderr);
+ exit(1);
+ }
}
if (optind < argc)