summaryrefslogtreecommitdiffstats
path: root/ax25
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2013-06-05 02:34:19 +0200
committerRalf Baechle <ralf@linux-mips.org>2013-06-17 17:17:29 +0200
commit4eb951133d9d301184ebd7b675598e11973b6ab8 (patch)
treed7647d95c75ee826eb6879c69206d689f900f3b8 /ax25
parent1c830798fe54268cc0f9585b5940bea47fa8eb8a (diff)
Always have a space between if, for, switch, while and the following `('.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25')
-rw-r--r--ax25/ax25d.c4
-rw-r--r--ax25/axgetput/axgetput.c2
-rw-r--r--ax25/axgetput/proto_bin.c2
-rw-r--r--ax25/axspawn.c6
4 files changed, 7 insertions, 7 deletions
diff --git a/ax25/ax25d.c b/ax25/ax25d.c
index 472b461..5135e1d 100644
--- a/ax25/ax25d.c
+++ b/ax25/ax25d.c
@@ -675,7 +675,7 @@ static void WorkoutArgs(int af_type, char *shell, int *argc, char **argv)
if (*cp == '%') {
cp++;
- switch(*cp) {
+ switch (*cp) {
case 'd': /* portname */
for (sp = Port; *sp != '\0' && *sp != '-'; sp++)
buffer[cnt++] = *sp;
@@ -712,7 +712,7 @@ static void WorkoutArgs(int af_type, char *shell, int *argc, char **argv)
case 'p': /* NODENAME IN lower */
if (af_type == AF_NETROM) {
- for(sp = Node; *sp != '\0' && *sp != '-'; sp++)
+ for (sp = Node; *sp != '\0' && *sp != '-'; sp++)
buffer[cnt++] = tolower(*sp);
} else {
buffer[cnt++] = '%';
diff --git a/ax25/axgetput/axgetput.c b/ax25/axgetput/axgetput.c
index 595215c..dc077c5 100644
--- a/ax25/axgetput/axgetput.c
+++ b/ax25/axgetput/axgetput.c
@@ -281,7 +281,7 @@ int main(int argc, char *argv[])
}
while ((c = getopt(argc, argv, (mode % 2) ? "ivh?" : "b:isvh?")) != EOF) {
- switch(c) {
+ switch (c) {
case 'b':
if (((BLOCKSIZ = (unsigned ) atoi(optarg)) < BLOCKSIZ_MIN) || BLOCKSIZ > BLOCKSIZ_MAX) {
fprintf(stderr, "error: invalid blocksize: %d\n", BLOCKSIZ);
diff --git a/ax25/axgetput/proto_bin.c b/ax25/axgetput/proto_bin.c
index b3e3420..78a6ccc 100644
--- a/ax25/axgetput/proto_bin.c
+++ b/ax25/axgetput/proto_bin.c
@@ -129,7 +129,7 @@ int bput(void)
p_buf = buf;
for (i = 0; (p = strsep(&p_buf, "#")); i++) {
- switch(i) {
+ switch (i) {
case 0:
case 1:
break;
diff --git a/ax25/axspawn.c b/ax25/axspawn.c
index f8afd66..34c2598 100644
--- a/ax25/axspawn.c
+++ b/ax25/axspawn.c
@@ -973,7 +973,7 @@ int get_assoc(struct sockaddr_ax25 *sax25)
fgets(buf, sizeof(buf)-1, fp);
- while(!feof(fp))
+ while (!feof(fp))
{
if (fscanf(fp, "%d %s", &uid, buf) == 2)
if (sax25->sax25_uid == uid)
@@ -1079,7 +1079,7 @@ retry:
chdir("/");
- while(p)
+ while (p)
{
q = strchr(p, '/');
if (q)
@@ -1817,7 +1817,7 @@ again:
signal(SIGINT, signal_handler);
signal(SIGQUIT, signal_handler);
- while(1)
+ while (1)
{
FD_ZERO(&fds_read);
FD_ZERO(&fds_err);