diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2013-06-05 00:57:34 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-06-17 17:04:02 +0200 |
commit | 6cf35378bfd0784f032b2599582cdbe410296c59 (patch) | |
tree | 583acbc1a3e4b9bf18496218085ac6840a081492 /procutils.c | |
parent | 642427867846d62e46540b274676037827d7be80 (diff) |
Nuke trailing whitespace.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'procutils.c')
-rw-r--r-- | procutils.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/procutils.c b/procutils.c index 8eec81f..dc396e5 100644 --- a/procutils.c +++ b/procutils.c @@ -45,7 +45,7 @@ static char *safe_strncpy(char *dest, char *src, int n) /* * Our version of strtok(). This one does not touch the original string, * reports the identity of the delimitting character and does not - * retain any state info. + * retain any state info. */ static char *token(char **ptr, const char *delim) { @@ -381,7 +381,7 @@ struct proc_nr_nodes *read_proc_nr_nodes(void) safe_strncpy(new->alias, cp, 6); new->w = 1; /* local node w */ new->qual1 = 255; /* obviously, local node quality should be set to maximum value */ - new->obs1 = 6; /* persist */ + new->obs1 = 6; /* persist */ /* * n == 0 indicates a local node. @@ -426,7 +426,7 @@ struct proc_rs *read_proc_rs(void) errno = 0; if ((fp = fopen(PROC_RS_FILE, "r")) == NULL) return NULL; - while (fgets(buffer, 256, fp) != NULL) + while (fgets(buffer, 256, fp) != NULL) { if (!i++) continue; if ((p = calloc(1, sizeof(struct proc_rs))) == NULL) @@ -478,7 +478,7 @@ struct proc_rs_neigh *read_proc_rs_neigh(void) errno = 0; if ((fp = fopen(PROC_RS_NEIGH_FILE, "r")) == NULL) return NULL; - while (fgets(buffer, 256, fp) != NULL) + while (fgets(buffer, 256, fp) != NULL) { if (!i++) continue; if ((p = calloc(1, sizeof(struct proc_rs_neigh))) == NULL) @@ -521,7 +521,7 @@ struct proc_rs_nodes *read_proc_rs_nodes(void) errno = 0; if ((fp = fopen(PROC_RS_NODES_FILE, "r")) == NULL) return NULL; - while (fgets(buffer, 256, fp) != NULL) + while (fgets(buffer, 256, fp) != NULL) { if (!i++) continue; if ((p = calloc(1, sizeof(struct proc_rs_nodes))) == NULL) @@ -561,7 +561,7 @@ struct proc_rs_route *read_proc_rs_routes(void) errno = 0; if ((fp = fopen(PROC_RS_ROUTES_FILE, "r")) == NULL) return NULL; - while (fgets(buffer, 256, fp) != NULL) + while (fgets(buffer, 256, fp) != NULL) { if (!i++) continue; if ((p = calloc(1, sizeof(struct proc_rs_route))) == NULL) |