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 /rsconfig.c | |
parent | 642427867846d62e46540b274676037827d7be80 (diff) |
Nuke trailing whitespace.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'rsconfig.c')
-rw-r--r-- | rsconfig.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -54,21 +54,21 @@ static RS_Port *rs_port_ptr(char *name) char *rs_config_get_next(char *name) { RS_Port *p; - + if (rs_ports == NULL) return NULL; - + if (name == NULL) return rs_ports->Name; - + if ((p = rs_port_ptr(name)) == NULL) return NULL; - + p = p->Next; if (p == NULL) return NULL; - + return p->Name; } @@ -115,7 +115,7 @@ char *rs_config_get_port(rose_address *address) while (p != NULL) { if (p->Addr != NULL) { rose_aton(p->Addr, addr.rose_addr); - + if (rose_cmp(address, &addr) == 0) return p->Name; } @@ -146,7 +146,7 @@ static int rs_config_init_port(int fd, int lineno, char *line, const char **ifca char *name, *addr, *desc; const char *dev = NULL; int found = 0; - + name = strtok(line, " \t"); addr = strtok(NULL, " \t"); desc = strtok(NULL, ""); @@ -201,7 +201,7 @@ static int rs_config_init_port(int fd, int lineno, char *line, const char **ifca rs_port_tail = p; p->Next = NULL; - + return TRUE; } |