From 4eb951133d9d301184ebd7b675598e11973b6ab8 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Wed, 5 Jun 2013 02:34:19 +0200 Subject: Always have a space between if, for, switch, while and the following `('. Signed-off-by: Ralf Baechle --- ax25/ax25d.c | 4 ++-- ax25/axgetput/axgetput.c | 2 +- ax25/axgetput/proto_bin.c | 2 +- ax25/axspawn.c | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'ax25') 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); -- cgit v1.2.3