summaryrefslogtreecommitdiffstats
path: root/kiss
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-06-05 15:34:56 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-06-17 17:30:13 +0200
commitf76e0b330f0be28f9f3af3073904ede3a34d48f5 (patch)
tree157597d534cf357a8bfddb1822a41902b4eba93b /kiss
parent406b11281cf451927ac348f0639161d2f084743f (diff)
Reformat consistently. Strictly whitespace changes only.
Indentation by tabs only. Move case labels in switches are on the same level as the switch keyword. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'kiss')
-rw-r--r--kiss/kissattach.c50
-rw-r--r--kiss/kissnetd.c4
-rw-r--r--kiss/kissparms.c158
-rw-r--r--kiss/mkiss.c2
4 files changed, 107 insertions, 107 deletions
diff --git a/kiss/kissattach.c b/kiss/kissattach.c
index 0f62892..e30ed05 100644
--- a/kiss/kissattach.c
+++ b/kiss/kissattach.c
@@ -234,32 +234,32 @@ int main(int argc, char *argv[])
while ((fd = getopt(argc, argv, "b6i:lm:v")) != -1) {
switch (fd) {
- case '6':
- disc = N_6PACK;
- break;
- case 'b':
- allow_broadcast = 1;
- break;
- case 'i':
- fprintf(stderr, "%s: -i flag depreciated, use new command line format instead.\n", progname);
- inetaddr = optarg;
- break;
- case 'l':
- logging = TRUE;
- break;
- case 'm':
- if ((mtu = atoi(optarg)) <= 0) {
- fprintf(stderr, "%s: invalid mtu size - %s\n", progname, optarg);
- return 1;
- }
- break;
- case 'v':
- printf("%s: %s\n", progname, VERSION);
- return 0;
- case ':':
- case '?':
- usage();
+ case '6':
+ disc = N_6PACK;
+ break;
+ case 'b':
+ allow_broadcast = 1;
+ break;
+ case 'i':
+ fprintf(stderr, "%s: -i flag depreciated, use new command line format instead.\n", progname);
+ inetaddr = optarg;
+ break;
+ case 'l':
+ logging = TRUE;
+ break;
+ case 'm':
+ if ((mtu = atoi(optarg)) <= 0) {
+ fprintf(stderr, "%s: invalid mtu size - %s\n", progname, optarg);
return 1;
+ }
+ break;
+ case 'v':
+ printf("%s: %s\n", progname, VERSION);
+ return 0;
+ case ':':
+ case '?':
+ usage();
+ return 1;
}
}
diff --git a/kiss/kissnetd.c b/kiss/kissnetd.c
index 0aab58f..8c8fce9 100644
--- a/kiss/kissnetd.c
+++ b/kiss/kissnetd.c
@@ -36,8 +36,8 @@ struct PortDescriptor {
unsigned char *FrameBuffer;
int BufferIndex;
time_t TimeLastOpen;
- char namepts[PATH_MAX]; /* name of the unix98 pts slaves, which
- * the client has to use */
+ char namepts[PATH_MAX]; /* name of the unix98 pts slaves, which
+ * the client has to use */
int is_active;
};
diff --git a/kiss/kissparms.c b/kiss/kissparms.c
index 4b26d29..fc57f7b 100644
--- a/kiss/kissparms.c
+++ b/kiss/kissparms.c
@@ -58,96 +58,96 @@ int main(int argc, char *argv[])
while ((s = getopt(argc, argv, "c:e:f:h:l:p:r:s:t:X:vx")) != -1) {
switch (s) {
- case 'c':
- crcmode = atoi(optarg);
- break;
- case 'e':
- feclevel = atoi(optarg);
- if (feclevel < 0 || feclevel > 3) {
- fprintf(stderr, "kissparms: invalid FEC level value\n");
- return 1;
- }
- break;
+ case 'c':
+ crcmode = atoi(optarg);
+ break;
+ case 'e':
+ feclevel = atoi(optarg);
+ if (feclevel < 0 || feclevel > 3) {
+ fprintf(stderr, "kissparms: invalid FEC level value\n");
+ return 1;
+ }
+ break;
- case 'f':
- if (*optarg != 'y' && *optarg != 'n') {
- fprintf(stderr, "kissparms: invalid full duplex setting\n");
- return 1;
- }
- fulldup = *optarg == 'y';
- break;
+ case 'f':
+ if (*optarg != 'y' && *optarg != 'n') {
+ fprintf(stderr, "kissparms: invalid full duplex setting\n");
+ return 1;
+ }
+ fulldup = *optarg == 'y';
+ break;
- case 'l':
- txtail = atoi(optarg) / 10;
- if (txtail < 0 || txtail > 255) {
- fprintf(stderr, "kissparms: invalid txtail value\n");
- return 1;
- }
- break;
+ case 'l':
+ txtail = atoi(optarg) / 10;
+ if (txtail < 0 || txtail > 255) {
+ fprintf(stderr, "kissparms: invalid txtail value\n");
+ return 1;
+ }
+ break;
- case 'h':
- hardware = atoi(optarg);
- if (hardware < 0 || hardware > 255) {
- fprintf(stderr, "kissparms: invalid hardware value\n");
- return 1;
- }
- break;
+ case 'h':
+ hardware = atoi(optarg);
+ if (hardware < 0 || hardware > 255) {
+ fprintf(stderr, "kissparms: invalid hardware value\n");
+ return 1;
+ }
+ break;
- case 'p':
- port = optarg;
- if (ax25_config_get_addr(port) == NULL) {
- fprintf(stderr, "kissparms: invalid port name - %s\n", port);
- return 1;
- }
- break;
+ case 'p':
+ port = optarg;
+ if (ax25_config_get_addr(port) == NULL) {
+ fprintf(stderr, "kissparms: invalid port name - %s\n", port);
+ return 1;
+ }
+ break;
- case 'r':
- persist = atoi(optarg);
- if (persist < 0 || persist > 255) {
- fprintf(stderr, "kissparms: invalid persist value\n");
- return 1;
- }
- break;
+ case 'r':
+ persist = atoi(optarg);
+ if (persist < 0 || persist > 255) {
+ fprintf(stderr, "kissparms: invalid persist value\n");
+ return 1;
+ }
+ break;
- case 's':
- slottime = atoi(optarg) / 10;
- if (slottime < 0 || slottime > 255) {
- fprintf(stderr, "kissparms: invalid slottime value\n");
- return 1;
- }
- break;
+ case 's':
+ slottime = atoi(optarg) / 10;
+ if (slottime < 0 || slottime > 255) {
+ fprintf(stderr, "kissparms: invalid slottime value\n");
+ return 1;
+ }
+ break;
- case 't':
- txdelay = atoi(optarg) / 10;
- if (txdelay < 0 || txdelay > 255) {
- fprintf(stderr, "kissparms: invalid txdelay value\n");
- return 1;
- }
- break;
+ case 't':
+ txdelay = atoi(optarg) / 10;
+ if (txdelay < 0 || txdelay > 255) {
+ fprintf(stderr, "kissparms: invalid txdelay value\n");
+ return 1;
+ }
+ break;
- case 'v':
- printf("kissparms: %s\n", VERSION);
- return 0;
+ case 'v':
+ printf("kissparms: %s\n", VERSION);
+ return 0;
- case 'x':
- kissoff = 1;
- break;
+ case 'x':
+ kissoff = 1;
+ break;
- case 'X':
- do {
- buffer[buflen++] = atoi(optarg);
- while (*optarg && isalnum(*optarg & 0xff))
- optarg++;
- while (*optarg && isspace(*optarg & 0xff))
- optarg++;
- } while (*optarg);
- X = 1;
- break;
- case ':':
- case '?':
- fprintf(stderr, USAGE);
- return 1;
+ case 'X':
+ do {
+ buffer[buflen++] = atoi(optarg);
+ while (*optarg && isalnum(*optarg & 0xff))
+ optarg++;
+ while (*optarg && isspace(*optarg & 0xff))
+ optarg++;
+ } while (*optarg);
+ X = 1;
+ break;
+ case ':':
+ case '?':
+ fprintf(stderr, USAGE);
+ return 1;
}
}
diff --git a/kiss/mkiss.c b/kiss/mkiss.c
index c357d5a..6973b4f 100644
--- a/kiss/mkiss.c
+++ b/kiss/mkiss.c
@@ -111,7 +111,7 @@ struct iface
unsigned long rxbytes; /* RX bytes count */
unsigned long txbytes; /* TX bytes count */
char namepts[PATH_MAX]; /* name of the unix98 pts slaves, which
- * the client has to use */
+ * the client has to use */
};
static struct iface *tty;