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 /axconfig.c | |
parent | 642427867846d62e46540b274676037827d7be80 (diff) |
Nuke trailing whitespace.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'axconfig.c')
-rw-r--r-- | axconfig.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -74,21 +74,21 @@ static AX_Port *ax25_port_ptr(char *name) char *ax25_config_get_next(char *name) { AX_Port *p; - + if (ax25_ports == NULL) return NULL; - + if (name == NULL) return ax25_ports->Name; - + if ((p = ax25_port_ptr(name)) == NULL) return NULL; - + p = p->Next; if (p == NULL) return NULL; - + return p->Name; } @@ -134,7 +134,7 @@ char *ax25_config_get_port(ax25_address *callsign) if (ax25_cmp(callsign, &null_ax25_address) == 0) return "*"; - + while (p != NULL) { if (p->Call != NULL) { ax25_aton_entry(p->Call, (char *)&addr); @@ -314,7 +314,7 @@ int ax25_config_load_ports(void) while (isspace(*s & 0xff)) ++s; memset(&ifr, 0, sizeof(ifr)); - strncpy(ifr.ifr_name, s, IFNAMSIZ-1); + strncpy(ifr.ifr_name, s, IFNAMSIZ-1); ifr.ifr_name[IFNAMSIZ-1] = 0; if (ioctl(fd, SIOCGIFHWADDR, &ifr) < 0) { |