summaryrefslogtreecommitdiffstats
path: root/user_call
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 /user_call
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 'user_call')
-rw-r--r--user_call/ax25_call.c24
-rw-r--r--user_call/netrom_call.c24
-rw-r--r--user_call/rose_call.c24
3 files changed, 36 insertions, 36 deletions
diff --git a/user_call/ax25_call.c b/user_call/ax25_call.c
index 1fafe4f..29b788e 100644
--- a/user_call/ax25_call.c
+++ b/user_call/ax25_call.c
@@ -123,18 +123,18 @@ int main(int argc, char **argv)
*/
if (connect(s, (struct sockaddr *)&axconnect, addrlen) != 0) {
switch (errno) {
- case ECONNREFUSED:
- strcpy(buffer, "*** Connection refused - aborting\r");
- break;
- case ENETUNREACH:
- strcpy(buffer, "*** No known route - aborting\r");
- break;
- case EINTR:
- strcpy(buffer, "*** Connection timed out - aborting\r");
- break;
- default:
- sprintf(buffer, "ERROR: cannot connect to AX.25 callsign, %s\r", strerror(errno));
- break;
+ case ECONNREFUSED:
+ strcpy(buffer, "*** Connection refused - aborting\r");
+ break;
+ case ENETUNREACH:
+ strcpy(buffer, "*** No known route - aborting\r");
+ break;
+ case EINTR:
+ strcpy(buffer, "*** Connection timed out - aborting\r");
+ break;
+ default:
+ sprintf(buffer, "ERROR: cannot connect to AX.25 callsign, %s\r", strerror(errno));
+ break;
}
err(buffer);
diff --git a/user_call/netrom_call.c b/user_call/netrom_call.c
index 8d7fd85..e247e8c 100644
--- a/user_call/netrom_call.c
+++ b/user_call/netrom_call.c
@@ -134,18 +134,18 @@ int main(int argc, char **argv)
*/
if (connect(s, (struct sockaddr *)&nrconnect, addrlen) != 0) {
switch (errno) {
- case ECONNREFUSED:
- strcpy(buffer, "*** Connection refused - aborting\r");
- break;
- case ENETUNREACH:
- strcpy(buffer, "*** No known route - aborting\r");
- break;
- case EINTR:
- strcpy(buffer, "*** Connection timed out - aborting\r");
- break;
- default:
- sprintf(buffer, "ERROR: cannot connect to NET/ROM node, %s\r", strerror(errno));
- break;
+ case ECONNREFUSED:
+ strcpy(buffer, "*** Connection refused - aborting\r");
+ break;
+ case ENETUNREACH:
+ strcpy(buffer, "*** No known route - aborting\r");
+ break;
+ case EINTR:
+ strcpy(buffer, "*** Connection timed out - aborting\r");
+ break;
+ default:
+ sprintf(buffer, "ERROR: cannot connect to NET/ROM node, %s\r", strerror(errno));
+ break;
}
err(buffer);
diff --git a/user_call/rose_call.c b/user_call/rose_call.c
index 43a27ae..602b1fe 100644
--- a/user_call/rose_call.c
+++ b/user_call/rose_call.c
@@ -129,18 +129,18 @@ int main(int argc, char **argv)
*/
if (connect(s, (struct sockaddr *)&roseconnect, addrlen) != 0) {
switch (errno) {
- case ECONNREFUSED:
- strcpy(buffer, "*** Connection refused - aborting\r");
- break;
- case ENETUNREACH:
- strcpy(buffer, "*** No known route - aborting\r");
- break;
- case EINTR:
- strcpy(buffer, "*** Connection timed out - aborting\r");
- break;
- default:
- sprintf(buffer, "ERROR: cannot connect to Rose address, %s\r", strerror(errno));
- break;
+ case ECONNREFUSED:
+ strcpy(buffer, "*** Connection refused - aborting\r");
+ break;
+ case ENETUNREACH:
+ strcpy(buffer, "*** No known route - aborting\r");
+ break;
+ case EINTR:
+ strcpy(buffer, "*** Connection timed out - aborting\r");
+ break;
+ default:
+ sprintf(buffer, "ERROR: cannot connect to Rose address, %s\r", strerror(errno));
+ break;
}
err(buffer);